/* ==========================================================================
   CSS Custom Properties - Swiss Rent vs Buy Calculator
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     Color Palette - "Swiss Precision Meets Modern Finance"
     Dark theme with crisp accents
     ------------------------------------------------------------------------- */
  
  /* Base backgrounds */
  --color-bg-primary: #0a0e14;
  --color-bg-secondary: #111820;
  --color-bg-tertiary: #161d27;
  --color-bg-card: #1a222d;
  --color-bg-card-hover: #1e2733;
  --color-bg-input: #0d1117;
  --color-bg-input-focus: #111820;
  
  /* Text colors */
  --color-text-primary: #e6edf3;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  --color-text-inverse: #0a0e14;
  
  /* Accent colors */
  --color-accent-buy: #10b981;        /* Emerald green for buying/ownership */
  --color-accent-buy-light: #34d399;
  --color-accent-buy-dark: #059669;
  --color-accent-buy-glow: rgba(16, 185, 129, 0.15);
  
  --color-accent-rent: #3b82f6;       /* Blue for renting */
  --color-accent-rent-light: #60a5fa;
  --color-accent-rent-dark: #2563eb;
  --color-accent-rent-glow: rgba(59, 130, 246, 0.15);
  
  --color-accent-warning: #f59e0b;    /* Amber for warnings */
  --color-accent-warning-light: #fbbf24;
  --color-accent-danger: #ef4444;     /* Red for errors/constraints */
  --color-accent-danger-light: #f87171;
  
  /* Swiss red for branding */
  --color-swiss-red: #ff0000;
  --color-swiss-red-dark: #cc0000;
  
  /* Neutral/border colors */
  --color-border: #2d3748;
  --color-border-light: #374151;
  --color-border-focus: #4b5563;
  
  /* -------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------- */
  
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  
  /* Font sizes - fluid scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --text-4xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
  --text-5xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
  
  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Font weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* -------------------------------------------------------------------------
     Spacing
     ------------------------------------------------------------------------- */
  
  --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 */
  
  /* -------------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------------- */
  
  --container-max: 1400px;
  --panel-width: 420px;
  --header-height: 72px;
  
  /* -------------------------------------------------------------------------
     Borders & Radius
     ------------------------------------------------------------------------- */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-2: 2px;
  
  /* -------------------------------------------------------------------------
     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 -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  
  --shadow-glow-buy: 0 0 20px rgba(16, 185, 129, 0.2);
  --shadow-glow-rent: 0 0 20px rgba(59, 130, 246, 0.2);
  
  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */
  
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* -------------------------------------------------------------------------
     Z-Index Scale
     ------------------------------------------------------------------------- */
  
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;
}

/* Dark mode is default - light mode could be added later */
@media (prefers-color-scheme: light) {
  /* Keep dark theme regardless of system preference for this app */
}

