/**
 * Parklines Design System
 * CSS Custom Properties (Variables)
 * Version: 1.0.0
 */

:root {
  /* ===== Color Palette ===== */
  
  /* Parklines brand: blue on light grey */
  --brand-blue: #2563eb;
  --brand-navy: #0f172a;
  --brand-white: #ffffff;
  /* The second colour, for what should stand out. Text on it is dark: white doesn't read on it.
     It is too light for text on a light page: words in this colour use --brand-orange-text */
  --brand-orange: #ffc233;
  --brand-orange-rgb: 255, 194, 51;
  --brand-orange-text: #8a5a00;
  --brand-orange-soft: #fff4d6;
  --brand-on-orange: #1c1917;

  /* Primary Colors - Blue */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-primary-dark: #1d4ed8;
  --bs-primary-light: #60a5fa;
  --bs-primary-lighter: #bfdbfe;

  /* Secondary Colors - Slate */
  --bs-secondary: #475569;
  --bs-secondary-rgb: 71, 85, 105;
  --bs-secondary-dark: #334155;
  --bs-secondary-light: #64748b;

  /* Accent Colors */
  --bs-accent: #ffc233;
  --bs-accent-rgb: 255, 194, 51;

  /* Semantic Colors */
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-warning: #d97706;
  --bs-warning-rgb: 217, 119, 6;
  --bs-info: #0284c7;
  --bs-info-rgb: 2, 132, 199;

  /* Neutral Colors - Light Mode */
  --bs-gray-50: #f8fafc;
  --bs-gray-100: #f1f5f9;
  --bs-gray-200: #e2e8f0;
  --bs-gray-300: #cbd5e1;
  --bs-gray-400: #94a3b8;
  --bs-gray-500: #64748b;
  --bs-gray-600: #475569;
  --bs-gray-700: #334155;
  --bs-gray-800: #1e293b;
  --bs-gray-900: #0f172a;

  /* Body Colors */
  --bs-body-bg: #eef1f5;
  --bs-body-bg-rgb: 238, 241, 245;
  --bs-body-color: #1e293b;
  --bs-body-color-rgb: 30, 41, 59;

  /* Surface Colors */
  --bs-surface: #ffffff;
  --bs-surface-secondary: #f4f6f9;
  --bs-border-color: #dde3ea;

  /* Top bar text and the car park illustration */
  --nav-text: #475569;
  --nav-text-strong: #0f172a;
  --sc-ground: #dfe5ed;
  --sc-line: #ffffff;
  --sc-glass: rgba(15, 23, 42, 0.45);
  --sc-car1: #94a3b8;
  --sc-car2: #64748b;
  --sc-car3: #b6c2d2;

  /* ===== Typography ===== */
  
  /* Font Families */
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-heading: 'Outfit', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  
  /* Font Sizes - Fluid Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --fs-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
  --fs-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);
  
  /* Font Weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  
  /* Line Heights */
  --lh-tight: 1.25;
  --lh-snug: 1.375;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;
  --lh-loose: 2;
  
  /* Letter Spacing */
  --ls-tighter: -0.05em;
  --ls-tight: -0.025em;
  --ls-normal: 0;
  --ls-wide: 0.025em;
  --ls-wider: 0.05em;
  --ls-widest: 0.1em;
  
  /* ===== Spacing System ===== */
  --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-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-9: 2.25rem;   /* 36px */
  --space-10: 2.5rem;   /* 40px */
  --space-11: 2.75rem;  /* 44px */
  --space-12: 3rem;     /* 48px */
  --space-14: 3.5rem;   /* 56px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-28: 7rem;     /* 112px */
  --space-32: 8rem;     /* 128px */
  
  /* ===== Shadows & Effects ===== */
  
  /* Elevation System */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Border Width */
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;
  
  /* ===== Transitions ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 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 Scale ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* ===== Layout ===== */
  --container-max-width: 1280px;
  --container-padding: var(--space-4);
  
  /* Navbar: white, over the light grey page */
  --navbar-height: 80px;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --navbar-blur: blur(10px);
  
  /* ===== Component Specific ===== */
  
  /* Buttons */
  --btn-padding-y: var(--space-3);
  --btn-padding-x: var(--space-6);
  --btn-border-radius: var(--radius-lg);
  --btn-font-weight: var(--fw-medium);
  
  /* Cards */
  --card-padding: var(--space-6);
  --card-border-radius: var(--radius-xl);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-lg);
  
  /* Forms */
  --input-padding-y: var(--space-3);
  --input-padding-x: var(--space-4);
  --input-border-radius: var(--radius-lg);
  --input-border-color: var(--bs-border-color);
  --input-focus-border-color: var(--bs-primary);
  
  /* ===== Animations ===== */
  --animation-fade-in: fadeIn var(--transition-base);
  --animation-slide-up: slideUp var(--transition-base);
  --animation-slide-down: slideDown var(--transition-base);
  --animation-scale-in: scaleIn var(--transition-base);
}

/* ===== Dark Mode Theme ===== */
[data-theme="dark"] {
  /* Dark mode: deep navy, the blue gets lighter to stay readable */
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
  --bs-primary-dark: #60a5fa;
  --bs-body-bg: #0e1726;
  --bs-body-bg-rgb: 14, 23, 38;
  --bs-body-color: #e6ebf2;
  --bs-body-color-rgb: 230, 235, 242;

  /* Dark Surface Colors */
  --bs-surface: #16213a;
  --bs-surface-secondary: #1c2a47;
  --bs-border-color: #2b3a58;

  /* Adjust grays for dark mode */
  --bs-gray-50: #16213a;
  --bs-gray-100: #1c2a47;
  --bs-gray-200: #2b3a58;
  --bs-gray-300: #3a4b6c;
  --bs-gray-700: #cbd5e1;
  --bs-gray-800: #e2e8f0;
  --bs-gray-900: #f1f5f9;

  --nav-text: #b9c4d6;
  --nav-text-strong: #ffffff;
  --sc-ground: #1c2a47;
  --sc-line: #41537a;
  --sc-glass: rgba(14, 23, 38, 0.6);
  --sc-car1: #5b6f94;
  --sc-car2: #475a7d;
  --sc-car3: #6f83a8;

  /* Navbar in dark mode */
  --navbar-bg: rgba(14, 23, 38, 0.92);

  /* Adjust shadows for dark mode */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  
  /* Card shadows in dark mode */
  --card-shadow: var(--shadow-lg);
  --card-shadow-hover: var(--shadow-xl);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  :root {
    --bs-body-bg: white;
    --bs-body-color: black;
  }
}

/* Made with Bob */

[data-theme="dark"] {
  --brand-orange-text: #ffd166;
  --brand-orange-soft: rgba(255, 194, 51, .16);
}
