/* CSS Variables - Modern Whodunnit System */

:root {
  /* Original Color Preservation */
  --original-brown: #986830;
  --original-dark: #683000;
  
  /* Primary Colors - Detective Theme */
  --primary-bg: #986830;        /* Original brown preserved */
  --primary-dark: #D4A574;      /* Subtle warm orange for readability */
  --primary-light: #B8A080;     /* Lighter variant */
  --primary-lighter: #D4C4B0;   /* Even lighter for backgrounds */
  
  /* Accent Colors */
  --accent-gold: #B8860B;       /* Gold for highlights */
  --accent-yellow: #FFD700;     /* Bright yellow for hover */
  --accent-red: #CC0000;        /* Deep red for alerts */
  --accent-blue: #1E3A8A;       /* Deep blue for headings */
  --accent-green: #2D5016;      /* Dark green for success */
  
  /* Neutral Colors */
  --text-primary: #1A1A1A;      /* Near black for main text */
  --text-secondary: #CCCCCC;    /* Made much lighter gray for better readability */
  --text-light: #FFFFFF;        /* White text on dark */
  --text-muted: #757575;        /* Muted gray */
  
  /* Border Colors */
  --border-color: #D1D5DB;      /* Light gray border */
  --border-hover: #9CA3AF;      /* Darker gray on hover */
  
  /* Background Colors */
  --bg-body: #F5F2ED;           /* Light tan background */
  --bg-card: #FFFFFF;           /* White cards */
  --bg-card-hover: #FBF9F5;     /* Slight hover state */
  --bg-secondary: #F0F0F0;      /* Light gray background */
  --bg-overlay: rgba(0, 0, 0, 0.7); /* Modal overlay */
  
  /* Semantic Colors */
  --success: #2D5016;           /* Dark green */
  --warning: #CC6600;           /* Orange brown */
  --error: #CC0000;             /* Deep red */
  --info: #1E3A8A;              /* Deep blue */
  
  /* Additional color mappings for enhanced features */
  --primary-color: var(--primary-bg);     /* Map to existing primary */
  --accent-color: var(--accent-gold);     /* Map to existing accent */
  --success-color: var(--success);        /* Map to existing success */
  --info-color: var(--info);              /* Map to existing info */
  --bg-tertiary: #F8F8F8;                 /* Very light gray background */
  
  /* Typography */
  --font-primary: 'Georgia', 'Times New Roman', serif;
  --font-secondary: 'Arial', 'Helvetica', sans-serif;
  --font-mono: 'Courier New', 'Courier', 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 */
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Spacing */
  --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 */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-full: 9999px; /* Pill shape */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Z-index layers */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* Dark theme variables */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-bg: #2D2419;
    --primary-dark: #D4A574;
    --text-primary: #E5E5E5;
    --text-secondary: #CCCCCC;
    --bg-body: #1A1410;
    --bg-card: #2D2419;
    --bg-card-hover: #3A3126;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --primary-bg: #000000;
    --primary-dark: #000000;
    --accent-gold: #B8860B;
  }
} 