/* Groeisprongen — styling volgens design/Groeisprongen.html */

:root {
  --bg: #FAF5EC;
  --card: #FFFFFF;
  --ink: #4A4339;
  --muted: #9C9081;
  --warm: #DE9468;
  --warm-soft: #F8E7D9;
  --path-line: #DBD0BF;
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --accent: #6E9B5B;
  --accent-soft: #E6F0DC;
  /* fallback voor browsers zonder color-mix */
  --accent-deep: #57713F;
  --ring-track: #DDE9D3;
  --accent-deep: color-mix(in oklab, var(--accent), #3A3325 28%);
  --ring-track: color-mix(in oklab, var(--accent), #ffffff 78%);
}

/* Thema-tint: tijdens een sprong of groeispurt kleurt de app warmer,
   zodat je in één oogopslag ziet dat het een "drukke" periode is. */
body.fase-sprong, body.fase-spurt { --bg: #FBF1E7; }
body.fase-sprong #app, body.fase-spurt #app {
  background: radial-gradient(130% 340px at 50% -60px, var(--warm-soft), transparent 72%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  min-height: 100vh;
}

#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top) + 26px) 22px calc(130px + env(safe-area-inset-bottom));
}

/* ---- koppen ---- */
.gs-home-header { margin: 8px 2px 20px; }
.gs-eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 6px;
}
.gs-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; line-height: 1.15; margin: 0 0 4px; color: var(--ink);
  text-wrap: pretty;
}
.gs-home-date { font-size: 14.5px; color: var(--muted); }

.gs-section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin: 26px 4px 10px; color: var(--ink);
}

/* ---- kaarten & pills ---- */
.gs-card {
  background: var(--card); border-radius: 24px; padding: 18px;
  box-shadow: 0 1px 2px rgba(91, 77, 56, 0.05), 0 6px 20px rgba(91, 77, 56, 0.06);
}
.gs-card--status { background: var(--accent-soft); box-shadow: none; }
.gs-card--warm { background: var(--warm-soft); box-shadow: none; }
.gs-tappable { cursor: pointer; }
.gs-tappable:active { transform: scale(0.99); }

