/* ==========================================================================
   iziDizi — Pricing Components
   Pricing section, pricing cards, pricing features.
   ========================================================================== */

/* --- Pricing Section ------------------------------------------------------ */
.pricing-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
  align-items: start;
}

.pricing-subtitle {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.pricing-card {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, border-color 0.3s;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card:hover::after { opacity: 1; }

.pricing-featured {
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}

.pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
  line-height: 1;
}

.pricing-price span {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-desc {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

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

.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.pricing-btn { width: 100%; }

.btn-nav-cta {
  padding: 8px 20px;
  font-size: 0.8125rem;
  min-height: 36px;
}

/* --- Responsive: Tablet (max 1024px) -------------------------------------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
}

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

/* --- Responsive: Small mobile (max 480px) --------------------------------- */
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* --- Light Theme Overrides ------------------------------------------------ */
[data-theme="light"] .pricing-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pricing-card::after {
  box-shadow: var(--shadow-hover-light);
}

[data-theme="light"] .pricing-featured {
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .pricing-featured:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 8px 20px rgba(37, 99, 235, 0.15);
}
