/* ============================================================
   GameNova Frontend — base.css
   CSS Variables, Reset, Typography
   Dark Gaming Theme
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Custom Properties ── */
:root {

  /* ── Brand / Neon Colors ── */
  --neon-purple:          #7c3aed;
  --neon-purple-bright:   #9d5cff;
  --neon-purple-glow:     rgba(124, 58, 237, 0.35);
  --neon-purple-soft:     rgba(124, 58, 237, 0.12);

  --neon-cyan:            #00e5ff;
  --neon-cyan-glow:       rgba(0, 229, 255, 0.30);
  --neon-cyan-soft:       rgba(0, 229, 255, 0.10);

  --neon-green:           #00ff88;
  --neon-green-glow:      rgba(0, 255, 136, 0.25);
  --neon-green-soft:      rgba(0, 255, 136, 0.10);

  --neon-pink:            #ff2d78;
  --neon-pink-glow:       rgba(255, 45, 120, 0.30);
  --neon-pink-soft:       rgba(255, 45, 120, 0.10);

  --neon-yellow:          #ffd600;
  --neon-yellow-soft:     rgba(255, 214, 0, 0.12);

  /* ── Backgrounds ── */
  --bg-page:              #07070f;
  --bg-secondary:         #0d0d1a;
  --bg-card:              #111122;
  --bg-card-hover:        #181830;
  --bg-card-border:       rgba(255, 255, 255, 0.06);
  --bg-overlay:           rgba(7, 7, 15, 0.85);
  --bg-glass:             rgba(255, 255, 255, 0.03);
  --bg-input:             rgba(255, 255, 255, 0.05);
  --bg-input-focus:       rgba(255, 255, 255, 0.08);
  --bg-navbar:            rgba(7, 7, 15, 0.92);
  --bg-footer:            #080810;

  /* ── Text Colors ── */
  --text-primary:         #f0f0ff;
  --text-secondary:       #9090b8;
  --text-muted:           #5a5a7a;
  --text-white:           #ffffff;
  --text-disabled:        #3a3a5a;

  /* ── Status Colors ── */
  --color-success:        #00ff88;
  --color-danger:         #ff2d78;
  --color-warning:        #ffd600;
  --color-info:           #00e5ff;

  /* ── Borders ── */
  --border-color:         rgba(255, 255, 255, 0.07);
  --border-hover:         rgba(255, 255, 255, 0.15);
  --border-active:        var(--neon-purple);
  --border-radius-sm:     6px;
  --border-radius:        10px;
  --border-radius-lg:     16px;
  --border-radius-xl:     22px;
  --border-radius-full:   9999px;

  /* ── Shadows / Glows ── */
  --shadow-sm:            0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:            0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:            0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-card:          0 2px 16px rgba(0, 0, 0, 0.5);
  --glow-purple:          0 0 20px var(--neon-purple-glow), 0 0 40px rgba(124, 58, 237, 0.15);
  --glow-cyan:            0 0 20px var(--neon-cyan-glow);
  --glow-green:           0 0 16px var(--neon-green-glow);
  --glow-pink:            0 0 20px var(--neon-pink-glow);
  --glow-card-hover:      0 8px 32px rgba(124, 58, 237, 0.20), 0 0 0 1px rgba(124, 58, 237, 0.25);

  /* ── Typography ── */
  --font-display:         'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body:            'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:            'JetBrains Mono', 'Fira Code', monospace;

  --font-size-xs:         11px;
  --font-size-sm:         13px;
  --font-size-base:       15px;
  --font-size-md:         16px;
  --font-size-lg:         18px;
  --font-size-xl:         22px;
  --font-size-2xl:        28px;
  --font-size-3xl:        36px;
  --font-size-4xl:        48px;
  --font-size-5xl:        64px;

  --line-height:          1.6;
  --line-height-tight:    1.2;
  --line-height-display:  1.1;

  /* ── Layout ── */
  --navbar-height:        64px;
  --section-gap:          3rem;
  --page-pad:             clamp(1rem, 2.5vw, 5rem);

  /* ── Transitions ── */
  --transition-fast:      0.15s ease;
  --transition-base:      0.25s ease;
  --transition-slow:      0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce:    0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index Stack ── */
  --z-base:       1;
  --z-card:       10;
  --z-dropdown:   100;
  --z-navbar:     200;
  --z-modal:      300;
  --z-toast:      400;
}

/* ── CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family:              var(--font-body);
  font-size:                var(--font-size-base);
  line-height:              var(--line-height);
  color:                    var(--text-primary);
  background-color:         var(--bg-page);
  -webkit-font-smoothing:   antialiased;
  -moz-osx-font-smoothing:  grayscale;
  min-height:               100vh;
  overflow-x:               hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.4);
  border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* ── Selection ── */
::selection {
  background-color: var(--neon-purple-soft);
  color: var(--neon-purple-bright);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-display);
  font-weight:  700;
  line-height:  var(--line-height-display);
  color:        var(--text-white);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl);  }
h5 { font-size: var(--font-size-lg);  }
h6 { font-size: var(--font-size-md);  }

p {
  color:       var(--text-secondary);
  line-height: var(--line-height);
}

a {
  color:           var(--neon-cyan);
  text-decoration: none;
  transition:      color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
}

strong, b {
  font-weight: 600;
  color: var(--text-white);
}

small {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor:      pointer;
  font-family: var(--font-body);
  border:      none;
  background:  none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size:   var(--font-size-base);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* ── Focus (Accessibility) ── */
:focus-visible {
  outline:        2px solid var(--neon-purple);
  outline-offset: 3px;
  border-radius:  var(--border-radius-sm);
}