/* ============================================================
   GAMEVAULT — Global Stylesheet
   Aesthetic: Dark arcade cabinet meets editorial magazine.
   Font pairing: "Bebas Neue" (display) + "DM Sans" (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:         #0d0d0f;
  --clr-surface:    #16161a;
  --clr-surface-2:  #1e1e24;
  --clr-border:     #2a2a35;
  --clr-accent:     #00e5ff;      /* electric cyan — the signature color */
  --clr-accent-2:   #ff3d6b;      /* hot coral — for badges, alerts */
  --clr-accent-3:   #ffe03d;      /* arcade yellow — for highlights */
  --clr-text:       #f0f0f5;
  --clr-text-muted: #7a7a8c;
  --clr-text-dim:   #3d3d52;

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing scale */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Layout */
  --max-width:        1280px;
  --nav-height:       64px;
  --border-radius:    6px;
  --border-radius-lg: 12px;

  /* Effects */
  --glow-cyan:  0 0 20px rgba(0, 229, 255, 0.25);
  --glow-coral: 0 0 20px rgba(255, 61, 107, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --transition:  150ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;

  /* Subtle noise texture overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }

p { max-width: 65ch; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-3xl);
}

.section--sm {
  padding-block: var(--space-xl);
}

/* ── Scanline effect (decorative, non-intrusive) ───────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius);
  transition: var(--transition);
  transition-property: background, color, box-shadow, transform;
  min-height: 50px; /* Touch-friendly */
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
}

.btn--secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.btn--danger {
  background: var(--clr-accent-2);
  color: #fff;
  box-shadow: var(--glow-coral);
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  background: var(--clr-accent-2);
  color: #fff;
}

.badge--new    { background: var(--clr-accent-3); color: #000; }
.badge--hot    { background: var(--clr-accent-2); color: #fff; }
.badge--coming { background: var(--clr-surface-2); color: var(--clr-text-muted); border: 1px solid var(--clr-border); }

/* ── Section headings ──────────────────────────────────────── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--clr-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* ── Ad placeholder ────────────────────────────────────────── */
.ad-placeholder {
  background: var(--clr-surface-2);
  border: 1px dashed var(--clr-border);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
}

.ad-banner { width: 100%; height: 90px; }
.ad-rect   { width: 300px; height: 250px; }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin-block: var(--space-xl);
}

/* ── Glow line accent ──────────────────────────────────────── */
.glow-line {
  width: 60px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 2px;
  box-shadow: var(--glow-cyan);
  margin-bottom: var(--space-md);
}

/* ── Page fade-in animation ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track  { background: var(--clr-bg); }
::-webkit-scrollbar-thumb  { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* ── Focus ring ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Responsive helpers ────────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .container { padding-inline: var(--space-md); }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}