/**
 * Design System - Variables & Tokens
 * Modern SaaS Design System for Just Bench That LLM
 */

:root {
  /* ========================================
     SPACING SYSTEM (8px grid)
     ======================================== */
  --space-0: 0;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* ========================================
     COLOR PALETTE - Dark Mode
     ======================================== */

  /* Background Colors */
  --bg-primary: #0A0E1B;
  --bg-secondary: #1A1F2E;
  --bg-card: #1F2937;
  --bg-elevated: #242D3C;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-active: rgba(255, 255, 255, 0.08);
  --bg-subtle: #111827;

  /* Text Colors */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-disabled: rgba(255, 255, 255, 0.3);

  /* Accent Colors */
  --accent: #4F46E5;
  --accent-hover: #6366F1;
  --accent-light: rgba(79, 70, 229, 0.15);

  /* Semantic Colors */
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.15);
  --success-hover: #059669;

  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-hover: #DC2626;

  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.15);
  --warning-hover: #D97706;

  --info: #3B82F6;
  --info-light: rgba(59, 130, 246, 0.15);
  --info-hover: #2563EB;

  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: var(--accent);

  /* ========================================
     SHADOWS & ELEVATION
     ======================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Colored Shadows */
  --shadow-accent: 0 4px 14px rgba(79, 70, 229, 0.3);
  --shadow-accent-lg: 0 6px 20px rgba(79, 70, 229, 0.4);
  --shadow-success: 0 4px 14px rgba(16, 185, 129, 0.3);
  --shadow-danger: 0 4px 14px rgba(239, 68, 68, 0.3);

  /* ========================================
     BORDER RADIUS
     ======================================== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

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

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  --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-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  --z-base: 1;
  --z-sticky: 10;
  --z-fixed: 100;
  --z-dropdown: 1000;
  --z-modal-backdrop: 9000;
  --z-modal: 9999;
  --z-toast: 10000;

  /* ========================================
     COMPONENT-SPECIFIC TOKENS
     ======================================== */

  /* Progress Bar */
  --progress-height: 6px;
  --progress-bg: rgba(255, 255, 255, 0.1);
  --progress-fill: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);

  /* Skeleton Loader */
  --skeleton-base: rgba(255, 255, 255, 0.08);
  --skeleton-shimmer: rgba(255, 255, 255, 0.15);

  /* Backdrop Blur */
  --backdrop-blur: blur(12px);
  --backdrop-blur-strong: blur(20px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(12px)) {
  .backdrop-blur {
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
  }

  .backdrop-blur-strong {
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
  }
}

/* Smooth Animations */
.transition-all {
  transition: all var(--transition-base);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-opacity {
  transition: opacity var(--transition-base);
}

/* Elevation Classes */
.elevated-sm {
  box-shadow: var(--shadow-sm);
}

.elevated-md {
  box-shadow: var(--shadow-md);
}

.elevated-lg {
  box-shadow: var(--shadow-lg);
}
