/* ===================================================================
   CSS Custom Properties (Variables)
   Foundation for the Content Mastery design system
   =================================================================== */

:root {
  /* ===== COLORS ===== */
  /* Primary Brand Colors */
  --primary-color: #ff7a59;
  --secondary-color: #ff8f73;
  --accent-color: #fff9f5;
  --bg-color: #fff9f5;
  
  /* Text Colors */
  --text-color: #1a1a1a;
  --text-secondary: #374151;
  --text-subtitle: #4a5568;
  --text-muted: #6b7280;
  --text-light: #f8f9fa;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-cream: #fefdfb;
  --bg-warm: #faf9f7;
  --bg-gray: #e9ecef;
  --bg-dark: #2c3e50;
  
  /* Border Colors */
  --border-color: #e9ecef;
  --border-light: #f0f0f0;
  --border-dark: #dee2e6;
  
  /* Status Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* ===== 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 */
  --space-4xl: 5rem;      /* 80px */
  --space-5xl: 6rem;      /* 96px */
  --space-6xl: 8rem;      /* 128px */
  
  /* Section Spacing */
  --section-spacing: 1.5rem; /* 24px between sections */
  --section-padding: 3rem; /* 48px section internal padding */
  
  /* ===== TYPOGRAPHY ===== */
  /* Font Families */
  --font-primary: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-secondary: system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto 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-size-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ===== 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-full: 9999px;
  
  /* ===== SHADOWS ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 20px 48px rgba(0, 0, 0, 0.18);
  
  /* Primary Color Shadows */
  --shadow-primary: 0 4px 15px rgba(255, 122, 89, 0.3);
  --shadow-primary-lg: 0 8px 25px rgba(255, 122, 89, 0.4);
  
  /* ===== BREAKPOINTS ===== */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* ===== Z-INDEX SCALE ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* ===== LAYOUT ===== */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
  
  /* ===== FORM ELEMENTS ===== */
  --input-height: 48px;
  --input-padding-x: 1rem;
  --input-padding-y: 0.75rem;
  --input-border-width: 2px;
  --input-focus-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
  
  /* ===== BUTTONS ===== */
  --btn-padding-x: 1.5rem;
  --btn-padding-y: 0.75rem;
  --btn-height: 48px;
  --btn-border-radius: var(--radius-2xl);
}

/* ===== DARK MODE OVERRIDES ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f8f9fa;
    --text-secondary: #adb5bd;
    --bg-white: #1a1a1a;
    --bg-light: #2d2d2d;
    --border-color: #404040;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
  }
}