/* Pricing Page Specific Styles */

.pricing-hero {
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-3xl);
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 201, 221, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: var(--space-3xl);
  line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.toggle-label {
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

input:checked + .slider {
  background: var(--gradient-primary);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.discount-badge {
  background: var(--gradient-secondary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: var(--space-sm);
}

/* Pricing Table */
.pricing-table {
  padding: var(--space-3xl) 0;
  background: var(--primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(0, 201, 221, 0.2);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.plan-icon i {
  width: 32px;
  height: 32px;
  color: white;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.plan-description {
  color: rgba(239, 239, 239, 0.7);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.plan-price {
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-heading);
}

.price-period {
  font-size: 1rem;
  color: rgba(239, 239, 239, 0.7);
  margin-left: var(--space-xs);
}

.yearly-savings {
  margin-top: var(--space-sm);
}

.savings-text {
  font-size: 0.875rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.card-body {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item span {
  color: var(--text-light);
  line-height: 1.5;
}

.feature-item strong {
  color: var(--accent-primary);
}

.card-footer {
  text-align: center;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.trial-note {
  font-size: 0.875rem;
  color: rgba(239, 239, 239, 0.6);
  margin: 0;
}

/* Feature Comparison Table */
.feature-comparison {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, rgba(240, 242, 245, 0.05), rgba(0, 201, 221, 0.05));
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: var(--text-light);
}

.feature-column {
  text-align: left !important;
  min-width: 250px;
  font-weight: 500;
}

.plan-column {
  min-width: 120px;
}

.featured-column {
  background: rgba(0, 201, 221, 0.1);
  position: relative;
}

.plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.plan-header i {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.feature-name {
  color: var(--text-light);
  font-weight: 500;
}

.feature-check {
  color: var(--accent-primary);
}

.feature-empty {
  color: rgba(239, 239, 239, 0.3);
}

.feature-check i,
.feature-empty i {
  width: 20px;
  height: 20px;
}

/* FAQ Section */
.faq {
  padding: var(--space-3xl) 0;
  background: var(--primary);
}

.faq-grid {
  display: grid;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(0, 201, 221, 0.5);
}

.faq-question {
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  max-height: 200px;
}

.faq-answer p {
  margin: 0;
  color: rgba(239, 239, 239, 0.8);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--text-light);
}

/* CTA Section Updates */
.cta-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design for Pricing */
@media (max-width: 1024px) {
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .comparison-table-wrapper {
    margin: 0 -var(--space-lg);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .billing-toggle {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .plan-name {
    font-size: 1.5rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-md);
  }
  
  .feature-column {
    min-width: 200px;
  }
  
  .plan-column {
    min-width: 100px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pricing-card {
    padding: var(--space-lg);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .plan-icon {
    width: 60px;
    height: 60px;
  }
  
  .plan-icon i {
    width: 24px;
    height: 24px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm);
    font-size: 0.875rem;
  }
}

/* Animation for pricing cards appearing */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  animation: slideInUp 0.6s ease-out forwards;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Billing toggle active states */
#billing-toggle:checked ~ .toggle-label:last-child {
  color: var(--accent-primary);
}

#billing-toggle:not(:checked) ~ .toggle-label:first-child {
  color: var(--accent-primary);
}

/* Hover effects for interactive elements */
.pricing-card .btn:hover {
  transform: translateY(-2px);
}

.faq-question {
  user-select: none;
}

/* Loading states for pricing cards */
.pricing-card.loading {
  pointer-events: none;
  opacity: 0.7;
}

.pricing-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

/* Success state for selections */
.pricing-card.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(0, 201, 221, 0.3);
}

.pricing-card.selected .plan-icon {
  background: var(--gradient-secondary);
}

/* Print styles for pricing page */
@media print {
  .billing-toggle,
  .cta,
  .faq {
    display: none;
  }
  
  .pricing-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .comparison-table {
    font-size: 0.8rem;
  }
}
