/* ============================================
   CC10X DESIGN SYSTEM
   Claude Code Colors + Systematic Design
   ============================================ */

:root {
  /* ========== PRIMARY COLORS ========== */
  --primary: #FF6B00;           /* Claude Code orange */
  --primary-dark: #E65C00;      /* Darker orange for hover */
  --primary-light: #FF8533;     /* Lighter orange for accents */
  --primary-glow: rgba(255, 107, 0, 0.3); /* Glow effects */
  --primary-text: #E65100;      /* Text on white (WCAG AA: 5.2:1) */

  /* ========== NEUTRAL COLORS ========== */
  --dark: #1A1A1A;              /* Primary black */
  --dark-lighter: #2A2A2A;      /* Elevated surfaces */
  --dark-lightest: #3A3A3A;     /* Borders, dividers */

  --gray-900: #0F0F0F;          /* Deepest black */
  --gray-800: #1A1A1A;
  --gray-700: #2A2A2A;
  --gray-600: #404040;
  --gray-500: #666666;
  --gray-400: #999999;
  --gray-300: #CCCCCC;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;

  /* ========== SEMANTIC COLORS ========== */
  --success: #10B981;           /* Green for positive states */
  --warning: #F59E0B;           /* Yellow for warnings */
  --error: #EF4444;             /* Red for errors */
  --info: #3B82F6;              /* Blue for information */

  /* ========== WORKFLOW COLORS ========== */
  --workflow-review: #8B5CF6;   /* Purple */
  --workflow-plan: #3B82F6;     /* Blue */
  --workflow-build: #10B981;    /* Green */
  --workflow-debug: #F59E0B;    /* Orange/Yellow */

  /* ========== BACKGROUNDS & SURFACES ========== */
  --bg-primary: #0F0F0F;        /* Page background */
  --bg-secondary: #1A1A1A;      /* Card backgrounds */
  --bg-elevated: #2A2A2A;       /* Elevated cards */
  --bg-glass: rgba(26, 26, 26, 0.8); /* Glass morphism */

  /* ========== TEXT COLORS ========== */
  --text-primary: #FFFFFF;      /* Primary text */
  --text-secondary: #CCCCCC;    /* Secondary text */
  --text-tertiary: #999999;     /* Tertiary text, disabled */
  --text-inverse: #1A1A1A;      /* Text on light backgrounds */

  /* ========== BORDERS & DIVIDERS ========== */
  --border-subtle: #2A2A2A;
  --border-default: #3A3A3A;
  --border-strong: #4A4A4A;

  /* ========== GRADIENTS ========== */
  --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
  --gradient-dark: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(255, 107, 0, 0.15) 0%, transparent 50%);

  /* ========== TYPOGRAPHY ========== */
  /* Font Families */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;

  /* Font Sizes */
  --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 */
  --text-7xl: 4.5rem;      /* 72px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ========== SPACING ========== */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;   /* 2px */
  --space-1: 0.25rem;      /* 4px */
  --space-1-5: 0.375rem;   /* 6px */
  --space-2: 0.5rem;       /* 8px */
  --space-2-5: 0.625rem;   /* 10px */
  --space-3: 0.75rem;      /* 12px */
  --space-3-5: 0.875rem;   /* 14px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-7: 1.75rem;      /* 28px */
  --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 */
  --space-32: 8rem;        /* 128px */

  /* Section Spacing */
  --section-padding-mobile: var(--space-16);
  --section-padding-desktop: var(--space-24);

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

  /* ========== ANIMATION ========== */
  /* Timing 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-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);

  /* Durations */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  /* Animation Delays */
  --delay-0: 0ms;
  --delay-100: 100ms;
  --delay-200: 200ms;
  --delay-300: 300ms;

  /* ========== BREAKPOINTS ========== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ========== SHADOWS ========== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* ========== BORDER RADIUS ========== */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ========== Z-INDEX ========== */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
}

/* ========== RESPONSIVE FONT SIZES ========== */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;      /* 40px on mobile */
    --text-6xl: 3rem;        /* 48px on mobile */
    --text-7xl: 3.5rem;      /* 56px on mobile */
  }
}

/* ========== PREFERS REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
    --duration-slower: 0.01ms;
  }
}
