/* ReservaGym Design System - Variables */

:root {
  /* Colors - Based on ReservaGym Brand */
  --primary-color: #e86454;
  --primary-dark: #d1453a;
  --primary-light: #ef8276;

  --secondary-color: #2c3e50;
  --secondary-dark: #1a252f;
  --secondary-light: #34495e;

  --accent-color: #3498db;
  --accent-dark: #2980b9;

  /* Grays */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #1a1a1a;

  /* Status Colors */
  --success-color: #28a745;
  --success-light: #d4edda;
  --success-dark: #1e7e34;
  --error-color: #dc3545;
  --error-light: #f8d7da;
  --error-dark: #c82333;
  --warning-color: #ffc107;
  --warning-light: #fff3cd;
  --warning-dark: #e0a800;
  --info-color: #17a2b8;
  --info-light: #d1ecf1;
  --info-dark: #138496;

  /* Typography */
  --font-family:
    "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
  --font-family-mono: "JetBrains Mono", monaco, "Cascadia Code", monospace;

  /* Font Sizes */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --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-size-5xl: 3rem; /* 48px */
  --font-size-6xl: 3.75rem; /* 60px */

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

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;

  /* Spacing */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 0.75rem; /* 12px */
  --space-lg: 1rem; /* 16px */
  --space-xl: 1.5rem; /* 24px */
  --space-2xl: 2rem; /* 32px */
  --space-3xl: 3rem; /* 48px */
  --space-4xl: 4rem; /* 64px */
  --space-5xl: 6rem; /* 96px */
  --space-6xl: 8rem; /* 128px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-2xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 25%);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-mobile-menu: 1045;
  --z-popover: 1050;
  --z-tooltip: 1060;
  --z-theme-toggle: 1070;

  /* Breakpoints (for JS usage) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

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

  /* Form Elements */
  --input-height: 2.75rem; /* 44px */
  --input-padding: 0.75rem 1rem;
  --input-border-width: 2px;
  --input-border-color: var(--gray-200);
  --input-border-color-focus: var(--primary-color);

  /* Buttons */
  --btn-height: 2.75rem; /* 44px */
  --btn-padding: 0.75rem 1.5rem;
  --btn-border-radius: var(--radius-lg);

  /* Animation Curves */
  --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);
}

/* Light Mode Variables (Default) */
:root {
  --bg-primary: white;
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border-color: var(--gray-200);
  --shadow-color: rgb(0 0 0 / 10%);
  --card-bg: white;
  --input-bg: white;
  --navbar-bg: white;
  --modal-bg: white;
  --modal-overlay: rgb(0 0 0 / 50%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --bg-tertiary: var(--gray-700);
  --text-primary: #fff;
  --text-secondary: #e5e7eb;
  --text-tertiary: #d1d5db;
  --border-color: var(--gray-600);
  --shadow-color: rgb(0 0 0 / 30%);
  --card-bg: var(--gray-800);
  --input-bg: var(--gray-700);
  --navbar-bg: var(--gray-800);
  --modal-bg: var(--gray-800);
  --modal-overlay: rgb(0 0 0 / 70%);
  
  /* Status colors for dark mode */
  --success-light: rgb(34 197 94 / 20%);
  --error-light: rgb(239 68 68 / 20%);
  --warning-light: rgb(245 158 11 / 20%);
  --info-light: rgb(59 130 246 / 20%);
}

/* Auto Dark Mode (respects system preference when no manual selection) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --text-primary: #fff;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --border-color: var(--gray-600);
    --shadow-color: rgb(0 0 0 / 30%);
    --card-bg: var(--gray-800);
    --input-bg: var(--gray-700);
    --navbar-bg: var(--gray-800);
    --modal-bg: var(--gray-800);
    --modal-overlay: rgb(0 0 0 / 70%);
    
    /* Status colors for dark mode */
    --success-light: rgb(34 197 94 / 20%);
    --error-light: rgb(239 68 68 / 20%);
    --warning-light: rgb(245 158 11 / 20%);
    --info-light: rgb(59 130 246 / 20%);
  }
}
