/* ============================================
   PRICING STYLES
   Extracted from main.css for better organization
   ============================================ */

/* Base Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Updated card structure to use flexbox for button alignment */
.pricing-card {
  padding: 1.75rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 1rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: var(--bg-primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Features list grows to push button to bottom */
.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  padding: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.75rem;
}

/* Button and note together pushed to bottom with margin-top auto */
.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Improved "no credit card" note styling with icon and gradient background */
.pricing-note {
  text-align: center;
  margin-top: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-note::before {
  content: "🔒";
  font-size: 1rem;
}

/* Pricing Page Specific Styles */
.pricing-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.pricing-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pricing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.pricing-tabs-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.pricing-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.pricing-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.pricing-tab:hover {
  border-color: var(--primary);
}

.pricing-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: var(--primary);
  color: white;
}

.pricing-tab svg {
  flex-shrink: 0;
}

.pricing-tab span {
  font-weight: 600;
  font-size: 1.125rem;
}

.pricing-tab small {
  font-size: 0.875rem;
  opacity: 0.8;
}

.pricing-content {
  display: none;
}

.pricing-content.active {
  display: block;
}

.pricing-card.free-trial {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.pricing-badge-free {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card.enterprise {
  border-color: var(--text-tertiary);
}

.amount-custom {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-discount {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.discount-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.discount-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.discount-content {
  flex: 1;
}

.discount-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.discount-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.pricing-addons {
  padding: 80px 0;
  background: var(--bg-primary);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.addon-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.addon-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.addon-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.addon-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.addon-option:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.addon-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.addon-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.addon-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-faq {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.pricing-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* Dark theme improvements for better text readability */
[data-theme="dark"] .pricing-name {
  color: #f8fafc;
}

[data-theme="dark"] .addon-amount {
  color: #f8fafc;
}

[data-theme="dark"] .discount-title {
  color: #f8fafc;
}

[data-theme="dark"] .cta-title {
  color: #f8fafc;
}

[data-theme="dark"] .pricing-tab span {
  color: inherit;
}

[data-theme="dark"] .pricing-note {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
  color: #10b981;
}

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

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

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero-title {
    font-size: 2.5rem;
  }

  .pricing-hero-subtitle {
    font-size: 1.125rem;
  }

  .pricing-tabs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-tab {
    width: 100%;
    min-width: auto;
  }

  .discount-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
