/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   Design System Tokens for Kwickprep
   ============================================ */

:root {
  /* ===== PRIMARY COLORS - Kwick Brand (#00b7CE) ===== */
  --color-primary-50: #e6f7fa;
  --color-primary-100: #b3ebf2;
  --color-primary-200: #80dfe9;
  --color-primary-300: #4dd3e1;
  --color-primary-400: #26c7d9;
  --color-primary-500: #00b7ce;  /* Main Kwick brand color */
  --color-primary-600: #00a3b8;
  --color-primary-700: #008fa2;
  --color-primary-800: #007b8c;
  --color-primary-900: #00576a;

  /* ===== NEUTRAL COLORS (Gray) ===== */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* ===== SEMANTIC COLORS ===== */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* ===== THEME COLORS (Light Mode - Default) ===== */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  --border-color: #e5e7eb;
  --border-color-hover: #d1d5db;

  /* ===== 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 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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

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

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ===== SPACING SCALE (4px base) ===== */
  --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-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 */

  /* ===== BORDER RADIUS ===== */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --transition-slower: 500ms ease-in-out;

  /* ===== LAYOUT ===== */
  --container-max-width: 1400px;
  --container-padding: var(--space-4);
  --header-height: 80px;
  --footer-min-height: 400px;

  /* ===== Z-INDEX SCALE ===== */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ===== RESPONSIVE BREAKPOINTS ===== */
  --breakpoint-mobile-sm: 480px;   /* Small mobile: 0-480px */
  --breakpoint-mobile: 767px;      /* Large mobile: 481px-767px */
  --breakpoint-tablet: 768px;      /* Tablet: 768px-1024px */
  --breakpoint-desktop: 1025px;    /* Desktop: 1025px+ */
  --breakpoint-wide: 1280px;       /* Wide screens: 1280px+ */

  /* Mobile-specific spacing (reduced for small screens) */
  --mobile-space-xs: 0.5rem;   /* 8px */
  --mobile-space-sm: 0.75rem;  /* 12px */
  --mobile-space-md: 1rem;     /* 16px */
  --mobile-space-lg: 1.5rem;   /* 24px */
  --mobile-space-xl: 2rem;     /* 32px */

  /* Touch target sizes (WCAG 2.1 Level AA) */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;

  /* Mobile typography scale */
  --mobile-text-xs: 0.75rem;   /* 12px */
  --mobile-text-sm: 0.875rem;  /* 14px */
  --mobile-text-base: 1rem;    /* 16px - prevents iOS zoom */
  --mobile-text-lg: 1.125rem;  /* 18px */
  --mobile-text-xl: 1.25rem;   /* 20px */
  --mobile-text-2xl: 1.5rem;   /* 24px */
}

/* ============================================
   DARK MODE VARIABLES
   Applied when [data-theme="dark"] is set on <html>
   ============================================ */
[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;

  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;

  --border-color: #374151;
  --border-color-hover: #4b5563;

  /* Adjusted shadows for dark mode */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);

  /* Slightly brighter primary colors for dark mode (better contrast) */
  --color-primary-600: #06b6d4;
  --color-primary-700: #0891b2;
}

/* ============================================
   RESPONSIVE BREAKPOINTS (for reference in media queries)
   ============================================ */
/*
  Small mobile: 0-480px
  Large mobile: 481px-767px
  Tablet: 768px-1024px
  Desktop: 1025px-1279px
  Wide: 1280px+

  Usage in CSS:
  @media (max-width: 480px) { ... }
  @media (max-width: 767px) { ... }
  @media (min-width: 768px) { ... }
  @media (min-width: 1025px) { ... }
  @media (min-width: 1280px) { ... }
*/
