/* Course Compass web dashboard — mobile-first, brand-consistent (navy + gold). Vanilla, no build step. */
:root {
  --bg: #0a1626;
  --bg2: #0e1d33;
  --card: #122943;
  --line: #1f3b5c;
  --text: #eaf1fb;
  --muted: #9fb3cc;
  --gold: #e7b24a;
  --gold-ink: #2a1d05;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beat .grid/.flex display rules */
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(120% 80% at 50% -10%, var(--bg2), var(--bg)) fixed;
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(10, 22, 38, .85); backdrop-filter: blur(8px); z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 26px; height: 26px; display: block; }

/* Buttons */
.btn, .btn-ghost {
  display: inline-block; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: 10px; padding: 10px 16px; border: 1px solid transparent; text-align: center;
}
.btn { background: var(--gold); color: var(--gold-ink); }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }

main { max-width: 760px; margin: 0 auto; padding: 22px 18px 48px; }

/* Hero (signed-out) */
.hero { text-align: center; padding: 7vh 6px 6vh; }
.hero-logo { width: 108px; height: 108px; display: block; margin: 0 auto 20px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(26px, 6vw, 40px); margin: 0 0 10px; line-height: 1.15; }
.lede { color: var(--muted); font-size: 17px; max-width: 30ch; margin: 0 auto 24px; }
/* Custom Google sign-in button — dark, blends with the theme (no white GIS widget) */
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 11px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.btn-google:hover { border-color: var(--gold); background: #16314f; }
.g-icon { display: block; flex: 0 0 auto; }
.msg { color: var(--gold); min-height: 1.2em; margin: 12px 0 0; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 22px; }

/* Cards (signed-in) */
.grid { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row span { color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.card .btn { margin-top: 14px; width: 100%; }

/* ===== Today dashboard (signed-in) ===== */
#signedIn { display: flex; flex-direction: column; gap: 14px; }
.preview-pill { align-self: center; background: rgba(231,178,74,.12); color: var(--gold); border: 1px solid rgba(231,178,74,.32); font-size: 12px; padding: 5px 13px; border-radius: 999px; margin: 0; text-align: center; }
.cg { display: flex; gap: 12px; align-items: flex-start; background: #15294a; border: 1px solid rgba(231,178,74,.32); border-radius: 14px; padding: 14px; }
.cg-av { font-size: 26px; line-height: 1; }
.cg-name { font-weight: 700; color: var(--gold); font-size: 13px; }
.cg-msg { margin: 3px 0 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.sec-label { color: var(--muted); font-size: 13px; margin: 4px 0 -4px; }
.next { border-color: var(--gold); }
.next-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.next-title { font-weight: 600; font-size: 16px; }
.next-due { color: #ff9a8a; font-size: 13px; margin-top: 4px; }
.tag-hunt { background: rgba(231,178,74,.16); color: var(--gold); font-size: 12px; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.btn-block { width: 100%; margin-top: 12px; }
.grade-strip { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: rgba(76,190,130,.12); border: 1px solid rgba(76,190,130,.3); border-radius: 14px; padding: 13px 14px; color: var(--text); cursor: pointer; font: inherit; }
.gs-ic { font-size: 20px; }
.gs-text { flex: 1; display: flex; flex-direction: column; }
.gs-title { font-weight: 600; font-size: 14px; color: #7fd6a4; }
.gs-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.gs-arrow { color: var(--muted); font-size: 22px; line-height: 1; }
.hunt-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hunt-meta { color: var(--muted); font-weight: 400; font-size: 13px; }
.hunt-track { position: relative; height: 28px; }
.hunt-line { position: absolute; top: 13px; left: 10px; right: 10px; height: 3px; background: var(--line); border-radius: 3px; }
.hunt-fill { position: absolute; top: 13px; left: 10px; width: 16%; height: 3px; background: var(--gold); border-radius: 3px; }
.hunt-boat { position: absolute; top: -2px; left: 12%; font-size: 22px; }
.hunt-goal { position: absolute; top: 0; right: 2px; font-size: 20px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 4px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.act:hover { border-color: var(--gold); }
.act-ic { font-size: 20px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .card:nth-child(2), .grid .card:nth-child(3) { grid-column: span 1; }
}
