/*
  theme-terminal-light.css — "daylight terminal": the same all-
  monospace identity as theme-terminal.css, flipped to a pale mint
  paper background with deep-green ink instead of neon-on-black.

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

body[data-theme="terminal"].theme-light {
  --accent:      #1a7a3d;
  --accent-dark: #145c2e;
  --accent-soft: #5fb37d;
  --success:     #1a7a3d;
  --danger:      #b8352a;
  --warning:     #a67c2e;

  --bg:        #eef7ee;
  --bg-alt:    #e6f0e3;
  --bg-card:   #f5faf3;
  --bg-card2:  #e9f3e6;
  --surface:   rgba(10,30,15,.05);
  --surface-hover: rgba(10,30,15,.09);
  --border:    rgba(10,30,15,.18);
  --border-strong: rgba(10,30,15,.32);

  --text:      #0f2a17;
  --text-muted: rgba(15,42,23,.62);
  --text-dim:  rgba(15,42,23,.42);

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

/* ---- Header / hero-stats glass — light, not dark ---- */
body[data-theme="terminal"].theme-light header {
  background: rgba(238,247,238,.85);
}
body[data-theme="terminal"].theme-light .hero-stats-panel {
  background: rgba(245,250,243,.7);
}

/* ---- Primary button — deep green needs light text, unlike the dark
   variant's neon-green-needs-dark-text pairing. ---- */
body[data-theme="terminal"].theme-light .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,122,61,.35);
}
body[data-theme="terminal"].theme-light .btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,122,61,.45);
}
body[data-theme="terminal"].theme-light .option-btn:hover:not(:disabled) .option-letter,
body[data-theme="terminal"].theme-light .subtab.active,
body[data-theme="terminal"].theme-light .level-tab.active {
  color: #fff;
}

/* ---- Hero: light green wash, ink-tinted grain ---- */
body[data-theme="terminal"].theme-light .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(26,122,61,.12), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(26,122,61,.07), transparent 55%),
    var(--bg);
}
body[data-theme="terminal"].theme-light .hero-grain {
  background-image:
    linear-gradient(rgba(10,30,15,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,15,.05) 1px, transparent 1px);
}
body[data-theme="terminal"].theme-light .hero-heading em {
  text-shadow: none;
}

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

/* ---- Accent-tinted glows — deep green, not neon ---- */
body[data-theme="terminal"].theme-light .marks-badge,
body[data-theme="terminal"].theme-light .option-btn:hover:not(:disabled),
body[data-theme="terminal"].theme-light .setup-option:hover,
body[data-theme="terminal"].theme-light .setup-option.selected,
body[data-theme="terminal"].theme-light .symbol-btn:hover,
body[data-theme="terminal"].theme-light .explanation-box.feedback-reveal {
  background: rgba(26,122,61,.1);
}
body[data-theme="terminal"].theme-light .quiz-timer {
  border-color: rgba(26,122,61,.25);
}
body[data-theme="terminal"].theme-light .explanation-box {
  background: rgba(26,122,61,.06);
  border-color: rgba(26,122,61,.25);
}
body[data-theme="terminal"].theme-light .explanation-box.feedback-reveal {
  border-color: rgba(26,122,61,.35);
}
body[data-theme="terminal"].theme-light .answer-input:focus {
  box-shadow: 0 0 0 3px rgba(26,122,61,.15);
}
body[data-theme="terminal"].theme-light .quiz-progress-fill {
  box-shadow: none;
}

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