.gs-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.gs-pill--accent { background: var(--accent); color: #fff; }
.gs-pill--calm { background: var(--card); color: var(--accent-deep); }
.gs-pill--warm { background: var(--warm); color: #fff; }
.gs-pill--neutral { background: #EFE9DE; color: #857966; }

.gs-body { font-size: 15.5px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.gs-fine { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.gs-chevron { color: #C9BFAF; flex-shrink: 0; }

/* ---- status-kaart (home) ---- */
.gs-status-flex { display: flex; align-items: center; gap: 14px; }
.gs-status-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.gs-status-big { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.3; }
.gs-status-big strong { font-weight: 700; color: var(--accent-deep); }
.gs-status-sub { font-size: 14.5px; color: #7d7263; }
.gs-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.gs-ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.gs-ring-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.gs-ring-cap { font-size: 12.5px; color: #7d7263; margin-top: 3px; }
.gs-status-note {
  margin-top: 14px; font-size: 14px; line-height: 1.55; color: #6f6555;
  background: rgba(255,255,255,0.6); border-radius: 14px; padding: 10px 14px;
}
.gs-link-btn {
  margin-top: 14px; border: none; background: none; padding: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--accent-deep); cursor: pointer;
}

/* "wat helpt nu" (binnen de warme fase-kaart) */
.gs-helpt {
  margin-top: 14px; background: rgba(255, 255, 255, 0.6);
  border-radius: 14px; padding: 12px 14px;
}
.gs-helpt-title {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #A5683D;
}
.gs-helpt ul { margin: 7px 0 0; padding-left: 18px; }
.gs-helpt li { font-size: 14px; line-height: 1.5; color: #6f6555; margin-bottom: 3px; }

/* ---- event-rijen ---- */
.gs-event-row, .gs-next-stop {
  display: flex; align-items: center; gap: 14px; padding: 12px 2px;
  border-bottom: 1px solid #F1EBE0;
}
.gs-event-row[data-leap] { cursor: pointer; }
.gs-event-row.is-last, .gs-next-stop { border-bottom: none; }
.gs-event-dot {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
}
.gs-event-dot--leap { background: var(--accent-soft); color: var(--accent-deep); }
.gs-event-dot--spurt { background: var(--warm-soft); position: relative; }
.gs-event-dot--spurt::after {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: var(--warm); transform: rotate(45deg);
}
.gs-event-body { flex: 1; min-width: 0; }
.gs-event-title { font-weight: 700; font-size: 15.5px; }
.gs-event-sub { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.gs-event-desc { font-size: 14px; color: #7d7263; margin-top: 5px; line-height: 1.5; }

/* ---- grote actieknop ---- */
.gs-big-btn {
  width: 100%; margin-top: 26px; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(110, 155, 91, 0.35);
}
.gs-big-btn:active { transform: scale(0.985); }
.gs-big-btn-plus { font-size: 22px; font-weight: 600; line-height: 0; }

/* ---- tijdlijn ---- */
.gs-timeline { position: relative; width: min(100%, 354px); margin: 0 auto; }
.gs-timeline-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gs-now-badge {
  position: absolute; right: 0; transform: translateY(-50%);
  background: var(--warm); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
}
.gs-node-wrap {
  position: absolute; transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px; width: 250px;
}
.gs-node-wrap.is-left { left: 24px; flex-direction: row; }
.gs-node-wrap.is-right { right: 24px; flex-direction: row-reverse; }
.gs-node-wrap.is-right .gs-node-label { text-align: right; }
.gs-node {
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.gs-node--leap {
  width: 56px; height: 56px; border-radius: 999px; font-size: 22px;
  background: var(--card); color: var(--accent-deep);
  box-shadow: inset 0 0 0 3px var(--accent), 0 4px 12px rgba(91,77,56,0.10);
}
.gs-node--leap.is-geweest { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(91,77,56,0.10); }
.gs-node--leap.is-bezig { background: var(--accent-deep); color: #fff; box-shadow: 0 0 0 6px rgba(110,155,91,0.30), 0 4px 12px rgba(91,77,56,0.14); }
.gs-node--spurt { width: 36px; height: 36px; border-radius: 999px; background: var(--warm-soft); }
.gs-node--spurt .gs-node-diamond { width: 13px; height: 13px; border-radius: 3px; background: var(--warm); transform: rotate(45deg); }
.gs-node--spurt.is-geweest { opacity: 0.55; }
.gs-node--spurt.is-bezig { box-shadow: 0 0 0 5px rgba(222,148,104,0.35); }
.gs-node-label { cursor: pointer; min-width: 0; }
.gs-node-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.gs-node-sub { font-size: 13.5px; color: #7d7263; }
.gs-node-date { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---- mijlpalen ---- */
.gs-mile-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid #F1EBE0; cursor: pointer;
}
.gs-mile-row.is-last { border-bottom: none; }
.gs-check {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0;
  border: 2px solid #D9CFBF;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.gs-check.is-on { background: var(--accent); border-color: var(--accent); }
.gs-mile-label { flex: 1; font-weight: 600; font-size: 15.5px; }
.gs-mile-label.is-on { color: var(--muted); text-decoration: line-through; text-decoration-color: #C9BFAF; }
.gs-mile-week { font-size: 12.5px; color: var(--muted); }
.gs-skill-hint { font-size: 13px; color: var(--muted); margin: -4px 2px 8px; }

/* ---- sprong-detail ---- */
.gs-back {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; background: none; cursor: pointer; padding: 4px 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--accent-deep); margin-bottom: 14px;
}
.gs-leap-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.gs-leap-num {
  width: 76px; height: 76px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  background: var(--accent-soft); color: var(--accent-deep);
}
.gs-leap-num.is-bezig { background: var(--accent-deep); color: #fff; }
.gs-leap-num.is-geweest { background: var(--accent); color: #fff; }
.gs-list { margin: 0; padding: 0 0 0 4px; list-style: none; }
.gs-list li {
  position: relative; padding: 7px 0 7px 26px; font-size: 15.5px; line-height: 1.5;
}
.gs-list li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}

/* ---- logboek ---- */
.gs-daystrip {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: none;
}
.gs-daystrip::-webkit-scrollbar { display: none; }
.gs-day {
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--card); border-radius: 16px; padding: 9px 0 7px;
  width: 46px; font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(91,77,56,0.05);
}
.gs-day.is-sel { background: var(--accent); }
.gs-day-name { font-size: 11px; color: var(--muted); font-weight: 700; }
.gs-day-num { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.gs-day.is-sel .gs-day-name, .gs-day.is-sel .gs-day-num { color: #fff; }
.gs-day-mark { width: 6px; height: 6px; border-radius: 999px; background: transparent; }
.gs-day-mark.has-entry { background: #C9BFAF; }
.gs-day-mark.is-leap { background: var(--accent); }
.gs-day-mark.is-spurt { background: var(--warm); }
.gs-day.is-sel .gs-day-mark.has-entry, .gs-day.is-sel .gs-day-mark.is-leap, .gs-day.is-sel .gs-day-mark.is-spurt { background: #fff; }

.gs-ctx-note {
  margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #7a5c41;
  background: var(--warm-soft); border-radius: 14px; padding: 10px 14px;
}
.gs-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-tag {
  border: none; cursor: pointer; font-family: var(--font-body);
  background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 10px 15px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(91,77,56,0.06);
  transition: background 0.12s, color 0.12s;
}
.gs-tag.is-on { background: var(--accent); color: #fff; }
.gs-tag.is-small { padding: 4px 10px; font-size: 12px; cursor: default; box-shadow: none; }
.gs-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.gs-note {
  width: 100%; margin-top: 14px;
  border: none; resize: none; min-height: 76px;
  background: var(--card); border-radius: 18px; padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(91,77,56,0.05);
}
.gs-note:focus { outline: 2px solid var(--accent); }
.gs-note::placeholder { color: #BFB4A2; }
.gs-hist-row { padding: 12px 2px; border-bottom: 1px solid #F1EBE0; display: flex; flex-direction: column; gap: 7px; }
.gs-hist-row.is-last { border-bottom: none; }
.gs-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gs-hist-date { font-weight: 700; font-size: 14.5px; }
.gs-hist-ctx { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.gs-hist-ctx.is-leap { background: var(--accent-soft); color: var(--accent-deep); }
.gs-hist-ctx.is-spurt { background: var(--warm-soft); color: #A5683D; }
.gs-hist-note { font-size: 14px; color: #7d7263; line-height: 1.5; }

/* ---- sheet (groeispurt-info) ---- */
.gs-sheet-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(60, 50, 35, 0.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.gs-sheet {
  background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 12px 24px calc(28px + env(safe-area-inset-bottom));
  width: 100%; max-width: 540px;
}
.gs-sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: #D9CFBF; margin: 0 auto 16px; }
.gs-sheet-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 4px; }

/* ---- instellingen ---- */
.gs-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gs-date-input {
  border: none; background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 10px 12px; border-radius: 12px;
}
.gs-sync-input {
  width: 100%; border: none; background: var(--card); color: var(--ink);
  font-family: var(--font-body); font-size: 15px;
  border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.gs-sync-input:focus { outline: 2px solid var(--accent); }
.gs-sync-input::placeholder { color: #BFB4A2; }

.gs-danger-btn {
  border: none; background: none; cursor: pointer; width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  color: #C2553F; padding: 6px 0; text-align: center;
}
.gs-danger-btn.is-solid { background: #C2553F; color: #fff; border-radius: 999px; padding: 12px 18px; width: auto; }
.gs-ghost-btn {
  border: none; cursor: pointer; background: #EFE9DE; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  border-radius: 999px; padding: 12px 18px;
}
.gs-confirm-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- setup ---- */
.gs-setup {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 78vh; text-align: center;
}
.gs-setup .gs-h1 { margin-bottom: 10px; }
.gs-setup-logo { font-size: 52px; margin-bottom: 12px; }
.gs-setup .gs-date-input { width: 100%; text-align: center; font-size: 17px; padding: 14px; margin: 18px 0 6px; }

/* ---- tab bar ---- */
.gs-tabbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
  pointer-events: none;
  display: flex; justify-content: center;
}
.gs-tabbar-wrap[hidden] { display: none; }
.gs-tabbar {
  pointer-events: auto;
  display: flex; gap: 4px;
  width: 100%; max-width: 500px;
  background: var(--card); border-radius: 999px; padding: 7px;
  box-shadow: 0 2px 6px rgba(91,77,56,0.08), 0 10px 30px rgba(91,77,56,0.13);
}
.gs-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px; border-radius: 999px; color: #A99D8B;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  text-decoration: none;
}
.gs-tab.is-active { background: var(--accent-soft); color: var(--accent-deep); }
