/* ── CourseCater shared base styles ─────────────────────────────────────────
   Included by every page. Page-specific overrides live in each file's <style>.  */

/* ── Design tokens ──────────────────────────────────────────────────────────*/
:root {
  --bg:        oklch(0.984 0.008 150);
  --surface:   #ffffff;
  --surface-2: oklch(0.975 0.010 150);
  --ink:       oklch(0.27 0.018 160);
  --ink-soft:  oklch(0.44 0.016 160);
  --muted:     oklch(0.58 0.014 160);
  --line:      oklch(0.915 0.010 160);
  --line-soft: oklch(0.945 0.008 160);

  --green:      oklch(0.585 0.118 150);
  --green-deep: oklch(0.46 0.10 154);
  --green-ink:  oklch(0.40 0.09 156);
  --green-soft: oklch(0.948 0.040 150);
  --green-mid:  oklch(0.90 0.060 150);

  --red:       oklch(0.62 0.14 25);
  --red-soft:  oklch(0.96 0.025 25);
  --amber:     oklch(0.74 0.11 75);

  --radius:    12px;
  --shadow-sm: 0 1px 2px oklch(0.4 0.03 160 / 0.05);
  --shadow:    0 6px 22px oklch(0.45 0.04 160 / 0.07), 0 1px 2px oklch(0.45 0.04 160 / 0.05);
}

/* ── Reset & base ───────────────────────────────────────────────────────────*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
.mono { font-family: "JetBrains Mono", monospace; }

/* ── App shell (sidebar layout pages) ──────────────────────────────────────*/
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Sidebar ────────────────────────────────────────────────────────────────*/
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-name span { color: var(--green); }

/* ── Nav ────────────────────────────────────────────────────────────────────*/
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 10px; margin: 14px 0 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--green-soft); color: var(--green-ink); font-weight: 600; }
.nav-item.active svg { color: var(--green); }

/* ── Sidebar footer (streak) ────────────────────────────────────────────────*/
.sidebar-foot { margin-top: auto; }
.streak-pill {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.streak-flame {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, oklch(0.78 0.12 75), oklch(0.7 0.14 55));
  display: grid; place-items: center; font-size: 17px;
}
.streak-pill b { font-size: 15px; }
.streak-pill small { color: var(--muted); font-size: 12px; display: block; }
