/* ============================================================================
   POKEYMALL — SHARED STYLES
   Design tokens, base reset, and shared chrome (header, nav, primary button,
   footer) used by index.html and sell.html. Edit here once and both public
   pages update — no more hand-syncing two files.

   NOT used by dashboard.html: that page is intentionally standalone (it has a
   different token set — e.g. --radius — and app-specific components).
   ============================================================================ */

/* ---- Design tokens: Pokémon-inspired palette + fonts ---- */
:root {
  --ink: #0c1230;          /* deep night blue */
  --ink-soft: #131c42;
  --surface: #182452;
  --surface-line: #2b3a76;
  --paper: #fdf9ee;
  --paper-dim: #cfd3ec;
  --muted: #8f97c4;

  --poke-yellow: #ffcb05;
  --poke-red: #ff5d47;
  --poke-blue: #4aa2ff;

  --energy: linear-gradient(115deg, var(--poke-yellow), var(--poke-red) 50%, var(--poke-blue) 95%);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

/* ---- Base reset ---- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Ambient glow (fixed background wash) ---- */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 203, 5, 0.10), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(255, 93, 71, 0.09), transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(74, 162, 255, 0.10), transparent 46%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--poke-yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; }

/* ---- Header ---- */
.site-header {
  position: relative; z-index: 2;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  padding: 12px 16px; /* 44px tall touch target on mobile */
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav-link:hover { color: var(--poke-yellow); border-color: var(--poke-yellow); }

/* ---- Primary "energy" button (gradient — one of two sanctioned homes) ---- */
.btn-energy {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--energy);
  background-size: 180% 100%;
  cursor: pointer;
  transition: background-position 0.5s ease, transform 0.2s ease;
}
.btn-energy:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-energy:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---- Footer ---- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--surface-line);
  padding: 22px 24px 44px;
  margin-top: 46px;
}
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.social-icons { display: flex; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.icon-btn:hover { color: var(--poke-yellow); border-color: var(--poke-yellow); transform: translateY(-2px); }

/* ---- Reduced motion: kill ambient/decorative animation everywhere ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
