/* Shared tokens and components for the site and the admin. */

:root {
  --bg: #0a1224;
  --bg-2: #0f1a33;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef2ff;
  --muted: #9ba8c6;
  --faint: #6b7896;
  --sky: #a6d8ff;
  --delft: #4f7dff;
  --gold: #f6bd52;
  --gold-2: #ffd88a;
  --coral: #ff7f95;
  --green: #4fd1a1;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.15; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #e89b2c);
  color: #241503;
  box-shadow: 0 10px 30px -10px rgba(246, 189, 82, 0.7);
}
.btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(246, 189, 82, 0.9); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); }

.btn-danger { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); color: #ffb3b3; }
.btn-danger:hover { background: rgba(255, 107, 107, 0.2); }

.badge {
  display: inline-flex; align-items: center;
  margin-left: 8px; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); vertical-align: middle;
}
.badge.hot { background: rgba(255, 127, 149, 0.16); color: var(--coral); }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: #1b2747; border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-weight: 600; font-size: 14px; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { border-color: rgba(79, 209, 161, .5); }
.toast.bad { border-color: rgba(255, 107, 107, .6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
