/* ─────────────────────────────────────────────────────────────────────────────
   PokéStock Live — Base styles
   Loaded first. Establishes:
     - Design tokens (CSS custom properties on :root)
     - Document reset and scrollbar hiding
     - Body background + global typography
     - .app shell container
     - Generic <input> / <select> / .card / .hidden / .gold utilities
     - Site footer
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:    #0a0e17;
  --surf:  #121826;
  --surf2: #18202f;
  --line:  #283042;
  --ink:   #eef2f8;
  --mut:   #8a94a8;
  --gold:  #ffcb45;
  --live:  #ff3b46;
  --ok:    #2ee6a0;
  --cool:  #38bdf8;
  --r:     16px;
  /* Full background with subtle gradient accents — use this on any full-page element */
  --bg-gradient:
    radial-gradient(900px 500px at 80% -10%, rgba(56, 189, 248, .10), transparent),
    radial-gradient(700px 500px at -10% 10%, rgba(255, 203, 69, .07), transparent),
    var(--bg);
}

/* ─── Document reset ─────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }

/* Prevent any element from blowing out the viewport width */
* { min-width: 0; }

/* Hide scrollbars everywhere (scrolling stays fully functional) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ─── Body & typography ──────────────────────────────────────────────────── */
body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input { font-family: inherit; }

/* ─── App shell ──────────────────────────────────────────────────────────── */
.app {
  flex: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* ─── Generic form controls ──────────────────────────────────────────────── */
input {
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}
input:focus { border-color: var(--cool); }
select {
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

/* ─── Card + button modifiers + utilities ────────────────────────────────── */
/* (.btn base + .btn-gold/cool/ghost live in navbar.css since they're used there too) */
.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.btn-live  { background: var(--live); color: #fff; }
.btn-white { background: #fff;        color: #000; }
.btn-full  { width: 100%; }
.gold      { color: var(--gold); font-weight: 700; }

/* ─── Site footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--mut);
  margin-top: 48px;
}
.site-footer a {
  color: var(--mut);
  text-decoration: none;
  margin: 0 10px;
  transition: color .15s;
}
.site-footer a:hover { color: var(--ink); }
.footer-links { display: inline; }

/* ─── Mobile (≤ 640px) ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .app          { padding: 12px; }
  .site-footer  { padding: 16px 12px; font-size: 11px; }
}
