/**
 * Pricing page specific styles
 *
 * SMI-2081: Extracted from pricing.astro to comply with 500-line limit
 * These styles extend the global.css foundation.
 */

/* Hero Section */
.pricing-hero {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FAFAFA 0%, var(--color-coral, #E07A5F) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #18181b;
  border-radius: 0.75rem;
  margin-top: 1.5rem;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn:hover {
  color: #FAFAFA;
}

.toggle-btn.active {
  background: #27272a;
  color: #FAFAFA;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.savings-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 1rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: #0d0d0f;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #27272a;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card.highlighted {
  border: 2px solid var(--color-coral, #E07A5F);
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-coral, #E07A5F) 0%, var(--color-coral-dark, #D4694E) 100%);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-header {
  margin-bottom: 1.5rem;
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FAFAFA;
}

.period {
  color: #9ca3af;
  font-size: 0.9375rem;
}

.tier-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
}

.api-calls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #18181b;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.api-calls .icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-coral, #E07A5F);
}

.features-list {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Buttons */
.btn-cta {
  width: 100%;
  margin-top: auto;
}

/* Comparison Table */
.features-comparison {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features-comparison h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid #27272a;
  background: #0d0d0f;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #27272a;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table thead th {
  background: #18181b;
  font-weight: 600;
  color: #FAFAFA;
}

.comparison-table th.highlighted,
.comparison-table td.highlighted {
  background: rgba(224, 122, 95, 0.05);
}

.comparison-table thead th.highlighted {
  background: rgba(224, 122, 95, 0.1);
  color: var(--color-coral, #E07A5F);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: #10b981;
  font-weight: 700;
}

.comparison-table .dash {
  color: #4a4a4f;
}

/* FAQ Section */
.pricing-faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background: #0d0d0f;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #FAFAFA;
}

.faq-item p {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* CTA Section */
.pricing-cta {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-coral, #E07A5F) 0%, var(--color-coral-dark, #D4694E) 100%);
  color: white;
}

.pricing-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-cta .btn-primary {
  background: white;
  color: var(--color-coral-dark, #D4694E);
}

.pricing-cta .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-cta .btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 2rem 1rem;
  }

  .pricing-grid {
    padding: 0 1rem 2rem;
  }
}
