/**
 * BigCat Codeworks Design Tokens
 * CSS Custom Properties for consistent theming
 * 
 * Import order: _tokens.css → base.css → layout.css → components → utilities.css
 */

/* ===== FONT FACE DECLARATIONS ===== */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM_Plex_mono/IBMPlexMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/Orbitron/Orbitron-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/assets/fonts/Rajdhani/static/Rajdhani-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/assets/fonts/Rajdhani/static/Rajdhani-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/assets/fonts/Rajdhani/static/Rajdhani-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/assets/fonts/Rajdhani/static/Rajdhani-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Share Tech Mono';
  src: url('/assets/fonts/Share_Tech_Mono/static/ShareTechMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== ROOT VARIABLES ===== */
:root {
  /* ===== COLOR PALETTE ===== */
  --color-primary: #FF00FF;
  --color-primary-rgb: 255, 0, 255;
  --color-primary-light: #FF66FF;
  --color-primary-dark: #CC00CC;
  
  --color-secondary: #1E90FF;
  --color-secondary-light: #4DA6FF;
  --color-secondary-dark: #0066CC;
  
  --color-tertiary: #00CED1;
  --color-tertiary-light: #33D8DB;
  --color-tertiary-dark: #00A3A6;
  
  --color-cyber-green: #00FF66;
  --color-cyber-green-light: #33FF99;
  --color-cyber-green-dark: #00CC52;
  
  --color-warning-orange: #FF9900;
  --color-warning-orange-light: #FFB333;
  --color-warning-orange-dark: #CC7A00;
  
  --color-infrared-red: #FF0033;
  --color-infrared-red-light: #FF3366;
  --color-infrared-red-dark: #CC0029;
  
  --color-success: #00FF66;
  --color-success-rgb: 0, 255, 102;
  --color-success-light: #33FF99;
  --color-success-dark: #00CC52;

  --color-error: #FF3366;
  --color-error-rgb: 255, 51, 102;
  --color-error-light: #FF6699;
  --color-error-dark: #CC1A4D;
  --color-info: #00BFFF;
  --color-cyber-cyan: #00CED1;
  --color-cyber-cyan-rgb: 0, 206, 209;
  --color-cyber-cyan-light: #40E0E0;
  --color-cyber-cyan-dark: #00B0B3;
  --color-cyber-green: #00FF66;
  --color-cyber-green-rgb: 0, 255, 102;
  --color-cyber-green-light: #33FF99;
  --color-cyber-green-dark: #00CC52;
  --color-warning-orange: #FF9900;
  --color-warning-orange-rgb: 255, 153, 0;
  --color-warning-orange-light: #FFB333;
  --color-warning-orange-dark: #CC7A00;
  --color-accent: #00FFFF;
  --color-accent-rgb: 0, 255, 255;
  --color-error-red: #FF4444;
  --color-error-red-light: #FF6666;
  
  /* ===== BACKGROUND COLORS ===== */
  --color-bg-primary: #000000;
  --color-bg-secondary: #0A0A0A;
  --color-bg-tertiary: #1A1A1A;
  --color-bg-quaternary: #2A2A2A;
  
  /* ===== TEXT COLORS ===== */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #CCCCCC;
  --color-text-muted: #999999;
  --color-text-inverse: #000000;
  
  /* ===== TYPOGRAPHY ===== */
  --font-hero: 'Orbitron', monospace;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;
  --font-terminal: 'Share Tech Mono', monospace;
  
  /* ===== FONT SIZES ===== */
  --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: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  
  /* ===== FONT WEIGHTS ===== */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* ===== LINE HEIGHTS ===== */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* ===== SPACING ===== */
  --spacing-0: 0;
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-7: 1.75rem;   /* 28px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-9: 2.25rem;   /* 36px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-11: 2.75rem;  /* 44px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-13: 3.25rem;  /* 52px */
  --spacing-14: 3.5rem;   /* 56px */
  --spacing-15: 3.75rem;  /* 60px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-17: 4.25rem;  /* 68px */
  --spacing-18: 4.5rem;   /* 72px */
  --spacing-19: 4.75rem;  /* 76px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-21: 5.25rem;  /* 84px */
  --spacing-22: 5.5rem;   /* 88px */
  --spacing-23: 5.75rem;  /* 92px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */
  
  /* ===== LAYOUT ===== */
  --header-height: 0px;  /* Will be set dynamically by JavaScript */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  --grid-gutter: 1.5rem;  /* 24px */
  
  /* ===== BORDER RADIUS ===== */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-3xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* ===== BUTTON SPECIFIC TOKENS ===== */
  --border-radius-md: var(--radius-md);
  --font-family-mono: var(--font-terminal);
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* ===== ANIMATIONS ===== */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-cyber-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* ===== Z-INDEX ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* ===== BREAKPOINTS ===== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ===== DARK THEME OVERRIDES ===== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme is already the default, so no overrides needed */
  }
}

/* ===== ACCESSIBILITY OVERRIDES ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-75: 0ms;
    --duration-100: 0ms;
    --duration-150: 0ms;
    --duration-200: 0ms;
    --duration-300: 0ms;
    --duration-500: 0ms;
    --duration-700: 0ms;
    --duration-1000: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
  }
}

/* ===== HIGH CONTRAST OVERRIDES ===== */
@media (prefers-contrast: high) {
  :root {
    --color-text-muted: #FFFFFF;
    --color-bg-tertiary: #000000;
    --color-bg-quaternary: #000000;
  }
}
