/**
 * Design System Tokens
 * Vector Similarity Explorer
 *
 * Central repository for all design tokens used throughout the application.
 * Organized by category for easy maintenance and theming.
 */

:root {
  /* ============================================
     TYPOGRAPHY SCALE (1.25 modular ratio)
     ============================================ */
  --text-xs: 0.64rem;     /* 10.24px - micro labels, badges */
  --text-sm: 0.8rem;      /* 12.8px - captions, metadata */
  --text-base: 1rem;      /* 16px - body text */
  --text-lg: 1.25rem;     /* 20px - section headers */
  --text-xl: 1.563rem;    /* 25px - panel titles */
  --text-2xl: 1.953rem;   /* 31.25px - hero text */

  /* Font Weight System */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.01em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.08em;

  /* ============================================
     SPACING RHYTHM (8px base unit)
     ============================================ */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */

  /* ============================================
     COLOR PALETTE
     ============================================ */

  /* Background Colors */
  --bg-primary: #0a0e27;
  --bg-panel: rgba(9, 13, 32, 0.86);
  --bg-panel-left: rgba(9, 13, 32, 0.82);
  --bg-card: rgba(15, 20, 35, 0.92);
  --bg-card-hover: rgba(20, 25, 45, 0.95);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-input-hover: rgba(255, 255, 255, 0.06);

  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.24);

  /* Text Colors */
  --text-primary: #e8eaed;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-tertiary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.35);
  --text-disabled: rgba(255, 255, 255, 0.25);

  /* Accent Colors - Semantic */
  --accent-primary: #4ade80;           /* Success, high similarity */
  --accent-primary-hover: #5eea94;
  --accent-primary-muted: rgba(74, 222, 128, 0.15);
  --accent-primary-border: rgba(74, 222, 128, 0.3);

  --accent-warning: #fbbf24;           /* Warning, medium similarity */
  --accent-warning-muted: rgba(251, 191, 36, 0.1);
  --accent-warning-border: rgba(251, 191, 36, 0.3);

  --accent-danger: #f87171;            /* Error, low similarity */
  --accent-danger-muted: rgba(248, 113, 113, 0.1);
  --accent-danger-border: rgba(248, 113, 113, 0.3);

  --accent-info: #60a5fa;              /* Info, guidance */
  --accent-info-muted: rgba(96, 165, 250, 0.1);
  --accent-info-border: rgba(96, 165, 250, 0.3);

  /* State Colors */
  --state-hover-bg: rgba(255, 255, 255, 0.08);
  --state-active-bg: rgba(255, 255, 255, 0.12);
  --state-focus-ring: rgba(74, 222, 128, 0.3);
  --state-disabled-bg: rgba(255, 255, 255, 0.02);

  /* Canvas & Three.js Colors */
  --canvas-bg: #0a0e27;
  --canvas-grid-primary: #1a2238;
  --canvas-grid-secondary: #0f1530;
  --canvas-disc-center: #040514;
  --canvas-disc-edge: #0f1530;

  /* ============================================
     SHADOWS (Depth System)
     ============================================ */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.55);
  --shadow-2xl: 0 30px 80px rgba(0, 0, 0, 0.65);

  /* Glow Shadows */
  --glow-primary: 0 0 30px rgba(74, 222, 128, 0.08);
  --glow-info: 0 0 35px rgba(59, 130, 246, 0.12);
  --glow-focus: 0 0 20px rgba(74, 222, 128, 0.15);

  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Easing Functions */
  --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-spring: cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ============================================
     Z-INDEX SCALE
     ============================================ */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 1000;

  /* ============================================
     BLUR AMOUNTS
     ============================================ */
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
/* Usage: @media (max-width: 768px) { ... } */

/* Mobile: 320px - 767px */
/* Tablet: 768px - 1199px */
/* Desktop: 1200px+ */
