/**
 * ZEP-RE Academy brand tokens.
 *
 * Custom properties only, so loading this on every page changes nothing by itself. Moodle
 * pages get it from local_academy_before_standard_html_head(); academy stylesheets read
 * the colours and fonts from here instead of repeating the hex values.
 */

:root {
    /* Brand: the exact values the login, sign-up and eBook reader pages use. */
    --academy-primary: #0a5a82;
    --academy-primary-dark: #084466;
    --academy-accent: #d4a507;
    --academy-accent-dark: #b8910a;
    --academy-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* ========================================
       COLOR PALETTE
       ======================================== */

    /* Primary Colors - Teal/Blue family */
    --color-primary-50: #e6f3f7;
    --color-primary-100: #cce7ef;
    --color-primary-200: #99cfdf;
    --color-primary-300: #66b7cf;
    --color-primary-400: #339fbf;
    --color-primary-500: #0a5a82;
    --color-primary-600: #084b6b;
    --color-primary-700: #063c55;
    --color-primary-800: #042d40;
    --color-primary-900: #021e2a;

    /* Secondary Colors - Dark Blue family */
    --color-secondary-50: #e8ebef;
    --color-secondary-100: #d1d7df;
    --color-secondary-200: #a3afbf;
    --color-secondary-300: #75879f;
    --color-secondary-400: #475f7f;
    --color-secondary-500: #1d3557;
    --color-secondary-600: #172a46;
    --color-secondary-700: #122034;
    --color-secondary-800: #0c1523;
    --color-secondary-900: #060b11;

    /* Accent Colors - Gold family */
    --color-accent-50: #fdf8e6;
    --color-accent-100: #fbf1cd;
    --color-accent-200: #f7e39b;
    --color-accent-300: #f3d569;
    --color-accent-400: #efc737;
    --color-accent-500: #ba9607;
    --color-accent-600: #957806;
    --color-accent-700: #705a04;
    --color-accent-800: #4a3c03;
    --color-accent-900: #251e01;

    /* Semantic Colors */
    --color-success-50: #ecfdf5;
    --color-success-100: #d1fae5;
    --color-success-500: #10b981;
    --color-success-600: #059669;
    --color-success-700: #047857;

    --color-error-50: #fef2f2;
    --color-error-100: #fee2e2;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    --color-error-700: #b91c1c;

    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;

    --color-info-50: #eff6ff;
    --color-info-100: #dbeafe;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;

    /* Neutral Colors - Slate family */
    --color-neutral-50: #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e1;
    --color-neutral-400: #94a3b8;
    --color-neutral-500: #64748b;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;

    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-dark: var(--color-secondary-500);
    --color-bg-darker: var(--color-neutral-800);

    /* Text Colors */
    --color-text-primary: var(--color-neutral-900);
    --color-text-secondary: var(--color-neutral-600);
    --color-text-tertiary: var(--color-neutral-500);
    --color-text-inverse: #ffffff;
    --color-text-link: var(--color-primary-500);
    --color-text-link-hover: var(--color-primary-600);

    /* Border Colors */
    --color-border-light: var(--color-neutral-200);
    --color-border-default: var(--color-neutral-300);
    --color-border-dark: var(--color-neutral-400);

    /* ========================================
       TYPOGRAPHY
       ======================================== */

    /* Font Families */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-family-heading: var(--font-family-base);
    --font-family-mono: 'Fira Code', 'Consolas', monospace;

    /* Font Sizes - Using modular scale (1.25 ratio) */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* ========================================
       SPACING
       ======================================== */

    /* Spacing Scale - 4px base unit */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* ========================================
       BORDERS & RADIUS
       ======================================== */

    --border-width-thin: 1px;
    --border-width-default: 2px;
    --border-width-thick: 4px;

    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-default: 0.5rem; /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;

    /* ========================================
       SHADOWS
       ======================================== */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-default: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* ========================================
       TRANSITIONS
       ======================================== */

    --transition-fast: 150ms ease;
    --transition-default: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* ========================================
       Z-INDEX SCALE
       ======================================== */

    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ========================================
       LAYOUT
       ======================================== */

    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;

    /* ========================================
       COMPONENT TOKENS
       ======================================== */

    /* Buttons */
    --btn-padding-x: var(--space-4);
    --btn-padding-y: var(--space-3);
    --btn-font-size: var(--font-size-base);
    --btn-font-weight: var(--font-weight-semibold);
    --btn-radius: var(--radius-default);
    --btn-min-height: 44px;

    /* Inputs */
    --input-padding-x: var(--space-4);
    --input-padding-y: var(--space-3);
    --input-font-size: var(--font-size-base);
    --input-radius: var(--radius-default);
    --input-border-color: var(--color-border-default);
    --input-focus-ring: 0 0 0 3px rgba(10, 90, 130, 0.2);

    /* Cards */
    --card-padding: var(--space-6);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --card-border: 1px solid var(--color-border-light);

    /* Header/Navigation */
    --header-height: 64px;
    --nav-link-padding: var(--space-3) var(--space-4);
}
