/* ==========================================================================
   HoverForge Design Tokens
   Centralized design system variables for consistent styling
   ========================================================================== */

:root {
  /* ==========================================================================
     COLORS
     ========================================================================== */

  /* Primary Brand Colors - Industrial Blue */
  --hf-color-primary: #3B82F6;
  --hf-color-primary-light: #60A5FA;
  --hf-color-primary-dark: #2563EB;

  /* Accent Colors - Cyan Tech */
  --hf-color-accent: #06B6D4;
  --hf-color-accent-light: #22D3EE;
  --hf-color-accent-dark: #0891B2;

  /* Dark Theme Colors */
  --hf-color-dark: #0F172A;
  --hf-color-dark-light: #1E293B;
  --hf-color-dark-muted: #334155;

  /* Text Colors */
  --hf-color-text: #111827;
  --hf-color-text-light: #374151;
  --hf-color-text-muted: #6B7280;
  --hf-color-muted: #F1F5F9;
  --hf-color-muted-dark: #E2E8F0;
  --hf-color-white: #FFFFFF;

  /* Slate Color System */
  --hf-color-slate-50: #F8FAFC;
  --hf-color-slate-100: #F1F5F9;
  --hf-color-slate-200: #E2E8F0;
  --hf-color-slate-300: #CBD5E1;
  --hf-color-slate-400: #94A3B8;
  --hf-color-slate-500: #64748B;
  --hf-color-slate-600: #475569;
  --hf-color-slate-700: #334155;
  --hf-color-slate-800: #1E293B;
  --hf-color-slate-900: #0F172A;

  /* Border Colors */
  --hf-color-border: #E2E8F0;
  --hf-color-border-muted: #F1F5F9;

  /* Status Colors */
  --hf-color-danger: #DC2626;
  --hf-color-danger-light: #FEE2E2;
  --hf-color-warning: #F59E0B;
  --hf-color-warning-light: #FEF3C7;
  --hf-color-success: #059669;
  --hf-color-success-light: #D1FAE5;
  --hf-color-info: #0EA5E9;
  --hf-color-info-light: #E0F2FE;

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

  /* Font Families */
  --hf-font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hf-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hf-font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

  /* Font Sizes */
  --hf-text-xs: 0.75rem;    /* 12px */
  --hf-text-sm: 0.875rem;   /* 14px */
  --hf-text-base: 1.0625rem; /* 17px - optimized for readability */
  --hf-text-lg: 1.25rem;    /* 20px */
  --hf-text-xl: 1.5rem;     /* 24px */
  --hf-text-2xl: 2rem;      /* 32px */
  --hf-text-3xl: 2.5rem;    /* 40px */
  --hf-text-4xl: 3rem;      /* 48px */

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

  /* Line Heights */
  --hf-leading-tight: 1.25;
  --hf-leading-normal: 1.5;
  --hf-leading-relaxed: 1.65; /* optimized for long-form content */
  --hf-leading-loose: 2;

  /* Letter Spacing */
  --hf-tracking-tight: -0.025em;
  --hf-tracking-normal: 0;
  --hf-tracking-wide: 0.025em;

  /* Measure (optimal reading width) */
  --hf-measure-narrow: 45ch;
  --hf-measure-normal: 68ch;
  --hf-measure-wide: 76ch;

  /* ==========================================================================
     SPACING
     ========================================================================== */

  --hf-space-1: 0.25rem;  /* 4px */
  --hf-space-2: 0.5rem;   /* 8px */
  --hf-space-3: 0.75rem;  /* 12px */
  --hf-space-4: 1rem;     /* 16px */
  --hf-space-5: 1.25rem;  /* 20px */
  --hf-space-6: 1.5rem;   /* 24px */
  --hf-space-8: 2rem;     /* 32px */
  --hf-space-10: 2.5rem;  /* 40px */
  --hf-space-12: 3rem;    /* 48px */
  --hf-space-16: 4rem;    /* 64px */
  --hf-space-20: 5rem;    /* 80px */
  --hf-space-24: 6rem;    /* 96px */

  /* ==========================================================================
     LAYOUT
     ========================================================================== */

  /* Container Widths */
  --hf-container-sm: 640px;
  --hf-container-md: 768px;
  --hf-container-lg: 1024px;
  --hf-container-xl: 1280px;
  --hf-container-2xl: 1400px;

  /* Header Height */
  --hf-header-height: 64px;

  /* ==========================================================================
     BORDERS & RADIUS
     ========================================================================== */

  --hf-border-width: 1px;
  --hf-border-width-2: 2px;
  --hf-border-width-4: 4px;

  --hf-radius-sm: 4px;
  --hf-radius: 8px;
  --hf-radius-md: 12px;  /* primary radius for cards */
  --hf-radius-lg: 16px;
  --hf-radius-xl: 24px;
  --hf-radius-full: 9999px;

  /* ==========================================================================
     SHADOWS
     ========================================================================== */

  /* Ultra-subtle shadows for drone industry professional look */
  --hf-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --hf-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px -1px rgba(15, 23, 42, 0.1);
  --hf-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --hf-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --hf-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

  /* Focus shadows */
  --hf-shadow-focus: 0 0 0 3px rgba(30, 136, 229, 0.1);
  --hf-shadow-focus-danger: 0 0 0 3px rgba(220, 38, 38, 0.1);

  /* ==========================================================================
     MOTION
     ========================================================================== */

  /* Transition Durations */
  --hf-duration-fast: 100ms;
  --hf-duration-normal: 150ms;
  --hf-duration-slow: 300ms;

  /* Easing Functions */
  --hf-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --hf-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --hf-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ==========================================================================
     Z-INDEX SCALE
     ========================================================================== */

  --hf-z-dropdown: 1000;
  --hf-z-sticky: 1020;
  --hf-z-header: 1030;
  --hf-z-fixed: 1040;
  --hf-z-modal-backdrop: 1050;
  --hf-z-modal: 1060;
  --hf-z-popover: 1070;
  --hf-z-tooltip: 1080;
  --hf-z-toast: 1080;

  /* ==========================================================================
     BREAKPOINTS (for reference in custom properties)
     ========================================================================== */

  --hf-bp-sm: 640px;
  --hf-bp-md: 768px;
  --hf-bp-lg: 1024px;
  --hf-bp-xl: 1280px;
  --hf-bp-2xl: 1536px;
}

/* ==========================================================================
   REDUCED MOTION PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --hf-duration-fast: 0ms;
    --hf-duration-normal: 0ms;
    --hf-duration-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  :root {
    --hf-color-text: #000000;
    --hf-color-primary: #000000;
    --hf-color-accent: #000000;
  }
}