/*
  theme-cobalt-light.css — pale ice-blue paper with navy ink, flipped
  from the dark native's navy-bg/red-accent arrangement. Red deepened
  for contrast against the light paper.

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

body[data-theme="cobalt"].theme-light {
  --accent:      #c41f39;
  --accent-dark: #9e1830;
  --accent-soft: #f49aaa;
  --success:     #15803d;
  --danger:      #b91c1c;
  --warning:     #92400e;

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

  --bg:        #eaf1fa;
  --bg-alt:    #e0ebf7;
  --bg-card:   #f5f9fd;
  --bg-card2:  #eef4fb;
  --surface:   rgba(11,42,91,.045);
  --surface-hover: rgba(11,42,91,.08);
  --border:    rgba(11,42,91,.14);
  --border-strong: rgba(11,42,91,.28);

  --text:      #0b2a5b;
  --text-muted: rgba(11,42,91,.62);
  --text-dim:  rgba(11,42,91,.42);

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

/* ---- Header / hero-stats glass — light, not dark ---- */
body[data-theme="cobalt"].theme-light header {
  background: rgba(234,241,250,.85);
}
body[data-theme="cobalt"].theme-light .hero-stats-panel {
  background: rgba(245,249,253,.7);
}

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

/* ---- Hero: light wash, ink-tinted grain ---- */
body[data-theme="cobalt"].theme-light .hero-canvas-wrap {
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(196,31,57,.12), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(196,31,57,.07), transparent 55%),
    var(--bg);
}
body[data-theme="cobalt"].theme-light .hero-grain {
  background-image:
    linear-gradient(rgba(11,42,91,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,42,91,.045) 1px, transparent 1px);
}
body[data-theme="cobalt"].theme-light .hero-heading em {
  text-shadow: none;
}

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

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

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