/**
 * @file
 * Styles for Stripe Membership templates in theme.
 */

/* ============================================
   MEMBERSHIP PAGE STYLES
   ============================================ */

.membership-page {
  background: #f9fafb;
  min-height: 600px;
}

/* Hero Section */
.membership-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.membership-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.membership-hero-content .lead {
  font-size: 22px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

/* Pricing Section */
.membership-pricing-section {
  max-width: 600px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.pricing-container {
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pricing-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px 0;
}

.pricing-header p {
  font-size: 18px;
  color: #6b7280;
  margin: 0 0 40px 0;
}

.pricing-display {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 12px;
}

.pricing-action {
  margin: 40px 0 20px;
}

.pricing-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.pricing-footer p {
  color: #6b7280;
  margin: 0;
  font-size: 14px;
}

/* Benefits Section */
.membership-benefits {
  background: white;
  padding: 80px 20px;
  margin-top: 60px;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-container h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 60px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 15px 0;
}

.benefit-item p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   BLOCK STYLES
   ============================================ */

.stripe-membership-block-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 40px 30px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stripe-membership-block-wrapper .block-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 30px 0;
  text-align: center;
}

.stripe-membership-content {
  text-align: center;
}

.membership-heading h3 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px 0;
}

.membership-heading p {
  font-size: 18px;
  color: white;
  opacity: 0.95;
  margin: 0 0 30px 0;
}

.membership-price-section {
  margin: 30px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.membership-button-section {
  margin: 30px 0;
}

.membership-info {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.membership-info p {
  color: white;
  opacity: 0.9;
  margin: 0;
}

/* ============================================
   STRIPE COMPONENTS OVERRIDES
   ============================================ */

/* Make currency selector look good in colored backgrounds */
.stripe-membership-block-wrapper .currency-selector,
.membership-pricing-section .currency-selector {
  background: white;
  color: #333;
  border: 2px solid white;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.stripe-membership-block-wrapper .currency-selector:hover,
.membership-pricing-section .currency-selector:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Price amount styling */
.stripe-membership-block-wrapper .price-amount {
  color: white;
  font-size: 56px;
  font-weight: 800;
  display: block;
  margin: 25px 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pricing-display .price-amount {
  color: #1f2937;
  font-size: 64px;
  font-weight: 800;
  display: block;
  margin: 20px 0 10px;
}

/* Price interval styling */
.stripe-membership-block-wrapper .price-interval {
  color: white;
  font-size: 20px;
  opacity: 0.95;
}

.pricing-display .price-interval {
  color: #6b7280;
  font-size: 22px;
}

/* Button styling */
.stripe-membership-block-wrapper .stripe-membership-button {
  background: white;
  color: #667eea;
  padding: 18px 50px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stripe-membership-block-wrapper .stripe-membership-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.pricing-action .stripe-membership-button {
  background: #667eea;
  color: white;
  padding: 20px 60px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pricing-action .stripe-membership-button:hover {
  background: #5568d3;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.stripe-membership-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .membership-hero {
    padding: 60px 20px;
  }

  .membership-hero-content h1 {
    font-size: 36px;
  }

  .membership-hero-content .lead {
    font-size: 18px;
  }

  .pricing-container {
    padding: 35px 25px;
  }

  .pricing-header h2 {
    font-size: 28px;
  }

  .pricing-display .price-amount {
    font-size: 48px;
  }

  .pricing-action .stripe-membership-button {
    padding: 16px 40px;
    font-size: 18px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stripe-membership-block-wrapper {
    padding: 30px 20px;
  }

  .stripe-membership-block-wrapper .price-amount {
    font-size: 42px;
  }

  .stripe-membership-block-wrapper .stripe-membership-button {
    padding: 15px 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .membership-hero-content h1 {
    font-size: 28px;
  }

  .pricing-header h2 {
    font-size: 24px;
  }

  .pricing-display .price-amount {
    font-size: 38px;
  }
}

