/* 
 * Design System Variables
 * Paso a Casa - Mobile-First Design Tokens
 * 
 * Color Philosophy:
 * - Primary Blue: Trust, stability, professionalism
 * - Secondary Green: Progress, growth, new beginnings
 * - Accent Orange: Warmth, welcoming, action
 * - Neutrals: Clean, readable, accessible
 */

:root {
  /* ===== COLORS ===== */
  
  /* Primary Brand Color - Trustworthy Blue */
  --color-primary: #0066cc;
  --color-primary-light: #3385db;
  --color-primary-dark: #004d99;
  --color-primary-bg: #e6f2ff;
  
  /* Secondary Color - Growth Green */
  --color-secondary: #10b981;
  --color-secondary-light: #34d399;
  --color-secondary-dark: #059669;
  --color-secondary-bg: #d1fae5;
  
  /* Accent Color - Warm Orange */
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;
  --color-accent-bg: #fef3c7;
  
  /* Text Colors */
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-text-lighter: #9ca3af;
  --color-text-inverse: #ffffff;
  
  /* Background Colors */
  --color-background: #ffffff;
  --color-background-alt: #f9fafb;
  --color-background-dark: #f3f4f6;
  
  /* Border Colors */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-border-dark: #d1d5db;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  
  /* Success/Error Backgrounds (for alerts, messages) */
  --color-success-bg: #d1fae5;
  --color-error-bg: #fee2e2;
  --color-warning-bg: #fef3c7;
  --color-info-bg: #dbeafe;
  
  
  /* ===== TYPOGRAPHY ===== */
  
  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  
  /* Mobile-First Font Sizes (16px base for accessibility) */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px - prevents iOS zoom on input focus */
  --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.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  
  
  /* ===== SPACING ===== */
  /* Mobile-first spacing scale (8px base unit) */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* Semantic Spacing (for consistency) */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  
  
  /* ===== SIZING ===== */
  
  /* Touch Target Sizes (WCAG 2.1 AA minimum 44x44px) */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  
  /* Container Widths (mobile-first) */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Content Width (optimal reading length) */
  --content-width: 65ch;
  
  
  /* ===== BORDER RADIUS ===== */
  /* Friendly, approachable rounded corners */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  
  /* ===== SHADOWS ===== */
  /* Subtle, mobile-optimized shadows */
  --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 -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Focus Shadow (for accessibility) */
  --shadow-focus: 0 0 0 3px rgba(0, 102, 204, 0.2);
  
  
  /* ===== TRANSITIONS ===== */
  /* Smooth, mobile-optimized transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;
  
  /* Easing 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);
  
  
  /* ===== Z-INDEX LAYERS ===== */
  /* Stacking context management */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  
  
  /* ===== BREAKPOINTS (for reference in media queries) ===== */
  /* Mobile-first breakpoints */
  /* 
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  Note: Can't use CSS variables in media queries,
  but documented here for reference
  */
}

/* 
 * Dark Mode Support (Optional - prepared for future)
 * Uncomment when implementing dark mode
 */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f9fafb;
    --color-text-light: #d1d5db;
    --color-background: #111827;
    --color-background-alt: #1f2937;
    --color-border: #374151;
  }
}
*/
