/*
  theme-burgundy-light.css — the literal reference-image pairing: the
  pastel Sand gold as paper, burgundy ink. Since the bg is already
  gold-toned, gold can't also be the accent here (gold-on-gold would
  fail contrast) — the accent becomes a brighter burgundy instead,
  which is also the more natural "wine on cream" read.

  Scoped under `body[data-theme="burgundy"].theme-light` (compound
  selector, beats theme-burgundy.css's single-attribute rules on
  specificity). Toggled at runtime by js/color_scheme.js.
*/

body[data-theme="burgundy"].theme-light {
  --accent:      #8c1b2e;
  --accent-dark: #6b0e1e;
  --accent-soft: #c2465a;
  --success:     #15803d;
  --danger:      #b91c1c;
  --warning:     #92400e;

  --gradient-brand: linear-gradient(135deg, #8c1b2e 0%, #6b0e1e 100%);

  --bg:        #f6e29c;
  --bg-alt:    #f0d98a;
  --bg-card:   #faf0c4;
  --bg-card2:  #f5e7ae;
  --surface:   rgba(107,14,30,.045);
  --surface-hover: rgba(107,14,30,.08);
  --border:    rgba(107,14,30,.14);
  --border-strong: rgba(107,14,30,.28);

  --text:      #6b0e1e;
  --text-muted: rgba(107,14,30,.62);
  --text-dim:  rgba(107,14,30,.42);

  --shadow: 0 10px 30px rgba(107,14,30,.1), 0 2px 10px rgba(107,14,30,.05);
}

/* ---- Header / hero-stats glass — light, not dark ---- */
body[data-theme="burgundy"].theme-light header {
  background: rgba(246,226,156,.85);
}
body[data-theme="burgundy"].theme-light .hero-stats-panel {
  background: rgba(250,240,196,.7);
}

/* ---- Primary button ---- */
body[data-theme="burgundy"].theme-light .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140,27,46,.32);
}
body[data-theme="burgundy"].theme-light .btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(140,27,46,.42);
}
body[data-theme="burgundy"].theme-light .option-btn:hover:not(:disabled) .option-letter,
body[data-theme="burgundy"].theme-light .subtab.active,
body[data-theme="burgundy"].theme-light .level-tab.active {
  color: #fff;
}

/* ---- Hero: light wash, ink-tinted grain, no glow on the word ---- */
body[data-theme="burgundy"].theme-light .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(140,27,46,.12), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(140,27,46,.07), transparent 55%),
    var(--bg);
}
body[data-theme="burgundy"].theme-light .hero-grain {
  background-image:
    linear-gradient(rgba(107,14,30,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,14,30,.045) 1px, transparent 1px);
}
body[data-theme="burgundy"].theme-light .hero-heading em {
  text-shadow: none;
}

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

/* ---- Accent-tinted glows/focus-rings ---- */
body[data-theme="burgundy"].theme-light .marks-badge,
body[data-theme="burgundy"].theme-light .option-btn:hover:not(:disabled),
body[data-theme="burgundy"].theme-light .setup-option:hover,
body[data-theme="burgundy"].theme-light .setup-option.selected,
body[data-theme="burgundy"].theme-light .symbol-btn:hover,
body[data-theme="burgundy"].theme-light .explanation-box.feedback-reveal {
  background: rgba(140,27,46,.1);
}
body[data-theme="burgundy"].theme-light .quiz-timer {
  border-color: rgba(140,27,46,.28);
}
body[data-theme="burgundy"].theme-light .explanation-box {
  background: rgba(140,27,46,.06);
  border-color: rgba(140,27,46,.28);
}
body[data-theme="burgundy"].theme-light .explanation-box.feedback-reveal {
  border-color: rgba(140,27,46,.38);
}
body[data-theme="burgundy"].theme-light .answer-input:focus {
  box-shadow: 0 0 0 3px rgba(140,27,46,.16);
}
body[data-theme="burgundy"].theme-light .quiz-progress-fill {
  box-shadow: none;
}

/* ---- Difficulty badges — light-appropriate generic pair ---- */
body[data-theme="burgundy"].theme-light .diff-easy   { background: rgba(22,163,74,.12); color: #15803d; }
body[data-theme="burgundy"].theme-light .diff-medium { background: rgba(180,83,9,.14); color: #92400e; }
body[data-theme="burgundy"].theme-light .diff-hard   { background: rgba(220,38,38,.12); color: #b91c1c; }
