/* ============================================================
   premium.css — CardQuiz Design System · Premium Screen
   ------------------------------------------------------------
   Owns: .premium-screen and all premium-specific classes.
   Tokens only — no hardcoded colors except inside gradients.
   Design language: "Calm Scholar" — soft, premium, gold accent.
   Mobile-first.
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────── */
.premium-screen {
  padding: var(--sp-4);
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: var(--sp-10);
}

/* ════════════════════════════════════════════════════════════
   UPSELL HERO
   ════════════════════════════════════════════════════════════ */
.premium-hero {
  background: var(--grad-hero);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.premium-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.premium-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: var(--sp-4);
}

.premium-hero-icon .material-symbols-rounded {
  font-size: 2.2rem;
  color: var(--accent);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.premium-hero-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extra);
  color: #ffffff;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-2);
}

.premium-hero-sub {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.80);
  line-height: var(--lh-base);
}

/* ════════════════════════════════════════════════════════════
   BENEFITS LIST
   ════════════════════════════════════════════════════════════ */
.premium-benefits {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.premium-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.premium-benefit:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.premium-benefit:first-child {
  padding-top: 0;
}

.premium-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  flex-shrink: 0;
}

.premium-benefit-icon .material-symbols-rounded {
  font-size: 1.25rem;
  color: var(--accent);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.premium-benefit-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-benefit-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  line-height: var(--lh-snug);
}

/* ════════════════════════════════════════════════════════════
   PRICE BLOCK
   ════════════════════════════════════════════════════════════ */
.premium-price {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.premium-price-amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extra);
  color: var(--accent);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.premium-price-note {
  font-size: var(--fs-sm);
  color: var(--text-3);
  margin-top: var(--sp-1);
  line-height: var(--lh-snug);
}

/* ════════════════════════════════════════════════════════════
   CTA BUTTONS
   ════════════════════════════════════════════════════════════ */
.premium-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* ════════════════════════════════════════════════════════════
   ACTIVE STATE
   ════════════════════════════════════════════════════════════ */
.premium-active {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-md);
}

.premium-active-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--r-2xl);
  background: var(--accent-soft);
  margin-bottom: var(--sp-4);
}

.premium-active-icon .material-symbols-rounded {
  font-size: 2.6rem;
  color: var(--accent);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.premium-active-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--success-soft);
  color: var(--success);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.premium-active-badge .material-symbols-rounded {
  font-size: 1rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.premium-active-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-snug);
}

.premium-active-desc {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-5);
}

.premium-active-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
  margin-bottom: var(--sp-6);
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
}

.premium-active-benefit {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: var(--lh-snug);
}

.premium-active-benefit .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--success);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   ANIMATION — respect reduced motion
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .premium-hero-icon {
    animation: premiumPulse 2.8s var(--ease-in-out) infinite;
  }
}

@keyframes premiumPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
