/* ============================================================
   RefAssign — shared header/nav/footer "chrome".
   Matches the Gamedata Solutions corporate design system used by
   scoresheets.ca / matrixBuilder / draftScheduler: dark header with
   logo + a permanent hamburger dropdown menu (all viewport widths,
   not a mobile-only collapse), a version badge, and a copyright/
   version footer.
   Loaded before each page's own <style> block, so a page can still
   override a single property (e.g. .header-container's max-width,
   which intentionally differs per page to match that page's content
   width) via the normal cascade.
   ============================================================ */

.site-header {
    background-color: var(--header-bg, #1a1a2e);
    color: var(--header-text, #ffffff);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 15px;
}
.logo-section { display: flex; align-items: center; gap: 12px; }
.logo-section img { height: 40px; width: auto; display: block; }
.logo-section .logo-text { display: flex; flex-direction: column; }
.logo-section .company-name { font-size: 16px; font-weight: 700; }
.logo-section .product-name { font-size: 12px; color: #b0b0b0; }

.header-right { display: flex; align-items: center; gap: 12px; }
.version-badge {
    font-size: 11px;
    padding: 4px 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #b0b0b0;
    white-space: nowrap;
}

/* Hamburger + dropdown menu — always on, all viewport widths */
.hamburger-menu { position: relative; }
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hamburger-btn span { display: block; width: 22px; height: 3px; background-color: #ffffff; border-radius: 2px; transition: 0.2s; }
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #333333);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-dark, rgba(0,0,0,0.2));
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s;
    overflow: hidden;
    z-index: 1001;
}
.nav-menu.active { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-menu-section { padding: 12px; border-bottom: 1px solid var(--border-color, #dddddd); }
.nav-menu-section:last-child { border-bottom: none; }
.nav-menu-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #999999);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0 4px;
}
.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: var(--text-primary, #333333);
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.nav-menu-item:hover { background-color: var(--bg-tertiary, #f9f9f9); }
.nav-menu-item.active { background-color: var(--accent-primary, #c8102e); color: #ffffff; }
.nav-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-menu-user { font-size: 12px; color: var(--text-secondary, #666666); padding: 4px 4px 8px; }

/* Footer */
.site-footer { background-color: var(--footer-bg, #1a1a2e); color: var(--footer-text, #ffffff); padding: 16px 20px; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copyright { font-size: 12px; color: #b0b0b0; }
.footer-version { font-size: 11px; color: #808080; }
.footer-version a { color: #808080; }
