/* ExtraExam — Shared design tokens (Phase 5) */
:root {
    /* Brand colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-teal: #14b8a6;
    --accent-teal-dark: #0d9488;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);

    /* Surfaces */
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Shape & depth */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 16px 48px rgba(79, 70, 229, 0.15);

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-section: 5rem;
    --nav-height: 70px;

    /* Motion */
    --transition-fast: 0.2s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.3s ease;

    /* Section tints (board flow) */
    --tint-board: #eef2ff;
    --tint-class: #fef9c3;
    --tint-subject: #d1fae5;
    --tint-chapter: #f0f9ff;
}

/* Base reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

a {
    color: var(--primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Utility */
.text-primary-brand {
    color: var(--primary) !important;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-white-section {
    background-color: var(--bg-white);
}

.section-spacing {
    padding: var(--spacing-section) 0;
}

.section-spacing-sm {
    padding: var(--spacing-xl) 0;
}
