/* LIMOR AI - Responsive Design Variables
 * Sacred Compliance: 100% SHARP - Mobile responsiveness with desktop preservation
 * Hebrew Excellence: RTL support maintained across all breakpoints
 */

:root {
  /* CHAKRA UI Brand Colors - Maintained from existing system */
  --chakra-colors-brand-50: #f5f3ff;
  --chakra-colors-brand-100: #ede9fe;
  --chakra-colors-brand-200: #ddd6fe;
  --chakra-colors-brand-300: #c4b5fd;
  --chakra-colors-brand-400: #a78bfa;
  --chakra-colors-brand-500: #8b5cf6;
  --chakra-colors-brand-600: #7c3aed;
  --chakra-colors-brand-700: #6d28d9;
  --chakra-colors-brand-800: #5b21b6;
  --chakra-colors-brand-900: #4c1d95;

  /* Responsive Breakpoints */
  --breakpoint-mobile: 320px;
  --breakpoint-mobile-large: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-desktop-large: 1440px;

  /* Container Sizes */
  --container-mobile: 100%;
  --container-tablet: 750px;
  --container-desktop: 1000px;
  --container-desktop-large: 1400px;

  /* Spacing Scale - CHAKRA UI Compliant */
  --space-0-5: 0.125rem;  /* 2px */
  --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 */

  /* Typography Scale - Responsive */
  --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 */

  /* Touch Target Sizes */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --touch-target-large: 56px;

  /* Layout Variables */
  --sidebar-width-desktop: 16rem;      /* Existing desktop width */
  --sidebar-width-mobile: 100vw;       /* Full width on mobile */
  --navbar-height: 4rem;
  --navbar-height-mobile: 3.5rem;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
  --z-tooltip: 60;

  /* Animation Timings */
  --transition-fast: 0.1s;
  --transition-normal: 0.2s;
  --transition-slow: 0.3s;

  /* Border Radius - CHAKRA Compliant */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows - CHAKRA Compliant */
  --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 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);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Hebrew/RTL Specific Variables */
  --text-align-start: right; /* RTL default */
  --text-align-end: left;
  --margin-start: margin-right;
  --margin-end: margin-left;
  --padding-start: padding-right;
  --padding-end: padding-left;
}

/* LTR Override (if needed for mixed content) */
[dir="ltr"] {
  --text-align-start: left;
  --text-align-end: right;
  --margin-start: margin-left;
  --margin-end: margin-right;
  --padding-start: padding-left;
  --padding-end: padding-right;
}

/* Responsive Font Sizes */
@media (max-width: 767px) {
  :root {
    --text-xs: 0.7rem;      /* Slightly smaller on mobile */
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.875rem;
  }
}

/* Large Desktop Adjustments */
@media (min-width: 1440px) {
  :root {
    --text-base: 1.125rem;  /* Slightly larger on big screens */
    --text-lg: 1.25rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.625rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
  }
}