/*
  theme-slate.css — soft corporate-editorial elegance: dusty navy-slate
  background with a blush-pink accent, kept soft rather than punchy
  (navy carries hierarchy, blush stays a gentle highlight, per the
  navy+blush design research). Cormorant (thin, refined display serif
  — the lightest-weight display face on the site) + DM Sans (clean
  geometric body).

  Scoped under `body[data-theme="slate"]`, set at runtime by
  js/theme_switcher.js. 100% additive. Soft pill shapes throughout —
  no radius override.
*/

body[data-theme="slate"] {
  /* ---- Brand — blush, not orange/blue/red/green ---- */
  --accent:      #f5c5b8;
  --accent-dark: #e8a796;
  --accent-soft: #fbe0d8;
  --success:     #4ade80;
  --danger:      #fb7185;
  --warning:     #fbbf24;

  --primary: var(--accent);
  --primary-dark: var(--accent-dark);

  --gradient-brand: linear-gradient(135deg, #e8a796 0%, #f5c5b8 55%, #fbe0d8 100%);

  /* ---- Surfaces — dusty slate-navy, not near-black ---- */
  --bg:        #2e3f4f;
  --bg-alt:    #283845;
  --bg-card:   #354858;
  --bg-card2:  #3c5062;
  --surface:   rgba(247,233,228,.045);
  --surface-hover: rgba(247,233,228,.075);
  --border:    rgba(247,233,228,.09);
  --border-strong: rgba(247,233,228,.18);

  /* ---- Text ---- */
  --text:      #f7e9e4;
  --text-muted: rgba(247,233,228,.62);
  --text-dim:  rgba(247,233,228,.42);

  --shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 20px rgba(245,197,184,.12);

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

body[data-theme="slate"] h1,
body[data-theme="slate"] h2,
body[data-theme="slate"] h3,
body[data-theme="slate"] h4 {
  font-weight: 500;
  letter-spacing: .005em;
}

/* ---- Header / nav glass ---- */
body[data-theme="slate"] header {
  background: rgba(46,63,79,.82);
}

/* ---- Primary button — blush bg needs dark ink text for contrast ---- */
body[data-theme="slate"] .btn-primary {
  background: var(--accent);
  color: #23303b;
  box-shadow: 0 0 18px rgba(245,197,184,.4);
}
body[data-theme="slate"] .btn-primary:hover {
  background: var(--accent-dark);
  color: #23303b;
  box-shadow: 0 0 26px rgba(245,197,184,.55);
}
body[data-theme="slate"] .btn-secondary:hover {
  border-color: var(--accent-soft);
}

/* ---- Hero: neutralize the three.js shader with a blush wash. ---- */
body[data-theme="slate"] #hero-canvas {
  display: none;
}
body[data-theme="slate"] .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(245,197,184,.16), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(245,197,184,.08), transparent 55%),
    var(--bg);
}
body[data-theme="slate"] .hero-grain {
  background-image:
    linear-gradient(rgba(247,233,228,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,233,228,.045) 1px, transparent 1px);
}
/* Soft italic serif with a hairline rule underneath — refined, not
   loud, distinct from every other theme's block/glow/squiggle. */
body[data-theme="slate"] .hero-heading em {
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: .05em;
}

/* ---- Custom cursor hover ring ---- */
body[data-theme="slate"] .custom-cursor-ring.cursor-hover {
  background: rgba(245,197,184,.14);
}

/* ---- Hero stats panel + level-tab indicator ---- */
body[data-theme="slate"] .hero-stats-panel {
  background: rgba(46,63,79,.55);
}
body[data-theme="slate"] .level-tab-indicator {
  box-shadow: 0 0 16px rgba(245,197,184,.4);
}

/* ---- Badges/chips/progress bars — light-tinted, not white ---- */
body[data-theme="slate"] .topic-progress-bar,
body[data-theme="slate"] .quiz-progress-bar,
body[data-theme="slate"] .mini-bar-track {
  background: rgba(247,233,228,.09);
}
body[data-theme="slate"] .score-circle-bg {
  stroke: rgba(247,233,228,.09);
}
body[data-theme="slate"] .topic-progress-table th {
  background: rgba(247,233,228,.035);
}
body[data-theme="slate"] .topic-progress-table tr:hover td {
  background: rgba(247,233,228,.04);
}
body[data-theme="slate"] .answer-chip {
  background: rgba(247,233,228,.07);
}
body[data-theme="slate"] .answer-chip-remove {
  background: rgba(247,233,228,.12);
}
body[data-theme="slate"] .format-help-panel code {
  background: rgba(247,233,228,.08);
}
body[data-theme="slate"] .topic-chip {
  background: rgba(247,233,228,.07);
}
body[data-theme="slate"] .ai-points {
  border-top-color: rgba(247,233,228,.12);
}
body[data-theme="slate"] .toast {
  background: rgba(46,63,79,.92);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* ---- Accent-tinted glows/focus-rings ---- */
body[data-theme="slate"] .marks-badge,
body[data-theme="slate"] .option-btn:hover:not(:disabled),
body[data-theme="slate"] .setup-option:hover,
body[data-theme="slate"] .setup-option.selected,
body[data-theme="slate"] .symbol-btn:hover,
body[data-theme="slate"] .explanation-box.feedback-reveal {
  background: rgba(245,197,184,.14);
}
body[data-theme="slate"] .quiz-timer {
  border-color: rgba(245,197,184,.35);
}
body[data-theme="slate"] .explanation-box {
  background: rgba(245,197,184,.08);
  border-color: rgba(245,197,184,.32);
}
body[data-theme="slate"] .explanation-box.feedback-reveal {
  border-color: rgba(245,197,184,.42);
}
body[data-theme="slate"] .answer-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,197,184,.2);
}
body[data-theme="slate"] .quiz-progress-fill {
  box-shadow: 0 4px 16px rgba(245,197,184,.4);
}

/* Difficulty badges — generic dark-tuned triple, reused verbatim. */
body[data-theme="slate"] .diff-easy   { background: rgba(34,197,94,.18);  color: #4ade80; }
body[data-theme="slate"] .diff-medium { background: rgba(242,194,24,.18); color: #fadb5f; }
body[data-theme="slate"] .diff-hard   { background: rgba(244,65,95,.18);  color: #fb7185; }
