/* ========================================
   CSS Custom Properties (Variables)
   Professional Academic Portfolio Theme
   ======================================== */

:root {
  /* =========================
     Color Palette - Modern Lighter Mode
     ========================= */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;
  --color-orange: #f59e0b;
  --color-cyan: #06b6d4;
  --color-indigo: #6366f1;
  
  /* Background Colors - Lighter */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f3f4f6;
  --bg-sidebar: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
  --bg-sidebar-solid: #3b82f6;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.18);
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-primary: #ffffff;
  --text-on-sidebar: rgba(255, 255, 255, 0.95);
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  --border-color-focus: var(--color-primary-light);
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);
  
  /* =========================
     Typography
     ========================= */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-family-heading: 'Poppins', var(--font-family-primary);
  --font-family-mono: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* =========================
     Spacing
     ========================= */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* =========================
     Layout
     ========================= */
  --sidebar-width: 300px;
  --sidebar-width-collapsed: 0px;
  --content-max-width: 1000px;
  --header-height: 60px;
  
  /* =========================
     Border Radius
     ========================= */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* =========================
     Transitions
     ========================= */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-colors: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
  --transition-transform: transform 250ms ease;
  --transition-all: all 250ms ease;
  
  /* =========================
     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;
}

/* =========================
   Dark Mode Theme
   ========================= */
[data-theme="dark"] {
  /* Background Colors - Modern dark */
  --bg-primary: #0f172a;
  --bg-secondary: #020617;
  --bg-tertiary: #1e293b;
  --bg-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --bg-sidebar-solid: #1e293b;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  /* Border Colors */
  --border-color: #334155;
  --border-color-light: #1e293b;
  
  /* Shadows - Glow effect in dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 0 0 1px rgba(59, 130, 246, 0.1);
  --shadow-card-hover: 0 20px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.2);
  
  /* Brighter primary colors for dark mode */
  --color-primary: #60a5fa;
  --color-primary-light: #93c5fd;
  --color-primary-dark: #3b82f6;
  --color-accent: #34d399;
  
  /* Glass Effect - Dark mode */
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(59, 130, 246, 0.1);
}

/* =========================
   Media Query Variables (via custom properties)
   ========================= */
:root {
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}
