/* Design Tokens for uBuild
 * Central design decisions for easy brand replacement
 * Update these values when final brand standards arrive
 */

:root {
  /* Colors - Neutral palette for Phase 1 */
  --color-primary: #1a365d;
  --color-primary-dark: #102a4e;
  --color-primary-light: #2c5282;
  
  --color-secondary: #718096;
  --color-secondary-dark: #4a5568;
  --color-secondary-light: #a0aec0;
  
  --color-accent: #3182ce;
  --color-accent-dark: #2b6cb0;
  --color-accent-light: #63b3ed;
  
  --color-background: #ffffff;
  --color-background-alt: #f7fafc;
  --color-background-dark: #1a202c;
  
  --color-text: #1a202c;
  --color-text-light: #4a5568;
  --color-text-muted: #718096;
  --color-text-inverse: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --color-border-dark: #cbd5e0;
  
  --color-success: #48bb78;
  --color-warning: #ed8936;
  --color-error: #f56565;
  --color-info: #4299e1;
  
  /* Placeholder styling */
  --color-placeholder-bg: #fef3c7;
  --color-placeholder-border: #f6e05e;
  --color-placeholder-text: #744210;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Fluid Typography Scale */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --font-size-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --font-size-3xl: clamp(2.75rem, 2.2rem + 2.75vw, 4rem);
  --font-size-4xl: clamp(3.5rem, 2.8rem + 3.5vw, 5.5rem);
  --font-size-5xl: clamp(4.5rem, 3.5rem + 5vw, 7rem);
  
  /* Fixed sizes for backward compatibility */
  --font-size-xs-fixed: 0.75rem;
  --font-size-sm-fixed: 0.875rem;
  --font-size-base-fixed: 1rem;
  --font-size-lg-fixed: 1.125rem;
  --font-size-xl-fixed: 1.25rem;
  --font-size-2xl-fixed: 1.5rem;
  --font-size-3xl-fixed: 1.875rem;
  --font-size-4xl-fixed: 2.25rem;
  --font-size-5xl-fixed: 3rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Section Spacing */
  --space-section-mobile: 4rem;
  --space-section-tablet: 6rem;
  --space-section-desktop: 8rem;
  --space-section-large: 12rem;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 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-none: none;
  
  /* Refined Shadows for Cards */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.1);
  
  /* 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;
  
  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  
  --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);
  
  /* Breakpoints */
  --breakpoint-mobile: 767px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
}
