/* ============================================================
   ITSO Member Dashboard — Base Stylesheet
   Derived from itsosystems.ca/css/styles.css (keep tokens in sync)
   Dashboard-specific layout and component styles live in index.html
   ============================================================ */

/* === RESET & CUSTOM PROPERTIES === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand colours */
    --red:          #ef4136;
    --red-dark:     #cc2f25;
    --red-faint:    rgba(239, 65, 54, 0.06);

    /* Neutrals */
    --brand-grey:   #9d9fa2;
    --ink:          #111111;
    --ink-2:        #1e1e22;
    --grey:         #5a5a5a;
    --grey-light:   #9d9fa2;
    --border:       #e6e6e7;
    --off-white:    #f7f7f7;
    --white:        #ffffff;

    /* Typography */
    --font-display: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --nav-h:        80px;
    --max-w:        1200px;
    --pad-x:        40px;

    /* Easing */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Focus ring (accessibility) */
    --focus-ring:   0 0 0 3px rgba(239, 65, 54, 0.35);

    /* Board accent colours */
    --board-cornerstone: #0070c9;
    --board-brantford:   #7c3aed;

    /* Dashboard surfaces */
    --sidebar-bg:   #f2f2f4;
    --surface-elevated: #ffffff;

    color-scheme: light dark;
}

/* ── Dark theme overrides ── */
[data-theme="dark"] {
    --ink:          #f4f4f5;
    --ink-2:        #e4e4e8;
    --grey:         #a1a1aa;
    --grey-light:   #71717a;
    --border:       #27272a;
    --off-white:    #18181b;
    --white:        #09090b;
    --red-faint:    rgba(239, 65, 54, 0.12);
    --sidebar-bg:   #111113;
    --surface-elevated: #18181b;

    /* Board accent colours are slightly lighter in dark mode */
    --board-cornerstone: #38bdf8;
    --board-brantford:   #a78bfa;

    color-scheme: dark;
}

/* === BASE === */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* === UTILITIES === */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.text-red { color: var(--red); }

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.22s, color 0.22s, border-color 0.22s,
                transform 0.22s var(--ease-out), box-shadow 0.22s;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: 0 8px 24px rgba(239, 65, 54, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--off-white);
    border-color: var(--grey-light);
}

.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
