/* ============================================================
   hub.css — the menu page. Deliberately self-contained: it does
   not load styles.css, so a change to the deck's stage can never
   break the menu (and the menu does not need the 1920x1080
   stage rules at all).
   ============================================================ */

:root {
  --void: #131519;
  --surface: #1B1E24;
  --surface-2: #21252C;
  --ink: #EDE8DE;
  --dim: #9C9A92;
  --line: #2C3138;
  --gold: #C9A45C;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* the language switch is a css switch, exactly like the deck does it */
html[data-lang="nl"] .en, html[data-lang="en"] .nl { display: none; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(201,164,92,.10), transparent 62%),
    radial-gradient(900px 520px at 88% 6%, rgba(95,197,180,.07), transparent 60%);
}

/* ---------- header ---------- */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 34px 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.brand strong { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.where { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .06em; }
.sw { display: flex; gap: 3px; }
.sw button {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; cursor: pointer;
  transition: .15s;
}
.sw button:hover { color: var(--ink); border-color: #454B54; }
.sw button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #17140F; font-weight: 600; }

/* ---------- the list ---------- */
main { position: relative; z-index: 1; flex: 1; padding: 30px 34px 44px; max-width: 1180px; width: 100%; margin: 0 auto; }
.decks { display: grid; gap: 16px; }

.card {
  position: relative;
  display: grid; grid-template-columns: 5px 1fr auto; align-items: stretch; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: #454B54; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card .accent { background: var(--a); }
.card .txt { padding: 20px 22px; min-width: 0; }
.card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card .sub { margin: 0 0 12px; color: #C6C2B8; font-size: 14px; line-height: 1.5; max-width: 62ch; }
.card .meta { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .05em; }
.card .meta .dot { opacity: .45; margin: 0 7px; }

.card .acts {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 20px 24px 20px 6px;
}
.card .acts a {
  display: block; text-align: center; text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 9px 15px; border-radius: 3px; border: 1px solid var(--line);
  color: #DAD5CA; background: var(--surface-2); transition: .15s;
}
.card .acts a:hover { border-color: var(--gold); color: #fff; }
.card .acts a.go { background: var(--gold); border-color: var(--gold); color: #17140F; font-weight: 600; }
.card .acts a.go:hover { background: #E0B96B; }

.empty { color: var(--dim); font-family: var(--mono); font-size: 13px; }

/* ---------- footer ---------- */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 22px 34px 34px;
  color: var(--dim); font-size: 13px; line-height: 1.6;
}
footer p { margin: 0 0 12px; max-width: 78ch; }
footer code { font-family: var(--mono); font-size: 12px; background: #23272E; padding: 1px 5px; border-radius: 2px; color: #DAD5CA; }
footer a.new {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 3px; padding: 8px 14px;
  transition: .15s;
}
footer a.new:hover { background: var(--gold); color: #17140F; }

@media (max-width: 720px) {
  .top { padding: 18px 18px 14px; }
  main { padding: 20px 18px 34px; }
  .card { grid-template-columns: 4px 1fr; }
  .card .acts { flex-direction: row; padding: 0 20px 20px 22px; }
  .card .acts a { flex: 1; }
  footer { padding: 18px 18px 28px; }
}
