/**
 * Snaxbox v2 - CSS Custom Properties
 * Design System Variables
 *
 * Primary: Orange/Coral palette
 * Secondary: Teal accent
 * Mobile-first, playful design
 */

:root {
  /* ========================================
     COLORS - Primary (Orange/Coral)
     ======================================== */
  --color-primary-50: #fff7ed;
  --color-primary-100: #ffedd5;
  --color-primary-200: #fed7aa;
  --color-primary-300: #fdba74;
  --color-primary-400: #fb923c;
  --color-primary-500: #f97316; /* Main primary color */
  --color-primary-600: #ea580c;
  --color-primary-700: #c2410c;
  --color-primary-800: #9a3412;
  --color-primary-900: #7c2d12;

  /* ========================================
     COLORS - Secondary (Teal)
     ======================================== */
  --color-secondary-50: #f0fdfa;
  --color-secondary-100: #ccfbf1;
  --color-secondary-200: #99f6e4;
  --color-secondary-300: #5eead4;
  --color-secondary-400: #2dd4bf;
  --color-secondary-500: #0d9488; /* Main secondary color */
  --color-secondary-600: #0f766e;
  --color-secondary-700: #115e59;
  --color-secondary-800: #134e4a;
  --color-secondary-900: #042f2e;

  /* ========================================
     COLORS - Grayscale
     ======================================== */
  --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;

  /* ========================================
     COLORS - Semantic
     ======================================== */
  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-success-dark: #16a34a;

  --color-warning: #eab308;
  --color-warning-light: #fef9c3;
  --color-warning-dark: #ca8a04;

  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-error-dark: #dc2626;

  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  --color-info-dark: #2563eb;

  /* ========================================
     COLORS - Base
     ======================================== */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-background: #fafafa;
  --color-surface: #ffffff;
  --color-text: var(--color-gray-800);
  --color-text-muted: var(--color-gray-500);
  --color-border: var(--color-gray-200);
  --color-sand: #f5f0e8;  /* Warm sand tone for backgrounds */

  /* ========================================
     SPACING - 8px Grid 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-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ========================================
     TYPOGRAPHY - Font Family
     ======================================== */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* ========================================
     TYPOGRAPHY - 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 */

  /* ========================================
     TYPOGRAPHY - Font Weights
     ======================================== */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

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

  /* ========================================
     TYPOGRAPHY - Letter Spacing
     ======================================== */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ========================================
     BORDER RADIUS
     ======================================== */
  --radius-none: 0;
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px - Playful rounded */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-2xl: 2rem;     /* 32px */
  --radius-full: 9999px;

  /* ========================================
     BOX SHADOWS
     ======================================== */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-none: none;

  /* Primary color shadows for buttons */
  --shadow-primary: 0 4px 14px 0 rgb(249 115 22 / 0.4);
  --shadow-primary-lg: 0 8px 20px 0 rgb(249 115 22 / 0.5);

  /* ========================================
     TRANSITIONS
     ======================================== */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Specific transition properties */
  --transition-colors: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  --transition-transform: transform var(--transition-normal);
  --transition-opacity: opacity var(--transition-normal);
  --transition-shadow: box-shadow var(--transition-normal);
  --transition-all: all var(--transition-normal);

  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* ========================================
     BREAKPOINTS (for reference)
     ======================================== */
  /*
   * --breakpoint-sm: 640px
   * --breakpoint-md: 768px
   * --breakpoint-lg: 1024px
   * --breakpoint-xl: 1280px
   */

  /* ========================================
     COMPONENT SPECIFIC
     ======================================== */

  /* Touch targets - minimum 44px for accessibility */
  --touch-target-min: 44px;

  /* Container max widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Header height */
  --header-height: 64px;

  /* Footer height (for sticky cart) */
  --footer-height: 72px;
}
