/**
 * VOLTAGE BRIGHT - Unified Font System
 * Centralized typography for all website versions
 */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties - Font Stacks */
:root {
  /* Primary Display Fonts */
  --font-display: 'Orbitron', 'SF Pro Display', system-ui, sans-serif;
  --font-display-alt: 'Bebas Neue', 'Orbitron', sans-serif;

  /* Body & UI Fonts */
  --font-sans: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', 'Inter', sans-serif;
  --font-secondary: 'Rajdhani', 'Space Grotesk', sans-serif;

  /* Arabic Fonts */
  --font-arabic: 'Tajawal', 'SF Arabic', 'Geeza Pro', sans-serif;
  --font-arabic-display: 'Tajawal', sans-serif;

  /* Specialty Fonts */
  --font-tech: 'Space Grotesk', 'Rajdhani', monospace;
  --font-heading: 'Montserrat', 'Inter', sans-serif;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Font Sizes - Desktop */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;
  --font-size-8xl: 6rem;
  --font-size-9xl: 8rem;

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  --letter-spacing-display: 0.2em;
}

/* RTL Support */
[dir="rtl"] {
  --font-body: var(--font-arabic);
  --font-sans: var(--font-arabic);
  --font-display: var(--font-arabic-display);
}

/* Base Typography Styles */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
}

h1 { font-size: var(--font-size-5xl); letter-spacing: var(--letter-spacing-wider); }
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); }

.text-display {
  font-family: var(--font-display);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-display);
  text-transform: uppercase;
}

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 8rem);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-none);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.section-kicker {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
}

.text-body { font-family: var(--font-body); font-size: var(--font-size-base); line-height: var(--line-height-relaxed); }
.text-body-lg { font-size: var(--font-size-lg); }
.text-body-sm { font-size: var(--font-size-sm); }

.text-button {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.text-nav {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
}

.text-caption {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

/* Arabic Typography */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .text-display, [dir="rtl"] .text-hero {
  font-family: var(--font-arabic-display);
  letter-spacing: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3rem;
    --font-size-7xl: 3.5rem;
    --font-size-8xl: 4rem;
  }
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-6xl: 2.5rem;
  }
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
}
