/*
 * Vui Học Tiếng Hàn — EdTech / Language Learning design tokens
 * Import this file after styles.css to apply the light learning theme.
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
    /* Primitive color scale */
    --blue-25: #eef3f6;
    --blue-50: #dde8ef;
    --blue-100: #cadce8;
    --blue-200: #abc6d8;
    --blue-300: #86abc4;
    --blue-500: #28658f;
    --blue-600: #1e527a;
    --blue-700: #174463;
    --blue-800: #12364f;
    --slate-50: #f1f5f6;
    --slate-100: #e2eaee;
    --slate-200: #ccd8de;
    --slate-300: #afc0ca;
    --slate-500: #475569;
    --slate-600: #334155;
    --slate-700: #1e293b;
    --slate-900: #0f172a;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-600: #047857;
    --emerald-700: #065f46;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-700: #b45309;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --white: #f7f9fa;

    /* Semantic color tokens — normal text pairs meet WCAG AA on their surfaces */
    --color-background: #dde8ef;
    --color-background-subtle: var(--blue-25);
    --color-surface: #f1f5f6;
    --color-surface-raised: #f5f7f8;
    --color-surface-selected: var(--blue-100);
    --color-primary: var(--blue-600);
    --color-primary-hover: var(--blue-700);
    --color-primary-subtle: var(--blue-100);
    --color-on-primary: var(--white);
    --color-secondary: #176b83;
    --color-secondary-hover: #11566a;
    --color-accent: var(--emerald-600);
    --color-accent-hover: var(--emerald-700);
    --color-on-accent: var(--white);
    --color-text: var(--slate-900);
    --color-text-secondary: var(--slate-600);
    --color-text-muted: var(--slate-500);
    --color-text-disabled: #94a3b8;
    --color-border: var(--slate-200);
    --color-border-strong: var(--slate-300);
    --color-focus: var(--blue-600);
    --color-success: var(--emerald-600);
    --color-success-subtle: var(--emerald-50);
    --color-warning: var(--amber-700);
    --color-warning-subtle: var(--amber-50);
    --color-danger: var(--red-600);
    --color-danger-subtle: var(--red-50);

    /* Typography — Noto Sans KR includes Hangul, Vietnamese and Latin glyphs */
    --font-sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Segoe UI', Arial, sans-serif;
    --font-main: var(--font-sans);
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --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;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.65;
    --letter-spacing-tight: -0.015em;
    --letter-spacing-normal: 0;

    /* Spacing, radii and elevation */
    --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;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-pill: 9999px;
    --shadow-xs: 0 1px 2px rgb(15 23 42 / 0.04);
    --shadow-sm: 0 2px 7px rgb(24 59 82 / 0.06), 0 1px 2px rgb(15 23 42 / 0.03);
    --shadow-md: 0 8px 22px rgb(24 59 82 / 0.08), 0 2px 6px rgb(15 23 42 / 0.04);
    --shadow-lg: 0 14px 32px rgb(24 59 82 / 0.10), 0 4px 12px rgb(15 23 42 / 0.04);
    --shadow-focus: 0 0 0 3px rgb(30 82 122 / 0.30);
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Existing project aliases — enables a visual migration without logic changes */
    --bg-color: var(--color-background);
    --surface-color: var(--color-surface);
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-secondary);
    --accent-color: var(--color-accent);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-secondary);
    --gradient-main: linear-gradient(135deg, var(--blue-600) 0%, var(--color-secondary) 100%);
    --glass-bg: rgb(241 245 246 / 0.90);
    --glass-border: 1px solid var(--color-border);
}

/* Shared navbar navigation — consistent outlined controls across themed pages. */
.navbar .nav-links a,
.navbar .nav-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    background: var(--color-surface-raised);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active,
.navbar .nav-item:hover,
.navbar .nav-item.active {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
    border-color: var(--blue-300);
    box-shadow: var(--shadow-sm);
}

.navbar .nav-links a.active::after,
.navbar .nav-item.active::after {
    display: none;
}
