/* ============================================================
   Progress dashboard — shared visuals
   Single source of truth for the dashboard surface that appears on
   BOTH progress.html and home.html: the "What we're noticing" insight
   hero, the secondary stat tiles, "Where you're growing", and "Recent
   practice". Calculation/render logic lives in progress-dashboard.js;
   this file is purely the look.

   Extracted from progress.html (June 2026) so Home can reuse it
   without duplicating the styles.
   ============================================================ */

/* The dashboard toggles visibility via the `hidden` attribute, but several
   blocks below set an explicit `display` (grid/flex) that would otherwise
   beat the UA `[hidden]{display:none}` rule. Force `hidden` to win so the
   stat grid / growth / history sections actually hide when toggled. */
[hidden] { display: none !important; }

/* Stat tiles */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 22px;
}
.stat-tile {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 14px; text-align: center;
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-top: 8px;
}

.progress-section { margin: 0 0 22px; }
.progress-section-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 10px;
}

.history-list { list-style: none; padding: 0; margin: 0; }
.history-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.history-item:last-child { border-bottom: none; }
.history-title { font-size: 15px; color: var(--text); font-weight: 500; }
.history-meta { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.history-mode {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; margin-right: 8px;
  background: var(--accent-soft); color: var(--accent-b);
}

/* ---- Insight hero ("What we're noticing") --------------------------
   A personal "story" line, not a stat. Deep plum gradient, white text,
   a large faint theme glow. Careful, observational copy only. */
.insight-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 24px 22px;
  background: linear-gradient(135deg, #3c2b63 0%, #2b1f4d 58%, #241a42 100%);
  color: #fff; margin: 2px 0 20px;
  box-shadow: 0 14px 34px -18px rgba(36, 26, 66, 0.72);
}
.insight-glow {
  position: absolute; right: -28px; bottom: -36px;
  width: 172px; height: 172px; opacity: 0.16; color: #fff; pointer-events: none;
}
.insight-glow svg { width: 100%; height: 100%; }
.insight-eyebrow {
  position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.74);
}
.insight-line {
  position: relative; font-family: "Playfair Display", Georgia, serif;
  font-size: 25px; line-height: 1.18; letter-spacing: -0.01em;
  margin: 9px 0 0; max-width: 24ch;
}
.insight-support {
  position: relative; font-size: 14.5px; line-height: 1.5;
  color: rgba(255,255,255,0.85); margin: 10px 0 0; max-width: 30ch;
}

/* Secondary stats — demoted (smaller) now that the insight leads. */
.stat-tile { padding: 14px 12px; }
.stat-num { font-size: 23px; }
.stat-label { margin-top: 6px; font-size: 10px; }

/* Shared circular tinted theme badge (mirrors the coaching cards). */
.theme-chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; border-radius: 50%;
  color: var(--theme-color, var(--accent));
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 15%, transparent);
}

/* ---- Where you're growing — theme rows with a soft gradient wash ----
   The wash length reflects a QUALITATIVE level (Emerging→Consistent),
   never a number. One continuous gradient — nothing to count. */
.growth-list { display: flex; flex-direction: column; gap: 16px; }
.growth-row { display: flex; align-items: center; gap: 13px; }
.growth-text { flex: 1 1 auto; min-width: 0; }
.growth-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.2; }
.growth-phrase { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.growth-wash {
  margin-top: 9px; height: 7px; border-radius: 99px; overflow: hidden;
  background: color-mix(in srgb, var(--theme-color, var(--accent)) 13%, transparent);
}
.growth-wash > span {
  display: block; height: 100%; border-radius: 99px; width: 30%;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--theme-color, var(--accent)) 50%, #ffffff) 0%,
    var(--theme-color, var(--accent)) 100%);
  transition: width 720ms cubic-bezier(0.32, 0.72, 0, 1);
}

.progress-empty { color: var(--text-3); font-size: 14px; line-height: 1.55; }
