/*
  theme-slate-light.css — blush-tinted cream background with slate-navy
  ink, flipped from the dark native's navy-bg/blush-accent arrangement.
  Deepened blush for the accent (raw Blush is too pale to read as a
  distinct accent against a blush-tinted background); the literal
  Blush hex becomes --accent-soft instead.

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

body[data-theme="slate"].theme-light {
  --accent:      #9f513c;
  --accent-dark: #894634;
  --accent-soft: #f5c5b8;
  --success:     #15803d;
  --danger:      #b91c1c;
  --warning:     #92400e;

  --gradient-brand: linear-gradient(135deg, #9f513c 0%, #894634 100%);

  --bg:        #fbeee9;
  --bg-alt:    #f5e3db;
  --bg-card:   #fef6f2;
  --bg-card2:  #f8e9e1;
  --surface:   rgba(46,63,79,.045);
  --surface-hover: rgba(46,63,79,.08);
  --border:    rgba(46,63,79,.14);
  --border-strong: rgba(46,63,79,.28);

  --text:      #2e3f4f;
  --text-muted: rgba(46,63,79,.62);
  --text-dim:  rgba(46,63,79,.42);

  --shadow: 0 10px 30px rgba(46,63,79,.1), 0 2px 10px rgba(46,63,79,.05);
}

/* ---- Header / hero-stats glass — light, not dark ---- */
body[data-theme="slate"].theme-light header {
  background: rgba(251,238,233,.85);
}
body[data-theme="slate"].theme-light .hero-stats-panel {
  background: rgba(254,246,242,.7);
}

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

/* ---- Hero: light wash, ink-tinted grain ---- */
body[data-theme="slate"].theme-light .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(159,81,60,.14), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(159,81,60,.08), transparent 55%),
    var(--bg);
}
body[data-theme="slate"].theme-light .hero-grain {
  background-image:
    linear-gradient(rgba(46,63,79,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,63,79,.045) 1px, transparent 1px);
}

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

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

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