/*
  theme-burgundy.css — wine-cellar luxury: deep burgundy background
  with a rich gold accent — the pastel "Sand" half of the reference
  pair is too light to survive as accent-text (same issue Espresso's
  literal caramel had), so it's deepened to a proper gold here and the
  pastel becomes --accent-soft / the light variant's background
  instead. Instrument Serif set in italic for headings (a distinct,
  fashion-editorial serif register — none of the site's other serifs
  are italic-by-default) over Outfit. Slightly larger corner radius
  for an unhurried, luxury feel.

  Scoped under `body[data-theme="burgundy"]`, set at runtime by
  js/theme_switcher.js. 100% additive.
*/

body[data-theme="burgundy"] {
  /* ---- Brand — rich gold, not the pastel reference tone ---- */
  --accent:      #d4a017;
  --accent-dark: #b5860d;
  --accent-soft: #f5de8d;
  --success:     #4ade80;
  --danger:      #fb7185;
  --warning:     #fbbf24;

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

  --gradient-brand: linear-gradient(135deg, #b5860d 0%, #d4a017 55%, #e8c458 100%);

  /* ---- Surfaces — deep wine, not near-black ---- */
  --bg:        #6b0e1e;
  --bg-alt:    #5a0b18;
  --bg-card:   #7c1526;
  --bg-card2:  #8c1b2e;
  --surface:   rgba(247,238,221,.045);
  --surface-hover: rgba(247,238,221,.075);
  --border:    rgba(247,238,221,.1);
  --border-strong: rgba(247,238,221,.2);

  /* ---- Text ---- */
  --text:      #f7eedd;
  --text-muted: rgba(247,238,221,.62);
  --text-dim:  rgba(247,238,221,.42);

  /* ---- Shape — a touch softer/rounder, unhurried ---- */
  --radius:    20px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow:    0 10px 30px rgba(0,0,0,.45), 0 0 20px rgba(212,160,23,.14);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

/* ---- Header / nav glass ---- */
body[data-theme="burgundy"] header {
  background: rgba(107,14,30,.82);
}

/* ---- Primary button ---- */
body[data-theme="burgundy"] .btn-primary {
  background: var(--accent);
  color: #3a1400;
  box-shadow: 0 0 18px rgba(212,160,23,.4);
}
body[data-theme="burgundy"] .btn-primary:hover {
  background: var(--accent-dark);
  color: #3a1400;
  box-shadow: 0 0 26px rgba(212,160,23,.55);
}
body[data-theme="burgundy"] .btn-secondary:hover {
  border-color: var(--accent-soft);
}

/* ---- Hero: neutralize the three.js shader with a wine/gold wash. ---- */
body[data-theme="burgundy"] #hero-canvas {
  display: none;
}
body[data-theme="burgundy"] .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(212,160,23,.16), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(212,160,23,.08), transparent 55%),
    var(--bg);
}
body[data-theme="burgundy"] .hero-grain {
  background-image:
    linear-gradient(rgba(247,238,221,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,238,221,.045) 1px, transparent 1px);
}
/* Upright gold against the surrounding italic serif heading — a
   deliberate contrast in style, not just color. */
body[data-theme="burgundy"] .hero-heading em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(212,160,23,.4);
}

/* ---- Custom cursor hover ring ---- */
body[data-theme="burgundy"] .custom-cursor-ring.cursor-hover {
  background: rgba(212,160,23,.12);
}

/* ---- Hero stats panel + level-tab indicator ---- */
body[data-theme="burgundy"] .hero-stats-panel {
  background: rgba(107,14,30,.55);
}
body[data-theme="burgundy"] .level-tab-indicator {
  box-shadow: 0 0 16px rgba(212,160,23,.4);
}

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

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

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