/* ============================================================
   main.css — Design Tokens · Reset · Base
   New Future Games B.V.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:           #0e0b1a;
  --color-surface:      #16122a;
  --color-surface-2:    #1e1840;
  --color-surface-3:    #261f52;
  --color-border:       rgba(124, 58, 237, 0.18);
  --color-border-solid: #2d2860;

  --color-accent:       #7c3aed;
  --color-accent-hover: #6d28d9;
  --color-accent-light: #a78bfa;
  --color-accent-glow:  rgba(124, 58, 237, 0.35);

  --color-cta:          #7c3aed;
  --color-cta-hover:    #6d28d9;
  --color-register:     #4ade80;
  --color-register-hover: #22c55e;

  --color-text:         #e8e0ff;
  --color-text-muted:   #9d8eff;
  --color-text-soft:    #c4b5fd;
  --color-text-dim:     #6b5fa6;

  --color-badge-18:     #dc2626;
  --color-badge-18-bg:  rgba(220, 38, 38, 0.15);
  --color-success:      #4ade80;
  --color-warning:      #f59e0b;
  --color-error:        #ef4444;

  --color-gold:         #c9a227;
  --color-gold-light:   #f0d070;

  --color-topbar-bg:    #0a0715;
  --color-header-bg:    rgba(14, 11, 26, 0.96);
  --color-footer-bg:    #080612;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --text-xs:   clamp(0.7rem,  1.5vw, 0.75rem);
  --text-sm:   clamp(0.8rem,  1.8vw, 0.875rem);
  --text-base: clamp(0.9rem,  2vw,   1rem);
  --text-lg:   clamp(1rem,    2.2vw, 1.125rem);
  --text-xl:   clamp(1.1rem,  2.5vw, 1.25rem);
  --text-2xl:  clamp(1.3rem,  3vw,   1.5rem);
  --text-3xl:  clamp(1.6rem,  4vw,   1.875rem);
  --text-4xl:  clamp(2rem,    5vw,   2.25rem);
  --text-5xl:  clamp(2.5rem,  6vw,   3rem);
  --text-hero: clamp(2.5rem,  6vw,   4rem);

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semi:   600;
  --font-weight-bold:   700;
  --font-weight-black:  900;

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.6);
  --shadow-accent: 0 0 20px var(--color-accent-glow);
  --shadow-card:   0 4px 24px rgba(0,0,0,.6), 0 0 0 1px var(--color-border);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --header-h:      64px;
  --topbar-h:      36px;
  --header-total:  calc(var(--header-h) + var(--topbar-h));
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(80% 50% at 50% -8%, rgba(124,58,237,.10) 0%, transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(173,20,87,.06) 0%, transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-text); }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--color-text-soft); line-height: var(--leading-loose); }

strong { font-weight: var(--font-weight-semi); color: var(--color-text); }
em { font-style: italic; }

table {
  border-collapse: collapse;
  width: 100%;
}

/* ── BASE UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-accent-light); }
.text-gold    { color: var(--color-gold); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

.hidden   { display: none !important; }
.visible  { display: block !important; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-hover); }

/* ── SELECTION ─────────────────────────────────────────── */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ── FOCUS STYLES ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── SECTION SPACING ───────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-sm {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-header--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── DIVIDERS ──────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

/* ── BADGE 18+ ─────────────────────────────────────────── */
@keyframes badge18Flip {
  0%, 60%  { transform: perspective(300px) rotateY(0deg); }
  100%     { transform: perspective(300px) rotateY(360deg); }
}
@keyframes badge18Glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  45%, 55% { box-shadow: 0 0 0 5px rgba(220,38,38,.2), 0 0 16px rgba(220,38,38,.45); }
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-badge-18);
  background: var(--color-badge-18-bg);
  color: var(--color-badge-18);
  font-size: 10px;
  font-weight: var(--font-weight-black);
  font-family: var(--font-sans);
  line-height: 1;
  flex-shrink: 0;
  animation: badge18Flip 5s cubic-bezier(.645,.045,.355,1) infinite,
             badge18Glow 5s ease-in-out infinite;
}

.badge-18--lg {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

/* ── KSA VERGUNNING BADGE ──────────────────────────────── */
.ksa-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.ksa-badge:hover { color: var(--color-text); }

.ksa-badge__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── RG SLOGAN ─────────────────────────────────────────── */
.rg-slogan {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.rg-slogan strong {
  color: var(--color-text-soft);
  font-style: normal;
}
