/* ==========================================================================
   Design Tokens - AnkeLab OC
   Generated: 2026-04-01
   ========================================================================== */

:root {
  /* ── Colors - Background ── */
  --bg-primary: #09090B;
  --bg-secondary: #111113;
  --bg-tertiary: #18181B;
  --bg-elevated: #1C1C1E;
  --bg-card: #18181B;
  --bg-card-hover: #27272A;
  --bg-overlay: rgba(9, 9, 11, 0.88);

  /* ── Colors - Text ── */
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-muted: #52525B;
  --text-inverse: #09090B;

  /* ── Colors - Accent ── */
  --accent: #2DD4BF;
  --accent-hover: #14B8A6;
  --accent-dim: rgba(45, 212, 191, 0.1);
  --accent-glow: rgba(45, 212, 191, 0.3);

  /* ── Colors - Semantic ── */
  --success: #4ADE80;
  --success-dim: rgba(74, 222, 128, 0.1);
  --warning: #FBBF24;
  --warning-dim: rgba(251, 191, 36, 0.1);
  --error: #F87171;
  --error-dim: rgba(248, 113, 113, 0.1);
  --info: #60A5FA;
  --info-dim: rgba(96, 165, 250, 0.1);

  /* ── Colors - Tags ── */
  --tag-green: #4ADE80;
  --tag-green-bg: rgba(74, 222, 128, 0.1);
  --tag-purple: #C084FC;
  --tag-purple-bg: rgba(192, 132, 252, 0.1);
  --tag-orange: #FB923C;
  --tag-orange-bg: rgba(251, 146, 60, 0.1);
  --tag-blue: #60A5FA;
  --tag-blue-bg: rgba(96, 165, 250, 0.1);
  --tag-pink: #F472B6;
  --tag-pink-bg: rgba(244, 114, 182, 0.1);
  --tag-teal: #2DD4BF;
  --tag-teal-bg: rgba(45, 212, 191, 0.1);
  --tag-yellow: #FACC15;
  --tag-yellow-bg: rgba(250, 204, 21, 0.1);

  /* ── Colors - Borders ── */
  --border: #3F3F46;
  --border-subtle: #1C1C1E;
  --border-focus: var(--accent);

  /* ── Typography - Font Families ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;

  /* ── Typography - Font Sizes (fluid) ── */
  --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 */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* ── Typography - Line Heights ── */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ── Typography - Font Weights ── */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

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

  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* ── Transitions ── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ── */
  --z-base: 0;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ── Container Widths ── */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1100px;
  --container-2xl: 1280px;
}

/* ── Dark Mode (default) ── */
@media (prefers-color-scheme: dark) {
  :root {
    /* Already dark by default */
  }
}

/* ── Light Mode ── */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F4F5;
  --bg-tertiary: #E4E4E7;
  --bg-elevated: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F4F5;
  --bg-overlay: rgba(255, 255, 255, 0.88);
  
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-tertiary: #71717A;
  --text-inverse: #FAFAFA;
  
  --border: #D4D4D8;
  --border-subtle: #E4E4E7;
}
