/* Student progress screen (#/gelisim). Loaded after app.css.
   Mint means "done", the rose accent is the one button; never red, never a level number. */
.ic-sprout { --i: url('/icons/sprout.svg'); }
.ic-trending-up { --i: url('/icons/trending-up.svg'); }

.pg .card + .card { margin-top: var(--sp-4); }
.pg h2 { margin: 0; }
.pg-lead { margin: var(--sp-1) 0 var(--sp-4); text-wrap: pretty; }
.pg-empty { margin: var(--sp-3) 0; text-wrap: pretty; }
.pg-kicker { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.pg .num { font-variant-numeric: tabular-nums; }

/* Wide screens: two columns, the week and goals on the left. */
.pg-cols, .pg-col { display: grid; gap: var(--sp-4); align-content: start; }
.pg-col > .card + .card { margin-top: 0; }
@media (min-width: 960px) {
  .narrow.pg { max-width: 1040px; }
  .pg-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- This week ---------- */
.pg-hero-top { display: flex; align-items: center; gap: var(--sp-4); }
.pg-hero .mascot-img { width: 112px; height: 112px; }
.pg-hero-text { min-width: 0; }
.pg-big { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.pg-big b { font-size: var(--fs-2xl); font-weight: 800; color: var(--accent-ink); margin-right: 4px; }
.pg-line { margin: var(--sp-1) 0 0; color: var(--ink-2); text-wrap: pretty; }
.pg-streak { display: inline-flex; align-items: center; gap: 6px; margin: var(--sp-2) 0 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-weight: 700; font-size: var(--fs-sm); }
.pg-streak .ic { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 420px) {
  .pg-hero .mascot-img { width: 84px; height: 84px; }
  .pg-hero-top { gap: var(--sp-3); }
}

.pg-week { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); }
.pg-day { display: grid; justify-items: center; gap: 6px; }
.pg-dot {
  --p: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--surface-2) 0);
  -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px);
}
.pg-day.done .pg-dot { background: var(--mint); color: var(--surface); -webkit-mask: none; mask: none; }
.pg-day.done .pg-dot .ic { width: 20px; height: 20px; }
.pg-day.future .pg-dot { background: var(--surface-2); opacity: .5; }
.pg-dname { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.pg-day.today .pg-dname { color: var(--accent-ink); font-weight: 800; }
.pg-day.today .pg-dname::after { content: ''; display: block; width: 4px; height: 4px; margin: 2px auto 0; border-radius: 50%; background: var(--accent); }

/* ---------- Next small goal ---------- */
.pg-next { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.pg-next-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.pg-next-text p { margin: 0; }
.pg-next-main { font-weight: 800; font-size: var(--fs-md); text-wrap: balance; }
@media (max-width: 520px) {
  .pg-next { grid-template-columns: 44px minmax(0, 1fr); }
  .pg-next .btn { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Subjects towards the month's goal ---------- */
.pg-subjs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.pg-subj-head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: 6px; }
.pg-subj-head > .ic { width: 20px; height: 20px; color: var(--accent-ink); }
.pg-subj-head b { flex: 1; min-width: 0; }
.pg-subj-head .muted, .pg-reached { font-size: var(--fs-sm); }
.pg-reached { display: inline-flex; align-items: center; gap: 4px; color: var(--mint); font-weight: 700; }
.pg-reached .ic { width: 16px; height: 16px; }
.pg-bar { position: relative; height: 14px; border-radius: var(--r-pill); background: var(--surface-2); margin-right: 64px; }
.pg-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: color-mix(in oklab, var(--accent) 70%, var(--surface)); transition: width var(--t-med) var(--ease); }
.pg-subj.reached .pg-fill { background: var(--mint); }
.pg-flag { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pg-flag .ic { width: 14px; height: 14px; color: var(--mint); }
.pg-rise { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--mint-soft); color: var(--mint); font-size: var(--fs-xs); font-weight: 700; }
.pg-rise .ic { width: 14px; height: 14px; }

/* ---------- Lists: got better / practise ---------- */
.pg-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.pg-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.pg-list li > span:nth-child(2) { display: grid; min-width: 0; }
.pg-li-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-soft); color: var(--mint); }
.pg-li-ic.soft { background: var(--accent-soft); color: var(--accent-ink); }
.pg-li-ic .ic { width: 20px; height: 20px; }
.pg-go { min-height: 44px; padding: 0 var(--sp-2) 0 var(--sp-3); gap: 2px; }
.pg-go .ic { width: 18px; height: 18px; }

/* ---------- Denemes: correct answers per sitting ---------- */
.pg-dns { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-3); height: 180px; }
.pg-dn { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-width: 0; }
.pg-dn-val { font-weight: 800; font-size: var(--fs-sm); }
.pg-dn-val small { font-weight: 600; color: var(--ink-2); font-size: var(--fs-xs); }
.pg-dn-col { position: relative; width: 100%; max-width: 44px; height: 100%; border-radius: 10px 10px 4px 4px; background: var(--surface-2); }
.pg-dn-bar { position: absolute; inset: auto 0 0 0; border-radius: inherit; background: color-mix(in oklab, var(--accent) 45%, var(--surface)); }
.pg-dn.last .pg-dn-bar { background: var(--accent); }
.pg-dn-day { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }

/* ---------- Home link card ---------- */
.progress-link { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-4); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast) var(--ease); }
.progress-link:hover { border-color: var(--accent-soft); }
.progress-link .mission-ic { background: var(--mint-soft); color: var(--mint); }
.progress-link .mission-sub { display: block; margin-top: 2px; }
.progress-link .go { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .pg-fill { transition: none; } }
