:root {
  color-scheme: light dark;

  /* Colors - Light theme (Professional Blue) */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #0ea5e9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-heading: #1e293b;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-muted: #f1f5f9;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;

  /* Spacing scale */
  --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;

  /* Typography scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Animation */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Avatar settings */
  --avatar-zoom: 1.5;
  --avatar-focus-x: 55%;
  --avatar-focus-y: 15%;

  /* Social icons */
  --social-size: 44px;
  --social-gap: 10px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-accent: #0ea5e9;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-heading: #f1f5f9;
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-border: #334155;
  --color-border-muted: #475569;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;

  /* Avatar settings stay the same for dark theme */
  --avatar-zoom: 1.5;
  --avatar-focus-x: 55%;
  --avatar-focus-y: 15%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-primary: #60a5fa;
    --color-primary-hover: #3b82f6;
    --color-accent: #0ea5e9;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-heading: #f1f5f9;
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-hover: #334155;
    --color-border: #334155;
    --color-border-muted: #475569;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    
    /* Avatar settings stay the same for auto dark theme */
    --avatar-zoom: 1.5;
    --avatar-focus-x: 55%;
    --avatar-focus-y: 15%;
  }
}

@media (max-width: 480px) {
  :root {
    --avatar-zoom: 1.45;
    --avatar-focus-x: 55%;
    --avatar-focus-y: 17%;
  }
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}
