/* =========================================================
   Beat the Spin — Shared Website Stylesheet
   =========================================================
   Used by all pages in backend/public/.
   Page-specific overrides live in each page's <style> block.
   Nav styles are in nav.css.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg: #06060a;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --bg-elevated: rgba(255, 255, 255, 0.08);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #ebebf0;
  --text-secondary: #7c7c8a;
  --text-muted: #4a4a55;

  /* Accent — mint green */
  --accent: #00e68a;
  --accent-hover: #00ffaa;
  --accent-dim: rgba(0, 230, 138, 0.10);
  --accent-border: rgba(0, 230, 138, 0.20);
  --accent-glow: rgba(0, 230, 138, 0.30);

  /* Gold — stats, prices, emphasis */
  --gold: #ffbe2e;
  --gold-dim: rgba(255, 190, 46, 0.10);

  /* Utility */
  --success: #00e68a;
  --warning: #ffbe2e;
  --discord: #5865F2;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

/* ---------------------------------------------------------
   Universal Reset
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------
   Base / Body
   --------------------------------------------------------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle film-grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 512px 512px;
}

/* ---------------------------------------------------------
   Typography — headings get display font
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   Layout — .container
   Pages with narrower content override max-width inline:
     account.html   → 560px
     terms/privacy  → 800px
     help.html      → 1080px
   --------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------
   Button system
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Primary — solid accent */
.btn-primary {
  background: var(--accent);
  color: #06060a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--accent-glow);
}

/* Secondary — ghost / outline */
.btn-secondary {
  background: var(--bg-surface-hover);
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ---------------------------------------------------------
   Site Footer — shared across non-index pages
   (index.html has its own elaborate footer)
   --------------------------------------------------------- */
.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Eyebrow badge — section label pills
   --------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
  font-family: var(--font-body);
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
