/*
  theme-mulberry-light.css — the literal reference-image pairing: mint
  paper background with mulberry ink, flipped from the dark native's
  plum-bg/jade-accent arrangement.

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

body[data-theme="mulberry"].theme-light {
  --accent:      #8c3f72;
  --accent-dark: #6e2f59;
  --accent-soft: #c98fb4;
  --success:     #1f8f5d;
  --danger:      #b23a55;
  --warning:     #a67c2e;

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

  --bg:        #e4ede1;
  --bg-alt:    #dce8db;
  --bg-card:   #eff5ec;
  --bg-card2:  #e7f0e4;
  --surface:   rgba(58,32,54,.045);
  --surface-hover: rgba(58,32,54,.08);
  --border:    rgba(58,32,54,.14);
  --border-strong: rgba(58,32,54,.28);

  --text:      #3a2036;
  --text-muted: rgba(58,32,54,.62);
  --text-dim:  rgba(58,32,54,.42);

  --shadow: 0 10px 30px rgba(58,32,54,.12), 0 2px 10px rgba(58,32,54,.06);
}

/* ---- Header / hero-stats glass — light, not dark ---- */
body[data-theme="mulberry"].theme-light header {
  background: rgba(228,237,225,.85);
}
body[data-theme="mulberry"].theme-light .hero-stats-panel {
  background: rgba(239,245,236,.7);
}

/* ---- Primary button — needs light text on this darker magenta accent. ---- */
body[data-theme="mulberry"].theme-light .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140,63,114,.32);
}
body[data-theme="mulberry"].theme-light .btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(140,63,114,.42);
}
body[data-theme="mulberry"].theme-light .option-btn:hover:not(:disabled) .option-letter,
body[data-theme="mulberry"].theme-light .subtab.active,
body[data-theme="mulberry"].theme-light .level-tab.active {
  color: #fff;
}

/* ---- Hero: light wash, ink-tinted grain ---- */
body[data-theme="mulberry"].theme-light .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(140,63,114,.12), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(87,185,140,.08), transparent 55%),
    var(--bg);
}
body[data-theme="mulberry"].theme-light .hero-grain {
  background-image:
    linear-gradient(rgba(58,32,54,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,32,54,.045) 1px, transparent 1px);
}

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

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

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