/* Theme Variables and Base Styles */

:root {
    /* Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a7a99;
    --primary-light: #6b8cae;
    --secondary-color: #764ba2;

    /* Neutrals */
    --bg-light: #f8f9fa;
    --bg-lighter: #e8eef3;
    --bg-gradient: linear-gradient(135deg, #e8eef3 0%, #d4dce5 100%);
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --border-light: #dee2e6;

    /* Skill Type Colors */
    --skill-color: #667eea;
    --knowledge-color: #f093fb;
    --language-color: #4facfe;
    --hard-skill-color: #fa709a;

    /* Status Colors */
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 0.95rem;
    --font-size-sm: 0.85rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-xxl: 2rem;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

/* Typography */
h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: 10px;
}

h2 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 15px;
}

h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Match Type Colors */
:root {
    --exact-match-color: #5bc0de;
    --disambiguated-color: #f0d95e;
    --llm-term-color: #9b59b6;
    --manual-esco-color: #4caf50;
    --manual-not-esco-color: #ff9800;
}

/* Legend Colors for Match Types */
.legend-color.exact-match {
    background: var(--exact-match-color);
}

.legend-color.disambiguated {
    background: var(--disambiguated-color);
}

.legend-color.llm-term {
    background: var(--llm-term-color);
}

.legend-color.manual-esco {
    background: var(--manual-esco-color);
}

.legend-color.manual-not-esco {
    background: var(--manual-not-esco-color);
}
