/* Design Tokens and Theme Variables */

:root {
    /* System Font Stack for minimal dependencies and perf */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

    /* Base Colors - Default Dark Mode */
    --bg-primary: #0a0a0a;
    --bg-secondary: #171717;
    --bg-tertiary: #262626;

    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;

    --accent-color: #3b82f6;
    /* A subtle, modern blue */
    --accent-hover: #60a5fa;
    --accent-muted: rgba(59, 130, 246, 0.1);

    --border-color: #262626;
    --border-hover: #404040;

    /* Semantic Colors */
    --skill-bg: var(--bg-tertiary);
    --skill-text: var(--text-primary);

    /* Spacing System (using 8px base grid) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-24: 6rem;
    /* 96px */

    /* Container */
    --container-max: 900px;
    --container-padding: var(--space-6);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --trans-fast: 150ms ease-in-out;
    --trans-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index mapping */
    --z-header: 100;
    --z-modal: 200;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;

    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #a3a3a3;

    /* Slightly darker accent for light mode contrast */
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;

    --border-color: #e5e5e5;
    --border-hover: #d4d4d4;

    --skill-bg: #e5e5e5;
    --skill-text: var(--text-primary);
}