/**
 * CSS Custom Properties (Variables)
 * Design tokens for the Communication Notebook Generator
 */

:root {
  /* ==========================================================================
     COLOR PALETTE
     ========================================================================== */
  
  /* Primary brand colors */
  --color-primary: #1e40af;        /* Blue 800 - primary actions */
  --color-primary-dark: #1e3a8a;   /* Blue 900 - hover states */
  --color-primary-light: #3b82f6;  /* Blue 500 - lighter accents */
  
  /* Neutral colors */
  --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;
  
  /* Semantic colors */
  --color-success: #059669;        /* Green for success states */
  --color-success-light: #d1fae5;
  --color-warning: #d97706;        /* Amber for warnings */
  --color-warning-light: #fef3c7;
  --color-error: #dc2626;          /* Red for errors */
  --color-error-light: #fee2e2;
  --color-info: #0284c7;           /* Sky blue for info */
  --color-info-light: #e0f2fe;
  
  /* Background colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: var(--color-gray-50);
  --color-bg-tertiary: var(--color-gray-100);
  
  /* Text colors - Ensuring 4.5:1 contrast ratio */
  --color-text-primary: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-600);
  --color-text-muted: var(--color-gray-500);
  --color-text-inverse: #ffffff;
  
  /* Border colors */
  --color-border: var(--color-gray-200);
  --color-border-strong: var(--color-gray-300);
  
  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  
  /* Font families */
  --font-family-sans: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 
                      'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-family-mono: 'Fira Code', 'Courier New', Courier, monospace;
  
  /* Font sizes - using rem for accessibility */
  --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-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* Letter spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  
  /* ==========================================================================
     SPACING
     ========================================================================== */
  
  --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 */
  --spacing-20: 5rem;       /* 80px */
  --spacing-24: 6rem;       /* 96px */
  
  /* ==========================================================================
     BORDERS & RADIUS
     ========================================================================== */
  
  --border-width: 1px;
  --border-width-2: 2px;
  
  --radius-sm: 0.25rem;     /* 4px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-full: 9999px;
  
  /* ==========================================================================
     SHADOWS
     ========================================================================== */
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* ==========================================================================
     TRANSITIONS
     ========================================================================== */
  
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* ==========================================================================
     LAYOUT
     ========================================================================== */
  
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  /* Content widths */
  --content-width: 65ch;        /* Optimal reading width */
  --content-width-wide: 80ch;
  
  /* ==========================================================================
     Z-INDEX
     ========================================================================== */
  
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  
  /* ==========================================================================
     FOCUS STATES (Accessibility)
     ========================================================================== */
  
  --focus-ring-width: 3px;
  --focus-ring-color: var(--color-primary-light);
  --focus-ring-offset: 2px;
}

/* ==========================================================================
   DARK MODE (Future enhancement)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Uncomment and customize for dark mode support
    --color-bg-primary: var(--color-gray-900);
    --color-bg-secondary: var(--color-gray-800);
    --color-text-primary: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-300);
    --color-border: var(--color-gray-700);
    */
  }
}
