/**
 * Quantum Reality Codes - Base Styles
 * Reset, Typography, and Core Element Styling
 */

@import url('./quantum-variables.css');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   CSS RESET
   ═══════════════════════════════════════════════════════════════════════ */

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

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

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

/* ═══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

h1 {
  font-size: var(--text-5xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--text-glow-cyan);
}

h2 {
  font-size: var(--text-3xl);
  color: var(--neon-cyan);
}

h3 {
  font-size: var(--text-2xl);
  color: var(--neon-gold);
}

h4 {
  font-size: var(--text-xl);
  color: var(--text-primary);
}

h5 {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

h6 {
  font-size: var(--text-base);
  color: var(--text-muted);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--neon-magenta);
  text-shadow: var(--text-glow-cyan);
}

strong, b {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════════════════════════════ */

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMAGES & MEDIA
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════════════════ */

::selection {
  background: rgba(0, 245, 255, 0.3);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg-darker);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOCUS STATES
   ═══════════════════════════════════════════════════════════════════════ */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   QUANTUM GRADIENT TEXT
   ═══════════════════════════════════════════════════════════════════════ */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════
   GLOW TEXT
   ═══════════════════════════════════════════════════════════════════════ */

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

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

.glow-text-gold {
  color: var(--neon-gold);
  text-shadow: var(--text-glow-gold);
}

/* ═══════════════════════════════════════════════════════════════════════
   VISUALLY HIDDEN (for accessibility)
   ═══════════════════════════════════════════════════════════════════════ */

.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;
}
