/* 2025 Design System - Design Tokens */

:root {
  /* ================================
     2025 COLOR PALETTE
     ================================ */
  
  /* Primary Colors - Deep Teal Family */
  --primary-900: #1A4A4A;
  --primary-800: #225555;
  --primary-700: #2C5F5F;
  --primary-600: #3A7575;
  --primary-500: #4A8A8A;
  --primary-400: #5FA0A0;
  --primary-300: #7BB5B5;
  --primary-200: #9DCBCB;
  --primary-100: #C6E0E0;
  --primary-50: #E5F3F3;
  --primary-25: #F2F9F9;

  /* Secondary Colors - Warm Sand Family */
  --secondary-900: #8B6914;
  --secondary-800: #A67C1A;
  --secondary-700: #C08F20;
  --secondary-600: #D4A73D;
  --secondary-500: #E6D7C3;
  --secondary-400: #EADDC9;
  --secondary-300: #EDE3CF;
  --secondary-200: #F1E9D5;
  --secondary-100: #F5EFDB;
  --secondary-50: #F9F5E1;

  /* Accent Colors - Living Coral Family */
  --accent-900: #CC2D14;
  --accent-800: #E63920;
  --accent-700: #FF4729;
  --accent-600: #FF5A3F;
  --accent-500: #FF6B47;
  --accent-400: #FF7D5C;
  --accent-300: #FF9071;
  --accent-200: #FFA286;
  --accent-100: #FFB49B;
  --accent-50: #FFC7B0;

  /* Neutral Colors - Warm Grays */
  --neutral-900: #2D2D2D;
  --neutral-800: #3D3D3D;
  --neutral-700: #4D4D4D;
  --neutral-600: #6D6D6D;
  --neutral-500: #8D8D8D;
  --neutral-400: #ADADAD;
  --neutral-300: #CDCDCD;
  --neutral-200: #EDEDED;
  --neutral-100: #F5F5F5;
  --neutral-50: #FAFAFA;

  /* Semantic Colors */
  --success-700: #7A9A7A;
  --success-600: #7A9A7A;
  --success-500: #9CAF88;
  --success-400: #B2C09F;
  --success-200: #D4E4C8;
  --success-100: #E8F0E3;

  --warning-700: #D39E00;
  --warning-600: #D39E00;
  --warning-500: #F59E0B;
  --warning-400: #F7B73C;
  --warning-200: #FCEEB3;
  --warning-100: #FEF3CD;

  --error-700: #DC2626;
  --error-600: #DC2626;
  --error-500: #EF4444;
  --error-400: #F87171;
  --error-200: #FECACA;
  --error-100: #FEE2E2;

  --info-700: #0284C7;
  --info-600: #0284C7;
  --info-500: #0EA5E9;
  --info-400: #38BDF8;
  --info-200: #BAE6FD;
  --info-100: #E0F2FE;

  /* Surface Colors */
  --surface-primary: #FFFFFF;
  --surface-secondary: var(--neutral-50);
  --surface-tertiary: var(--neutral-100);

  /* Text Colors */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-tertiary: var(--neutral-600);
  --text-inverse: var(--neutral-50);

  /* Border Colors */
  --border-primary: var(--neutral-300);
  --border-secondary: var(--neutral-200);
  --border-tertiary: var(--neutral-100);

  /* ================================
     TYPOGRAPHY SYSTEM
     ================================ */
  
  /* Font Families */
  --font-family-primary: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-family-mono: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

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

  /* Spacing Aliases for consistency */
  --spacing-1: var(--space-1);
  --spacing-2: var(--space-2);
  --spacing-3: var(--space-3);
  --spacing-4: var(--space-4);
  --spacing-5: var(--space-5);
  --spacing-6: var(--space-6);
  --spacing-8: var(--space-8);
  --spacing-10: var(--space-10);
  --spacing-12: var(--space-12);
  --spacing-16: var(--space-16);
  --spacing-20: var(--space-20);
  --spacing-24: var(--space-24);

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

  /* ================================
     SHADOWS
     ================================ */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);

  /* Colored Shadows */
  --shadow-primary: 0 4px 12px rgba(44, 95, 95, 0.15);
  --shadow-accent: 0 4px 12px rgba(255, 107, 71, 0.15);

  /* ================================
     ANIMATION & TRANSITIONS
     ================================ */
  
  /* Duration */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  /* Easing Functions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Common Transitions */
  --transition-fast: all var(--duration-fast) var(--ease-out);
  --transition-normal: all var(--duration-normal) var(--ease-out);
  --transition-slow: all var(--duration-slow) var(--ease-out);
  --transition-smooth: all var(--duration-normal) var(--ease-out);
  --transition-colors: color var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);

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

  /* ================================
     BREAKPOINTS
     ================================ */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ================================
     COMPONENT SPECIFIC
     ================================ */
  
  /* Button Heights */
  --button-height-sm: 2rem;
  --button-height-md: 2.5rem;
  --button-height-lg: 3rem;

  /* Input Heights */
  --input-height-sm: 2rem;
  --input-height-md: 2.5rem;
  --input-height-lg: 3rem;

  /* Card Properties */
  --card-padding: var(--space-6);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-md);

  /* Header Properties */
  --header-height: 4rem;
  --header-z-index: var(--z-index-sticky);

  /* Container Properties */
  --container-max-width: 1200px;
  --container-padding-mobile: var(--space-4);
  --container-padding-tablet: var(--space-8);
  --container-padding-desktop: var(--space-12);

  /* Foundation Aliases */
  --font-primary: var(--font-family-primary);
  --font-display: var(--font-family-display);
  --font-mono: var(--font-family-mono);
  
  --font-weight-normal: var(--font-weight-regular);
  --line-height-comfortable: var(--line-height-relaxed);
  
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-tertiary: var(--text-tertiary);
  --color-text-heading: var(--text-primary);
  --color-surface-primary: var(--surface-primary);
  --color-surface-secondary: var(--surface-secondary);
  --color-surface-tertiary: var(--surface-tertiary);
  --color-border: var(--border-primary);
  --color-primary-3: var(--primary-300);
  --color-primary-4: var(--primary-400);
  --color-primary-6: var(--primary-600);
  --color-primary-7: var(--primary-700);
  
  --shadow-focus: 0 0 0 3px var(--primary-100);
  --transition-ease: var(--ease-out);
  --transition-fast: var(--transition-smooth);
  --transition-medium: var(--transition-normal);
}

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

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visually Hidden but Focusable */
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus Visible Enhancement */
.focus-visible-enhancement:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(74, 138, 138, 0.1);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
