/* =====================================================
   STORM GAMES COLLECTION - DESIGN SYSTEM
   Ultra-modern gaming website design foundation
   ===================================================== */

:root {
  /* ===== COLOR PALETTE ===== */
  /* Primary Neon Colors */
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff00ff;
  --neon-purple: #b026ff;
  --neon-blue: #0066ff;
  --neon-pink: #ff0080;
  --neon-green: #00ff88;
  --neon-yellow: #ffff00;

  /* Dark Theme Base */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-elevated: #222232;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --text-tertiary: #8888a8;
  --text-muted: #5a5a7a;

  /* Accent Colors */
  --accent-primary: var(--neon-cyan);
  --accent-secondary: var(--neon-magenta);
  --accent-success: var(--neon-green);
  --accent-warning: var(--neon-yellow);
  --accent-error: #ff3366;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--neon-magenta) 0%, var(--neon-blue) 100%);
  --gradient-accent: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-yellow) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);

  /* ===== SPACING - COMPACT ===== */
  --space-xs: 0.125rem;
  /* 2px */
  --space-sm: 0.25rem;
  /* 4px */
  --space-md: 0.5rem;
  /* 8px */
  --space-lg: 0.75rem;
  /* 12px */
  --space-xl: 1rem;
  /* 16px */
  --space-2xl: 1.5rem;
  /* 24px */
  --space-3xl: 2rem;
  /* 32px */

  /* ===== TYPOGRAPHY ===== */
  --font-primary: 'Century Gothic', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Century Gothic', 'Segoe UI', sans-serif;
  --font-mono: 'Consolas', 'Fira Code', monospace;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 2rem;
  /* 32px */
  --font-size-4xl: 2.5rem;
  /* 40px */
  --font-size-5xl: 3rem;
  /* 48px */

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

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ===== BORDERS & RADIUS ===== */
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 3px;

  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.3);

  --shadow-neon-cyan: 0 0 20px rgba(0, 243, 255, 0.5);
  --shadow-neon-magenta: 0 0 20px rgba(255, 0, 255, 0.5);
  --shadow-neon-purple: 0 0 20px rgba(176, 38, 255, 0.5);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===== Z-INDEX LAYERS ===== */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;

  /* ===== LAYOUT - COMPACT ===== */
  --header-height: 60px;
  --sidebar-width: 25%;
  --content-width: 75%;
  --max-content-width: 1920px;

  /* ===== BREAKPOINTS (for reference in JS) ===== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* =====================================================
   GLOBAL RESET & BASE STYLES
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-bg);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border);
}

/* Selection */
::selection {
  background: var(--neon-cyan);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--neon-cyan);
  color: var(--bg-primary);
}

/* =====================================================
   TYPOGRAPHY UTILITIES
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--accent-secondary);
}

/* =====================================================
   GLASSMORPHISM UTILITIES
   ===================================================== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-width-thin) solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: var(--border-width-thin) solid rgba(255, 255, 255, 0.15);
}

/* =====================================================
   NEON GLOW UTILITIES
   ===================================================== */

.neon-text {
  text-shadow:
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor;
}

.neon-glow-cyan {
  box-shadow: var(--shadow-neon-cyan);
}

.neon-glow-magenta {
  box-shadow: var(--shadow-neon-magenta);
}

.neon-glow-purple {
  box-shadow: var(--shadow-neon-purple);
}

/* =====================================================
   ANIMATION UTILITIES
   ===================================================== */

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }

  50% {
    opacity: 0.8;
    filter: brightness(1.2);
  }
}

@keyframes color-shift {
  0% {
    color: var(--neon-cyan);
  }

  25% {
    color: var(--neon-magenta);
  }

  50% {
    color: var(--neon-purple);
  }

  75% {
    color: var(--neon-pink);
  }

  100% {
    color: var(--neon-cyan);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =====================================================
   BUTTON BASE STYLES
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
}

.btn-secondary {
  background: var(--glass-bg);
  border: var(--border-width-medium) solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* =====================================================
   INPUT BASE STYLES
   ===================================================== */

.input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--glass-bg);
  border: var(--border-width-thin) solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.1);
}

.input::placeholder {
  color: var(--text-muted);
}

/* =====================================================
   CARD BASE STYLES
   ===================================================== */

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: var(--border-width-thin) solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent-primary);
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 100%;
    --content-width: 100%;
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }

  html {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
}