/* Style options. "yol" = the default look in style.css (no overrides).
   Each theme only changes variables plus a few shape and font details. */

/* ---------- Asfalt: always dark, asphalt grey with road-marking yellow ---------- */
[data-theme="asfalt"] {
  color-scheme: dark;
  --bg: #15181c;
  --surface: #1e2227;
  --surface-2: #2a2f36;
  --text: #f1f2f4;
  --muted: #a3a9b3;
  --line: #343a42;
  --primary: #f5c542;
  --primary-ink: #1a1500;
  --primary-soft: #3a3115;
  --good: #5ad28a;
  --good-soft: #173826;
  --bad: #ff7a6b;
  --bad-soft: #3d1d1a;
  --warn: #ffb347;
  --warn-soft: #3b2a12;
  --hl: #4a3f14;
  --shadow: none;
  --radius: 8px;
  --road-line: #ffffff;
  --gm-purple: #c3a6ff;
  --gm-purple-soft: #2d2540;
}
[data-theme="asfalt"] .logo { background: #2a2f36; }
[data-theme="asfalt"] h1,
[data-theme="asfalt"] h2 { letter-spacing: .02em; text-transform: uppercase; font-size: 1rem; }
[data-theme="asfalt"] h1 { font-size: 1.3rem; }
[data-theme="asfalt"] .btn,
[data-theme="asfalt"] .opt,
[data-theme="asfalt"] .seg-btn { border-radius: 8px; }
[data-theme="asfalt"] .btn-primary { box-shadow: 0 3px 0 #b48c1c; }
[data-theme="asfalt"] .btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #b48c1c; }
/* dashed road line along the bottom of the header */
[data-theme="asfalt"] .top { border-bottom: 0; box-shadow: 0 2px 0 #2a2f36; }
[data-theme="asfalt"] .top::after {
  content: ""; display: block; height: 3px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 22px, transparent 22px 40px);
  opacity: .8;
}

/* ---------- Daftar: always light, warm paper and ink, exam-sheet feel ---------- */
[data-theme="daftar"] {
  color-scheme: light;
  --bg: #f6f0e4;
  --surface: #fffdf8;
  --surface-2: #efe6d4;
  --text: #22252d;
  --muted: #6c6658;
  --line: #ddd2bc;
  --primary: #1d3f72;
  --primary-ink: #ffffff;
  --primary-soft: #e3e9f4;
  --good: #2c7a3f;
  --good-soft: #e2f0e0;
  --bad: #b8322a;
  --bad-soft: #f8e1dc;
  --warn: #8a5a00;
  --warn-soft: #f7e8c8;
  --hl: #fbeaa0;
  --shadow: 0 1px 0 #e6dcc8;
  --radius: 6px;
  --road-line: #ffffff;
}
[data-theme="daftar"] h1,
[data-theme="daftar"] h2,
[data-theme="daftar"] .ring-num,
[data-theme="daftar"] .brand strong,
[data-theme="daftar"] .qtext,
[data-theme="daftar"] .res-pct { font-family: Georgia, "Times New Roman", serif; }
[data-theme="daftar"] .brand strong { color: var(--text); }
[data-theme="daftar"] .logo { background: var(--bad); box-shadow: none; }
[data-theme="daftar"] .btn,
[data-theme="daftar"] .opt,
[data-theme="daftar"] .seg-btn,
[data-theme="daftar"] .qico { border-radius: 6px; }
/* ruled notebook lines and a red margin line */
[data-theme="daftar"] body {
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #e9dfca 31px 32px);
}
[data-theme="daftar"] .app { border-left: 2px solid #e8b4ad; }
[data-theme="daftar"] .opt-letter { border-radius: 4px; }

/* ---------- theme picker on the settings page ---------- */
.theme-list { display: grid; gap: 10px; }
.theme-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius); border: 2px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit;
}
.theme-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.theme-opt small { display: block; color: var(--muted); font-size: .85rem; }
.swatch { flex: none; width: 54px; height: 54px; border-radius: 10px; position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.swatch::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.sw-yol    { background: #f4f7f9; } .sw-yol::before    { background: #1f6f8b; }
.sw-asfalt { background: #15181c; } .sw-asfalt::before { background: repeating-linear-gradient(90deg, #f5c542 0 10px, #2a2f36 10px 16px); }
.sw-daftar { background: #f6f0e4; } .sw-daftar::before { background: #1d3f72; border-top: 3px solid #b8322a; }
