/* ============================================
   Pricing Section
   USES UNIFIED SECTION STYLES - NO CUSTOM IMPLEMENTATIONS
   ============================================ */

/* Container for pricing plans partial */
.pricing-plans-container {
  width: 100%;
  display: block;
}

/* Ensure proper spacing between regular and special plans */
.pricing-plans-container .card-grid-three {
  margin-bottom: 0;
}

.pricing-plans-container .special-plans-section {
  margin-top: 3rem;
}

/* Currency Selector - Glass morphism style */
.currency-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.currency-selector button {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.currency-selector button:hover,
.currency-selector button.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

/* Plan Card - Inherits glass-content-card styles */
.plan-card {
  /* Base styles from glass-content-card */
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  height: 100%;
  overflow: visible;
}

.plan-card:hover {
  transform: translateY(-4px);
  background: rgba(45, 45, 45, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Recommended Plan */
.plan-card.recommended {
  background: rgba(35, 35, 35, 0.9);
  border-width: 2px;
  border-color: rgba(var(--brand-primary-rgb), 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.plan-card.recommended:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(var(--brand-primary-rgb), 0.4);
}

/* Recommended badge - uses brand purple */
.plan-badge.badge-recommended {
  position: absolute;
  top: -17px;
  right: 24px;
  background: var(--bg-primary);
  color: var(--brand-primary-light);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.4);
  padding: 0.375rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
}

/* Current plan badge - subtle white */
.plan-badge.badge-current {
  position: absolute;
  top: -17px;
  right: 24px;
  background: var(--bg-primary);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.375rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
}

/* When both badges are present, position them side by side */
.plan-card.has-both-badges .plan-badge.badge-recommended {
  right: auto;
  left: 24px;
}

.plan-card.has-both-badges .plan-badge.badge-current {
  right: 24px;
}

/* Current Plan */
.plan-card.current {
  background: rgba(40, 40, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Plan Header */
.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.plan-price .currency-symbol {
  font-size: 1.5rem;
  margin-right: 0.25rem;
}

.plan-price .period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.25rem;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.plan-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.plan-features li::before {
  content: "✓";
  color: #4ade80;
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Overage feature items - use + icon instead of checkmark */
.plan-features li.feature-overage::before {
  content: "+";
  color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.plan-action {
  margin-top: auto;
}

/* Loading indicator */
.htmx-indicator {
  display: none;
  text-align: center;
  padding: 1rem;
}

.htmx-indicator.htmx-request {
  display: block;
}

.loading-spinner {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.recommended {
    transform: scale(1);
  }

  .plan-name {
    font-size: 1.25rem;
  }

  .plan-price {
    font-size: 2rem;
  }
}