/**
 * Stripe Products Styling
 * Angepasst an bestehendes App-Design (memberships.css)
 * Verwendet: --primary-color: #c8a165 (Gold)
 */

/* Category Section */
.stripe-product-category {
  margin-bottom: 20px;
}

.stripe-product-category .category-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--heading-color, #333);
  margin: 30px 0 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--primary-color, #c8a165);
  padding-bottom: 5px;
}

/* Products Grid */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Product Card - Wie .membership-item.enhanced */
.stripe-product-card {
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 2px solid var(--primary-color, #c8a165);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.stripe-product-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Badge */
.product-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.product-badge.gold {
  background: var(--primary-color, #c8a165);
  color: white;
}

.product-badge.silver {
  background: var(--info-color, #17a2b8);
  color: white;
}

/* Product Name - Wie .offer-title */
.stripe-product-card .product-name {
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 0 5px 0;
  color: var(--heading-color, #333);
}

/* Product Description - Wie .offer-description */
.stripe-product-card .product-description {
  font-size: 0.9em;
  color: #555;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

/* Features List */
.stripe-product-card .product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.stripe-product-card .product-features li {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stripe-product-card .product-features li i {
  color: var(--success-color, #28a745);
  font-size: 0.8em;
}

/* Price - Wie .offer-price */
.stripe-product-card .product-price {
  font-size: 1.2em;
  color: var(--primary-color, #c8a165);
  font-weight: bold;
  margin-bottom: 10px;
}

/* Buy Button - Wie .btn-outlined */
.stripe-product-card .btn-buy-stripe {
  background-color: transparent;
  border: 1px solid var(--primary-color, #c8a165);
  color: var(--primary-color, #c8a165);
  padding: 8px 16px;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 14px;
}

.stripe-product-card .btn-buy-stripe:hover {
  background-color: var(--primary-color, #c8a165);
  color: white;
}

.stripe-product-card .btn-buy-stripe:active {
  transform: scale(0.98);
}

.stripe-product-card .btn-buy-stripe:disabled {
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Loading Spinner - Einfach, zentriert, rund */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loading-spinner::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--primary-color, #c8a165);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner i,
.loading-spinner span {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.memberships-header {
  background-color: #000 !important;
  padding: 15px !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

.memberships-header h1 {
  color: #fff !important;
  font-size: 1.4em !important;
  font-weight: bold !important;
  margin: 0 0 5px 0 !important;
}

.memberships-header p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9em !important;
  margin: 0 !important;
}

/* Container */
.stripe-products-container {
  padding: 0 15px;
  margin-bottom: 100px;
  background-color: var(--body-bg, #f7f7f7);
}

/* Recurring Badge */
.membership-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.recurring-badge {
  background: var(--success-color, #28a745);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

.class-type-badge {
  background: var(--info-color, #17a2b8);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}