/* gtlearn.css — shared exam-prep engine styles (theme-aware via style.css vars). */

/* ---- MCQ teaching cards ---- */
.gt-mcq { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 0 0 16px; }
.gt-mcq-meta { display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--ink-dim); margin-bottom: 8px; }
.gt-topic { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px;
  padding: 2px 10px; font-weight: 600; }
.gt-yield { color: var(--warn); letter-spacing: 1px; }
.gt-stem { font-weight: 600; line-height: 1.7; margin-bottom: 12px; }
.gt-opts { display: flex; flex-direction: column; gap: 8px; }
.gt-opt { border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; cursor: pointer;
  transition: background .12s, border-color .12s; line-height: 1.6; }
.gt-opt:hover { border-color: var(--accent); }
.gt-why { display: none; font-size: .85rem; color: var(--ink-dim); margin-top: 6px;
  padding-top: 6px; border-top: 1px dashed var(--line); }
.gt-mcq.revealed .gt-opt { cursor: default; }
.gt-mcq.revealed .gt-opt:hover { border-color: var(--line); }
.gt-mcq.revealed .gt-why { display: block; }
.gt-opt.gt-correct { background: var(--opt-correct-bg); border-color: var(--good); }
.gt-opt.gt-wrong { background: var(--opt-wrong-bg); border-color: var(--bad); }
.gt-deep { margin-top: 12px; padding: 10px 13px; background: var(--bg-soft);
  border-left: 3px solid var(--accent); border-radius: 8px; font-size: .9rem; line-height: 1.7; }

/* ---- quiz runner chrome ---- */
.gt-quizbar { display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; margin-bottom: 14px; position: sticky; top: 56px; z-index: 20; }
.gt-prog { font-weight: 700; }
.gt-score { font-weight: 700; color: var(--good); }
.gt-timer { font-family: monospace; font-size: 1.05rem; color: var(--warn); }
.gt-timer.low { color: var(--bad); }
.gt-quizfoot { display: flex; justify-content: flex-end; margin-top: 16px; }
.gt-result { text-align: center; padding: 28px; background: var(--card);
  border: 2px solid var(--line); border-radius: 14px; }
.gt-result h2 { margin: 0; font-size: 2rem; }
.gt-result p { margin: 8px 0 0; font-size: 1.15rem; }
.gt-result-actions { text-align: center; margin-top: 18px; }

/* ---- mini quick-check (lessons) ---- */
.gt-mini { margin: 22px 0; }
.gt-mini-head { display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--good); margin-bottom: 10px; }
.gt-mini-tally { font-family: monospace; color: var(--ink-dim); }

/* ---- callouts (shared) ---- */
.gt-callout { border-radius: 10px; padding: 12px 16px; margin: 14px 0; border: 1px solid var(--line);
  background: var(--bg-soft); }
.gt-callout .gt-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 6px; }
.gt-callout.warn { border-left: 4px solid var(--warn); }
.gt-callout.warn .gt-lbl { color: var(--warn); }
.gt-callout ul { margin: 4px 0 0; padding-left: 20px; }

/* ---- Smart-Lesson blocks ---- */
.smart-block { border-radius: 12px; padding: 14px 18px; margin: 22px 0; border: 1px solid var(--line);
  background: var(--card); }
.smart-block .sb-head { font-size: .74rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.smart-block.facts { border-left: 4px solid var(--warn); }
.smart-block.facts .sb-head { color: var(--warn); }
.smart-block.facts ul { margin: 4px 0 0; padding-left: 20px; line-height: 1.8; }
.smart-block.facts li b { color: var(--ink); }
.smart-block.misconception { border-left: 4px solid var(--bad); }
.smart-block.misconception .sb-head { color: var(--bad); }
.smart-block.misconception .sb-wrong { color: var(--bad); }
.smart-block.misconception .sb-right { color: var(--good); }
.smart-block.misconception .row { display: flex; gap: 10px; margin: 6px 0; align-items: baseline; }
.smart-block.misconception .tag { font-size: .7rem; font-weight: 700; flex-shrink: 0; width: 46px; }
.smart-block.quickcheck { border-left: 4px solid var(--good); background: var(--bg-soft); }

/* exam-weight badge */
.exam-weight { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-dim); }
.exam-weight .ew-stars { color: var(--warn); letter-spacing: 1px; }
.exam-weight.hi { border-color: var(--warn); color: var(--warn); }

/* ---- dashboard / progress ---- */
.gt-dash { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.gt-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.gt-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.gt-stat .v { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.gt-stat .l { font-size: .8rem; color: var(--ink-dim); margin-top: 6px; }
.gt-levels { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.gt-levelrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; }
.gt-levelrow .topic { font-weight: 600; }
.gt-meter { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden;
  width: 140px; border: 1px solid var(--line); }
.gt-meter > i { display: block; height: 100%; background: var(--accent); }
.gt-lvl-0 > i { width: 0%; } .gt-lvl-1 > i { width: 20%; background: var(--bad); }
.gt-lvl-2 > i { width: 40%; background: var(--bad); } .gt-lvl-3 > i { width: 60%; background: var(--warn); }
.gt-lvl-4 > i { width: 80%; background: var(--good); } .gt-lvl-5 > i { width: 100%; background: var(--good); }
.gt-empty { text-align: center; color: var(--ink-dim); padding: 40px 16px; }

/* ---- command-center daily plan ---- */
.gt-cc { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.gt-plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px auto; }
.gt-plan h2 { margin: 0 0 12px; font-size: 1.1rem; }
.gt-plan .gt-streak { float: right; font-size: .85rem; color: var(--warn); font-weight: 700; }
.gt-plan-list { display: flex; flex-direction: column; gap: 10px; }
.gt-plan-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.gt-plan-item:hover { border-color: var(--accent); transform: translateX(3px); }
.gt-plan-item .ic { font-size: 1.4rem; }
.gt-plan-item .n { margin-left: auto; background: var(--accent); color: #06243a; font-weight: 700;
  border-radius: 99px; padding: 2px 11px; font-size: .82rem; }

/* mistake notebook */
.gt-mistake { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--bad);
  border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.gt-mistake .gt-mn-head { display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--ink-dim); margin-bottom: 8px; }
.gt-mistake .gt-mn-clear { cursor: pointer; color: var(--accent); background: none; border: 0; font-size: .8rem; }
.gt-mistake .gt-mn-chosen { color: var(--bad); } .gt-mistake .gt-mn-correct { color: var(--good); }
