/* Progress page: the skill radar's legend, the vocabulary cards (static/vocab.js) and the "one level up" sentence view on the Feedback page
   (templates/index.html, sentence_upgrade.py). */

/* ---------- skill radar (templates/index.html) ---------- */
.aura-radar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; font-weight: 700; color: #4b5068; }
.aura-radar-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.aura-radar-legend i { width: 16px; height: 0; border-top: 3px solid #4f46e5; border-radius: 2px; }
.aura-radar-legend i.is-first { border-top: 3px dashed #f5b544; }
html[data-theme="dark"] .aura-radar-legend { color: #c3c8ea; }
/* Computer: the chart fills the card instead of a 320px square. */
@media (min-width: 1024px) { #radarBox { max-width: none; margin-left: -8px; margin-right: -8px; } }

/* ---------- level colours, light to deep ---------- */
.vc-A1 { --lv: #dbe4ff; --lv-ink: #3b4a8a; }
.vc-A2 { --lv: #b9c8ff; --lv-ink: #2f3f86; }
.vc-B1 { --lv: #8ea2fb; --lv-ink: #fff; }
.vc-B2 { --lv: #6366f1; --lv-ink: #fff; }
.vc-C1 { --lv: #4338ca; --lv-ink: #fff; }
.vc-C2 { --lv: #2e1f8f; --lv-ink: #fff; }

.vc-sub { margin: 0 0 12px; font-size: 12.5px; color: #6b7090; }
.vc-small { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; color: #6b7090; }
.vc-lv { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 7px;
  background: var(--lv); color: var(--lv-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }

.vc-bar { display: flex; height: 26px; gap: 2px; border-radius: 10px; overflow: hidden; }
.vc-seg { display: grid; place-items: center; min-width: 4px; background: var(--lv); color: var(--lv-ink); font-size: 10.5px; font-weight: 800; }

.vc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.vc-tile { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #eef0f7; border-radius: 14px; background: #fafbff; text-align: left; font: inherit; cursor: pointer; }
.vc-tile:disabled { cursor: default; }
.vc-tile.is-on { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, .18); background: #fff; }
.vc-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vc-tile-top b { font-size: 16px; color: #0f1222; font-variant-numeric: tabular-nums; }
.vc-tile-name { font-size: 10.5px; color: #8a8fac; line-height: 1.25; }
/* Wide computer screens: the two cards side by side above Recent submissions. */
@media (min-width: 1280px) {
  #vocabCards:not(:empty) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  #vocabCards > * { margin-top: 0 !important; }
}

.vc-examples { margin-bottom: 12px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip { padding: 4px 10px; border-radius: 999px; background: #f1f3fb; color: #2b2f4a; font-size: 12.5px; font-weight: 600; }
.vc-none { color: #9ca3af; font-size: 12px; }
.vc-lock-line { margin: 0 0 12px; font-weight: 600; }
.vc-tip { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border-radius: 14px; background: #eef2ff; font-size: 12px; color: #4b5068; line-height: 1.45; }
.vc-tip b { color: #3730a3; font-size: 13px; }
.vc-credit { margin: 10px 0 0; font-size: 10px; color: #a3a7c0; }

.vc-rows { display: grid; gap: 8px; }
.vc-row { padding: 11px 12px; border: 1px solid #eef0f7; border-radius: 16px; background: #fff; }
.vc-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-word { font-size: 15px; font-weight: 800; color: #0f1222; }
.vc-count { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #b45309; background: #fffbeb; padding: 3px 8px; border-radius: 999px; }
.vc-better { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vc-better-label { font-size: 11px; font-weight: 700; color: #8a8fac; }
.vc-good { padding: 4px 10px; border-radius: 999px; background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; font-size: 12.5px; font-weight: 700; }
.vc-good i { font-style: normal; font-size: 10px; opacity: .7; margin-left: 2px; }
.vc-blur { filter: blur(4px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.vc-empty { margin: 0; padding: 12px; border-radius: 14px; background: #f8f9fd; font-size: 13px; color: #6b7090; text-align: center; }
.vc-upsell { display: grid; gap: 10px; justify-items: center; margin-top: 12px; padding: 14px; border-radius: 16px; background: #f5f7ff; text-align: center; }
.vc-upsell p { margin: 0; font-size: 12.5px; color: #4b5068; font-weight: 600; }
.vc-upsell button { padding: 10px 22px; font-size: 13.5px; }

/* ---------- Sentence by sentence, one level up ---------- */
.su-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.su-head .vc-lv { height: 24px; min-width: 32px; font-size: 12px; }
.su-arrow { color: #8a8fac; font-weight: 800; }
.su-head p { margin: 0; font-size: 12.5px; color: #4b5068; font-weight: 600; }
.su-rows { display: grid; gap: 10px; }
.su-count { margin: 0 0 2px; font-size: 12px; color: #6b7090; }
.su-note { margin: 0 0 12px; font-size: 11px; color: #9ca3af; }
.su-warn { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #fffbeb; color: #b45309; font-size: 12px; }
.su-row { padding: 13px 14px; border: 1px solid #eef0f7; border-radius: 18px; background: #fff; }
.su-top { display: flex; gap: 9px; }
.su-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 8px; background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 800; }
.su-text { margin: 0; font-size: 14px; line-height: 1.6; color: #1f2340; }
.su-from { background: rgba(239, 68, 68, .14); color: inherit; border-bottom: 2px solid rgba(239, 68, 68, .55); border-radius: 3px; padding: 0 1px; }
.su-pairs { display: grid; gap: 8px; margin: 10px 0 0 31px; }
.su-pair { display: grid; gap: 3px; padding-left: 12px; border-left: 3px solid #e5e7ef; }
.su-pair p { margin: 0; display: flex; gap: 7px; font-size: 13.5px; line-height: 1.45; color: #1f2340; }
.su-pair .su-bad { color: #6b7090; }
.su-pair .su-good { font-weight: 600; }
.su-better { margin: 10px 0 0 31px; padding: 10px 12px; border-radius: 14px; background: #ecfdf3; border: 1px solid #bbf7d0; }
.su-better-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #15803d; }
.su-better-label .vc-lv { height: 18px; min-width: 24px; font-size: 10px; }
.su-better p { margin: 0; font-size: 14px; line-height: 1.6; color: #14532d; }
.su-ok { margin: 8px 0 0 31px; font-size: 12px; font-weight: 700; color: #15803d; }
@media (max-width: 479px) { .su-pairs, .su-better, .su-ok { margin-left: 0; } }

/* ---------- dark theme ---------- */
html[data-theme="dark"] .vc-sub, html[data-theme="dark"] .vc-small, html[data-theme="dark"] .vc-tile-name { color: #a3a9cf; }
html[data-theme="dark"] .vc-tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .vc-tile.is-on { background: rgba(99, 102, 241, .14); border-color: #818cf8; }
html[data-theme="dark"] .vc-tile-top b, html[data-theme="dark"] .vc-word { color: #eef0ff; }
html[data-theme="dark"] .vc-chip { background: rgba(255, 255, 255, .07); color: #dfe3ff; }
html[data-theme="dark"] .vc-tip { background: rgba(99, 102, 241, .14); color: #c3c8ea; }
html[data-theme="dark"] .vc-tip b { color: #c7d2fe; }
html[data-theme="dark"] .vc-credit { color: #6f7499; }
html[data-theme="dark"] .vc-row, html[data-theme="dark"] .su-row { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .vc-count { background: rgba(251, 191, 36, .14); color: #fcd34d; }
html[data-theme="dark"] .vc-good { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .35); color: #86efac; }
html[data-theme="dark"] .vc-empty, html[data-theme="dark"] .vc-upsell { background: rgba(255, 255, 255, .05); color: #a3a9cf; }
html[data-theme="dark"] .vc-upsell p { color: #c3c8ea; }
html[data-theme="dark"] .su-count { color: #a3a9cf; }
html[data-theme="dark"] .su-head p, html[data-theme="dark"] .su-text, html[data-theme="dark"] .su-pair p { color: #e3e6ff; }
html[data-theme="dark"] .su-pair .su-bad { color: #a3a9cf; }
html[data-theme="dark"] .su-pair { border-left-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .su-n { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
html[data-theme="dark"] .su-from { background: rgba(248, 113, 113, .2); border-bottom-color: rgba(248, 113, 113, .6); }
html[data-theme="dark"] .su-better { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); }
html[data-theme="dark"] .su-better p { color: #bbf7d0; }
html[data-theme="dark"] .su-better-label, html[data-theme="dark"] .su-ok { color: #86efac; }
