/* ==========================================================================
   Design Tokens - Wholesum Design System
   Single source of truth for all design tokens (colors, typography, spacing, etc.)
   Version: 1.0 | Phase 1 of CSS Unification
   ========================================================================== */

:root {
  /* Force light mode regardless of OS preference */
  color-scheme: light;

  /* ===== COLOR TOKENS ===== */

  /* Brand / Semantic Colors */
  --color-primary: #00c8f0;
  --color-primary-hover: #00afd6;
  --color-primary-active: #0098ba;
  --color-primary-disabled: #a8e8f5;

  --color-secondary: #111;
  --color-secondary-hover: #333;
  --color-secondary-active: #555;

  --color-success: #10B981;
  --color-success-hover: #059669;
  --color-success-light: #D1FAE5;

  --color-warning: #F59E0B;
  --color-warning-hover: #D97706;
  --color-warning-light: #FEF3C7;

  --color-error: #EF4444;
  --color-error-hover: #DC2626;
  --color-error-light: #FEE2E2;

  --color-info: #3B82F6;
  --color-info-hover: #2563EB;
  --color-info-light: #DBEAFE;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  --color-black: #000000;

  /* Text Colors */
  --color-text-primary: #111827;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9CA3AF;
  --color-text-disabled: #D1D5DB;
  --color-text-inverse: #FFFFFF;

  /* Background Colors */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F9FAFB;
  --color-bg-tertiary: #F3F4F6;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);

  /* Border Colors */
  --color-border-light: #E5E7EB;
  --color-border-default: #D1D5DB;
  --color-border-dark: #9CA3AF;

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

  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu 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 Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

  --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-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */

  /* ===== BORDER RADIUS TOKENS ===== */

  --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-full: 9999px;

  /* ===== SHADOW TOKENS ===== */

  --shadow-none: none;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 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);

  /* Semantic shadows — derived from actual UI usage */
  --shadow-hover: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-modal: 0 8px 48px rgba(0, 0, 0, 0.14);
  --shadow-drawer: 0 -4px 32px rgba(0, 0, 0, 0.12);
  --shadow-focus-ring: 0 0 0 3px rgba(0, 200, 240, 0.25);

  /* ===== TRANSITION TOKENS ===== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

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

  --page-gutter: 40px;
  --page-max-width: 900px;

  /* ===== BREAKPOINT REFERENCE ===== */
  /* CSS custom properties cannot be used in @media queries.
     These values are documented here as the single source of truth.
     Use the raw px values in @media rules and the class prefixes in layout.css.

     --bp-small:   480px   →  sm\:*   (small mobile)
     --bp-mobile:  640px   →  mob\:*  (mobile / phone landscape)
     --bp-tablet:  768px   →  md\:*   (tablet)
     --bp-desktop: 1024px  →  lg\:*   (desktop, reserved for future use)

     Content-specific grid breakpoints (page-local, not standardized):
       560px, 860px   — index.html card/starred grids
       1000px, 1400px — notes.html notes grid
  */

  /* ===== Z-INDEX TOKENS ===== */

  --z-footer: 50;
  --z-overlay: 100;
  --z-dropdown: 200;
  --z-menu: 300;
  --z-modal: 400;
}

