/* ==========================================================================
   WOLFMEDIA — BASE STYLES & DESIGN TOKENS
   Aesthetic: GTA San Andreas meets High-End Creative Agency
   ========================================================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/pricedown');

@font-face {
  font-family: 'Pricedown';
  src: url('../fonts/pricedown.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/4837/pricedown%20bl.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* SKILL.md Specified Palette */
  --color-black: #0A0A0A;
  --color-void: #050505;
  --color-neon-blue: #1E90FF;
  --color-neon-hot: #00CFFF;
  --color-concrete: #1C1C1E;
  --color-street-orange: #FF6A1A;
  --color-chalk: #E8E8E8;
  --color-white: #FFFFFF;
  --color-spray-violet: #7B2FFF;
  --color-gta-yellow: #F9D923;

  /* Fonts */
  --font-display: 'Pricedown', 'Impact', sans-serif;
  --font-nav: 'Rajdhani', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Shadows */
  --glow-neon-sm: 0 0 10px rgba(30, 144, 255, 0.6), 0 0 20px rgba(30, 144, 255, 0.3);
  --glow-neon-md: 0 0 15px rgba(30, 144, 255, 0.8), 0 0 30px rgba(0, 207, 255, 0.4), 0 0 60px rgba(123, 47, 255, 0.2);
  --glow-neon-lg: 0 0 25px rgba(30, 144, 255, 0.9), 0 0 50px rgba(0, 207, 255, 0.6), 0 0 90px rgba(123, 47, 255, 0.4);

  /* Fluid Typography Tokens (clamp) */
  --fluid-h1: clamp(2rem, 5.5vw, 4rem);
  --fluid-h2: clamp(1.65rem, 4.2vw, 3.25rem);
  --fluid-h3: clamp(1.2rem, 2.6vw, 1.85rem);
  --fluid-body: clamp(0.88rem, 1.05vw, 1.05rem);
  --fluid-tag: clamp(0.7rem, 0.9vw, 0.82rem);

  /* Responsive Spacing Tokens */
  --space-mobile: 1rem;
  --space-tablet: 1.5rem;
  --space-desktop: 2rem;
}

/* Reset & Base Elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-body);
  background-color: var(--color-void);
  color: var(--color-chalk);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-void);
  position: relative;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}

/* Touch Action & Target Optimization */
button, a, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* Base Headings with Fluid Clamp */
h1, .text-h1 {
  font-size: var(--fluid-h1);
  line-height: 1.05;
}

h2, .text-h2 {
  font-size: var(--fluid-h2);
  line-height: 1.1;
}

h3, .text-h3 {
  font-size: var(--fluid-h3);
  line-height: 1.2;
}

p, .text-body {
  font-size: var(--fluid-body);
  line-height: 1.6;
}

/* Mobile Breakpoint Specific Adjustments */
@media (max-width: 768px) {
  :root {
    --fluid-h1: clamp(2rem, 7vw, 2.75rem);
    --fluid-h2: clamp(1.5rem, 5.5vw, 2.25rem);
  }

  button, a.nav-action-btn, a.nav-dispatch-btn, .hero-solo-btn, a.gta-btn, [role="button"] {
    min-height: 44px;
  }

  /* Prevent iOS Safari auto-zoom on input focus and ensure touch-friendly input heights */
  input, select, textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  :root {
    --fluid-h1: clamp(1.85rem, 8vw, 2.4rem);
    --fluid-h2: clamp(1.35rem, 6vw, 1.85rem);
  }

  .container-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 360px) {
  :root {
    --fluid-h1: 1.75rem;
    --fluid-h2: 1.3rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-void);
}
::-webkit-scrollbar-thumb {
  background: var(--color-concrete);
  border-radius: 3px;
  border-left: 1px solid var(--color-neon-blue);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon-blue);
  box-shadow: 0 0 10px var(--color-neon-blue);
}

/* Typography Utility Classes */
.font-pricedown {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.font-rajdhani {
  font-family: var(--font-nav);
  letter-spacing: 0.08em;
}

.font-space {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Selection */
::selection {
  background: var(--color-neon-blue);
  color: #000000;
}
