/*
 * TheLegalLetter Design System
 * Consolidated CSS Variables - Single Source of Truth
 * Contains all design tokens for colors, typography, spacing, shadows, and layout
 * Generated: 2025-09-18
 */

:root {
   /* ==========================================================================
      BRAND & THEME COLORS
      ========================================================================== */

   /* Primary Brand Colors */
   --tll-brand-primary: #3b82f6;
   --tll-brand-secondary: #06b6d4;
   --tll-brand-dark: #1e3a8a;
   --tll-gradient-brand: linear-gradient(135deg, var(--tll-brand-primary) 0%, var(--tll-brand-secondary) 100%);

   /* Professional Theme Colors */
   --tll-primary: #1a1a1a;
   --tll-secondary: #343a40;
   --tll-accent: #495057;
   --tll-muted: #6c757d;
   --tll-light: #f8f9fa;
   --tll-lighter: #fff;
   --tll-border: #e9ecef;

   /* Professional Legal Colors */
   --tll-primary-navy: #1a365d;
   --tll-primary-charcoal: #2d3748;
   --tll-primary-slate: #4a5568;
   --tll-accent-gold: #d69e2e;
   --tll-accent-blue: #2b6cb0;

   /* Legal/Professional Color Palette */
   --tll-legal-navy: #1a365d;
   --tll-legal-gold: #d97706;
   --tll-legal-dark-gray: #374151;
   --tll-legal-light-gray: #f3f4f6;

   /* Grayscale System */
   --tll-white: #fff;
   --tll-gray-50: #f8f9fa;
   --tll-gray-100: #f1f3f4;
   --tll-gray-200: #e9ecef;
   --tll-gray-300: #dee2e6;
   --tll-gray-400: #ced4da;
   --tll-gray-500: #adb5bd;
   --tll-gray-600: #6c757d;
   --tll-gray-700: #495057;
   --tll-gray-800: #343a40;
   --tll-gray-900: #212529;

   /* Neutral Grays (Extended) */
   --tll-gray-150: #f3f4f6;
   --tll-gray-250: #e5e7eb;
   --tll-gray-350: #d1d5db;
   --tll-gray-450: #9ca3af;
   --tll-gray-550: #6b7280;
   --tll-gray-650: #4b5563;
   --tll-gray-750: #374151;
   --tll-gray-850: #1f2937;
   --tll-gray-950: #111827;

   /* Semantic Colors */
   --tll-success: #28a745;
   --tll-success-dark: #065f46;
   --tll-warning: #ffc107;
   --tll-warning-dark: #d69e2e;
   --tll-danger: #dc3545;
   --tll-danger-dark: #991b1b;
   --tll-info: #17a2b8;
   --tll-info-dark: #0c4a6e;

   /* Legal Document Specific */
   --tll-legal-text-color: #374151;
   --tll-legal-heading-color: var(--tll-legal-navy);
   --tll-citation-color: #6b7280;

   /* ==========================================================================
      TYPOGRAPHY SYSTEM
      ========================================================================== */

   /* Font Families */
   --tll-font-family: 'Segoe UI', system-ui, -apple-system, blinkmacsystemfont, 'Helvetica Neue', arial, sans-serif;
   --tll-font-serif: 'Georgia', 'Times New Roman', serif;
   --tll-font-sans: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
   --tll-font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

   /* Font Sizes */
   --tll-font-size-xs: 0.75rem;
   --tll-font-size-sm: 0.875rem;
   --tll-font-size-base: 1rem;
   --tll-font-size-lg: 1.125rem;
   --tll-font-size-xl: 1.25rem;
   --tll-font-size-xxl: 1.5rem;
   --tll-font-size-3xl: 2rem;
   --tll-font-size-4xl: 2.5rem;
   --tll-font-size-5xl: 3rem;

   /* Line Heights */
   --tll-line-height-tight: 1.1;
   --tll-line-height-normal: 1.6;
   --tll-line-height-loose: 1.8;
   --tll-line-height-relaxed: 2.0;

   /* Letter Spacing */
   --tll-letter-spacing-tight: -0.025em;
   --tll-letter-spacing-normal: 0;
   --tll-letter-spacing-wide: 0.025em;

   /* ==========================================================================
      SPACING SYSTEM
      ========================================================================== */

   /* Spacing Scale */
   --tll-space-xs: 0.25rem;
   --tll-space-sm: 0.5rem;
   --tll-space-md: 0.75rem;
   --tll-space-lg: 1rem;
   --tll-space-xl: 1.5rem;
   --tll-space-2xl: 2rem;
   --tll-space-3xl: 3rem;
   --tll-space-4xl: 4rem;
   --tll-space-5xl: 6rem;

   /* Compact Spacing (Alternative) */
   --tll-spacing-xs: 0.25rem;
   --tll-spacing-sm: 0.5rem;
   --tll-spacing-md: 0.75rem;
   --tll-spacing-lg: 1rem;
   --tll-spacing-xl: 1.5rem;
   --tll-spacing-2xl: 2rem;
   --tll-spacing-3xl: 3rem;

   /* ==========================================================================
      SHADOW SYSTEM
      ========================================================================== */

   /* Shadow Scale */
   --tll-shadow-sm: 0 0.125rem 0.25rem rgb(0, 0, 0, 0.075);
   --tll-shadow: 0 1px 3px 0 rgb(0, 0, 0, 0.1), 0 1px 2px 0 rgb(0, 0, 0, 0.06);
   --tll-shadow-md: 0 0.25rem 0.5rem rgb(0, 0, 0, 0.1);
   --tll-shadow-lg: 0 0.5rem 1rem rgb(0, 0, 0, 0.15);
   --tll-shadow-xl: 0 1rem 2rem rgb(0, 0, 0, 0.2);
   --tll-shadow-2xl: 0 25px 50px -12px rgb(0, 0, 0, 0.25);
   --tll-shadow-inner: inset 0 2px 4px 0 rgb(0, 0, 0, 0.06);

   /* Extended Shadow System */
   --tll-shadow-md-extended: 0 4px 6px -1px rgb(0, 0, 0, 0.1), 0 2px 4px -1px rgb(0, 0, 0, 0.06);
   --tll-shadow-lg-extended: 0 10px 15px -3px rgb(0, 0, 0, 0.1), 0 4px 6px -2px rgb(0, 0, 0, 0.05);
   --tll-shadow-xl-extended: 0 20px 25px -5px rgb(0, 0, 0, 0.1), 0 10px 10px -5px rgb(0, 0, 0, 0.04);

   /* Legal Document Shadows */
   --tll-shadow-legal: 0 4px 6px -1px rgb(0, 0, 0, 0.1), 0 2px 4px -1px rgb(0, 0, 0, 0.06);
   --tll-shadow-premium: 0 20px 25px -5px rgb(0, 0, 0, 0.1), 0 10px 10px -5px rgb(0, 0, 0, 0.04);

   /* ==========================================================================
      BORDER RADIUS SYSTEM
      ========================================================================== */

   /* Border Radius Scale */
   --tll-radius-sm: 0.25rem;
   --tll-radius: 0.375rem;
   --tll-radius-md: 0.5rem;
   --tll-radius-lg: 0.75rem;
   --tll-radius-xl: 1rem;
   --tll-radius-full: 9999px;

   /* Alternative Border Radius */
   --tll-border-radius-sm: 0.25rem;
   --tll-border-radius-md: 0.375rem;
   --tll-border-radius-lg: 0.5rem;
   --tll-border-radius-xl: 0.75rem;
   --tll-border-radius-xxl: 1rem;

   /* ==========================================================================
      TRANSITION SYSTEM
      ========================================================================== */

   /* Transition Timings */
   --tll-transition-fast: 0.15s ease-in-out;
   --tll-transition-normal: 0.3s ease-in-out;
   --tll-transition-slow: 0.5s ease-in-out;
   --tll-transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

   /* ==========================================================================
      LAYOUT SYSTEM
      ========================================================================== */

   /* Layout Dimensions */
   --tll-sidebar-width: 280px;
   --tll-header-height: 64px;
   --tll-content-max-width: 1200px;
   --tll-container-padding: 1rem;

   /* Z-Index Scale */
   --tll-z-dropdown: 1000;
   --tll-z-sticky: 1020;
   --tll-z-fixed: 1030;
   --tll-z-modal-backdrop: 1040;
   --tll-z-modal: 1050;
   --tll-z-popover: 1060;
   --tll-z-tooltip: 1070;

   /* ==========================================================================
      RESPONSIVE BREAKPOINTS
      ========================================================================== */

   /* Custom Breakpoints (matching Bootstrap) */
   --tll-breakpoint-xs: 0;
   --tll-breakpoint-sm: 576px;
   --tll-breakpoint-md: 768px;
   --tll-breakpoint-lg: 992px;
   --tll-breakpoint-xl: 1200px;
   --tll-breakpoint-xxl: 1400px;
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
   :root {
      /* Dark mode color overrides */
      --tll-legal-text-color: #e5e7eb;
      --tll-legal-heading-color: #f9fafb;
      --tll-legal-light-gray: #374151;

      /* Dark mode theme adjustments */
      --tll-primary: #f9fafb;
      --tll-secondary: #e5e7eb;
      --tll-light: #1f2937;
      --tll-lighter: #111827;
   }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
   :root {
      /* Reduce motion for accessibility */
      --tll-transition-fast: 0.01s ease-in-out;
      --tll-transition-normal: 0.01s ease-in-out;
      --tll-transition-slow: 0.01s ease-in-out;
      --tll-transition-bounce: 0.01s ease-in-out;
   }
}