/* ==========================================================================
   Design Tokens - CSS Custom Properties
   ========================================================================== */

:root {
  /* ========================================================================
     Spacing Scale
     ======================================================================== */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */

  /* ========================================================================
     Typography
     ======================================================================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Font sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

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

  /* ========================================================================
     Shadows
     ======================================================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Colored shadows */
  --shadow-pink: 0 4px 16px rgba(236, 72, 153, 0.3);
  --shadow-pink-sm: 0 8px 24px rgba(236, 72, 153, 0.08);
  --shadow-pink-lg: 0 12px 32px rgba(236, 72, 153, 0.12);
  --shadow-sky: 0 4px 16px rgba(14, 165, 233, 0.3);
  --shadow-sky-sm: 0 8px 24px rgba(59, 130, 246, 0.08);
  --shadow-sky-lg: 0 12px 32px rgba(59, 130, 246, 0.12);

  /* ========================================================================
     FastRetro Hard Shadows (offset shadows for neo-brutalist style)
     ======================================================================== */
  --shadow-retro-xs: 2px 2px 0;
  --shadow-retro-sm: 3px 3px 0;
  --shadow-retro: 4px 4px 0;
  --shadow-retro-lg: 6px 6px 0;
  --shadow-retro-xl: 8px 8px 0;

  /* ========================================================================
     Border Radius
     ======================================================================== */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-3xl: 2rem;     /* 32px */
  --radius-full: 9999px;

  /* FastRetro Radius - slightly larger for playful feel */
  --radius-retro-sm: 0.625rem;  /* 10px */
  --radius-retro: 0.875rem;     /* 14px */
  --radius-retro-lg: 1.125rem;  /* 18px */
  --radius-retro-xl: 1.5rem;    /* 24px */

  /* ========================================================================
     Z-Index Scale
     ======================================================================== */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ========================================================================
     Transitions
     ======================================================================== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Specific transitions */
  --transition-colors: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  --transition-transform: transform 200ms ease;
  --transition-shadow: box-shadow 200ms ease;
  --transition-all: all 200ms ease;

  /* ========================================================================
     Breakpoints (for reference - use in media queries)
     ======================================================================== */
  /* 
   * --breakpoint-sm: 640px;
   * --breakpoint-md: 768px;
   * --breakpoint-lg: 1024px;
   * --breakpoint-xl: 1280px;
   * --breakpoint-2xl: 1536px;
   */

  /* ========================================================================
     Container Widths
     ======================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-prose: 65ch;

  /* ========================================================================
     Border Widths
     ======================================================================== */
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-3: 3px;
  --border-width-4: 4px;

  /* FastRetro Border Widths */
  --border-retro: 2.5px;
  --border-retro-thick: 3px;

  /* ========================================================================
     Opacity
     ======================================================================== */
  --opacity-0: 0;
  --opacity-25: 0.25;
  --opacity-50: 0.5;
  --opacity-75: 0.75;
  --opacity-100: 1;
}
