﻿/* ============================================================
   TABLE OF CONTENTS
   ------------------------------------------------------------
   FOUNDATION      Google Fonts · CSS Variables · Reset & Base
   LAYOUT          Header · Ticker · Page Grid · Sidebar ·
                   Content Area · Footer
   COMPONENTS      Cards · Tables · Selects
   PAGE: HOME      Team Photo · Map
   INTERACTION     Hamburger & Mobile Menu
   UTILITIES
   RESPONSIVE      Mobile Responsive (<=800px) overrides
   ============================================================ */

/* ============================================================
   FOUNDATION
   ============================================================ */

/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --brand-dark: #0a1628;
    --brand-navy: #0f2445;
    --brand-blue: #1a56a0;
    --brand-accent: #e8a020;
    --brand-red: red;
    --brand-dark-red: #750B20;
    --sidebar-bg: #eaf4fd;
    --sidebar-width: 200px;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-radius: 8px;
    --card-shadow: 0 1px 4px rgba(0,0,0,0.08);
    --header-h: 100px;
    --col-even: #eaf4fd;
    --col-odd: #ffffff;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --text-link: #1a56a0;
    --border: #e2e8f0;
    --th-color: #374151;
    --ticker-bg: #1a56a0;
    --ticker-h: 38px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { background: var(--body-bg); }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text-main);
    min-width: 1090px;
    max-width: 1280px;
    width: calc(100% - 14px);
    margin: 0 auto;
    background: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
        text-decoration: underline;
        color: var(--brand-accent);
}

img {
    display: block;
    max-width: 100%;
    border: 0;
    border-radius: var(--card-radius);
}

img.not-rounded {border-radius:0}
img.w-fixed {max-width:none}

input[type="text"] {
    padding: 5px 5px;
    border-radius: 5px;
    border: 1px solid #b8cce0;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

input[type="text"]::placeholder { color: #9ab0c8; }
input[type="text"]:focus { border-color: var(--brand-blue); }

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

/* ============================================================
   HEADER
   ============================================================ */
#header {
    position: relative;
    width: 100%;
    height: var(--header-h);
    background: linear-gradient(180deg, #2a6bb5 0%, #1a4f8a 50%, #0f3570 100%);
    display: flex;
    align-items: center;
    z-index: 20;
}

#headerLeft {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#logoWrap {
    margin-top: 5px;
    margin-bottom: -4px; /*Needs to be negative at the sport selector has some intrinsic padding*/
}

#headerRight {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.banners {
    display: flex;
    height: var(--header-h);
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.sport-selector {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: transparent;
    white-space: nowrap;
    appearance: auto;
    outline: none;
    max-width: calc(var(--sidebar-width) - 20px);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
    text-align: center;
}

select.sport-selector:hover { opacity: 0.85; }

select.sport-selector option {
    background: var(--brand-navy);
    color: white;
    text-shadow: none;
    font-size: 13px;
    text-align: center;
}

/* ============================================================
   BLOCK TICKER
   ============================================================ */


.block.block-ticker .block-title {
    background: linear-gradient(180deg, #FEFCF6 0%, #F0CD4B 100%);
    color: var(--brand-dark);
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

#blockTicker .block-title > span:first-child { color: var(--brand-dark-red); }
#blockTicker .block-title a { color: var(--brand-dark); }

#blockTicker .block-title a:hover {
        color: var(--brand-navy);
        text-decoration: underline;
}

/* ============================================================
   PAGE GRID
   ============================================================ */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 10px;
    width: 100%;
    background: var(--body-bg);
    min-height: 600px;
    margin-top: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.main-content { min-width: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */

/* "Logged in as" sits inside the Account card body */
.menu-logged-in-as {
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.menu-logged-in-as a {
        display: block;
        color: #4a6080;
        font-size: 12px;
        line-height: 1.6;
}

.menu-logged-in-as a:first-child {
            font-weight: 600;
            font-size: 13px;
            color: var(--brand-navy);
}

.menu-logged-in-as a:hover {
            color: var(--brand-accent);
            text-decoration: none;
}

/* Sidebar nav link styles (scoped to avoid affecting other block-body elements) */
.sidebar .block-body { padding: 0; }

.sidebar .block-body a {
        display: block;
        color: #2c4a6e;
        font-size: 13px;
        padding: 5px 10px;
        transition: background 0.15s, color 0.15s;
        line-height: 1.4;
}

.sidebar .block-body a:hover {
            background: var(--col-even);
            color: var(--brand-navy);
            text-decoration: none;
}

.sidebar .block-body a.red { color: var(--brand-red); }
.sidebar .block-body a.red:hover {
                color: #922b21;
                background: #fde8e8;
}

.sidebar .block-body br { display: none; }

    /* Search box inside sidebar block-body */
 .sidebar .block-body.search-box {
        display: flex;
        gap: 6px;
        padding: 6px 6px;
 }

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
}

.sidebar .block-body button:hover { background: var(--brand-navy); }

.sidebar .block-body button {
    flex-shrink: 0;
    padding: 6px 10px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
}

.mobile-register-now-bar { display: none; }

@keyframes blink-register {
    0%, 49% { visibility: visible; }

    50%, 100% { visibility: hidden; }
}

#blockRegister .block-title { justify-content: center; }

#registerNow {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--brand-dark-red);
    animation: blink-register 1s step-end 15;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-columns {
    display: flex;
    gap: 10px;
    padding: 0 0 10px 0;
}

.content-column {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: linear-gradient(180deg, #2a6bb5 0%, #1a4f8a 50%, #0f3570 100%);
    color: rgba(255,255,255,0.7);
    text-align: center;
    height: 40px;
    font-size: 11.5px;
    line-height: 40px;
    border-top: 3px solid var(--brand-accent);
    clear: both;
}

#footer a { color: rgba(255,255,255,0.6); }

#footer a:hover {
            color: var(--brand-accent);
            text-decoration: underline;
}


.cookie-bar {
    background: #f8fafc;
    text-align: center;
    padding: 8px;
    font-size: 11px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.cookie-bar a { color: var(--brand-blue); }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ============================================================
   CARDS
   ============================================================ */
.block {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

    /* Clip only the rounded corners, not the content */
.block > *:first-child { border-radius: var(--card-radius) var(--card-radius) 0 0; }

.block > *:last-child { border-radius: 0 0 var(--card-radius) var(--card-radius); }

.block-title {
    background: var(--card-bg);
    border-bottom: none;
    color: var(--brand-navy);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0 10px;
    min-height: 42px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.block-title:has(+ .block-body) { border-bottom: 2px solid var(--brand-blue); }

.block-title select{
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text-main);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: auto;
    text-align: center
}

.block-title select:focus { border-color: var(--brand-blue); }

.block-title .view-all {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.block-title .view-all a { color: var(--brand-blue); }
.block-title .view-all a:hover { color: var(--brand-dark); }

.block-body {
    background: var(--card-bg);
    padding: 8px;
    font-size: 13px;
    overflow-x: auto;
}

.block-body-text {
    padding: 12px;
    line-height: 1.7;
    font-size: 13.5px;
    text-align: justify;
}

.block-body-text p { margin: 0 0 10px 0; }
.block-body-text p:last-child { margin-bottom: 0; }


/* ============================================================
   TABLES
   ============================================================ */
.block-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    min-width: 0;
}

.block-body table th {
        color: var(--th-color);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 8px 5px;
        text-align: center;
        background: #f8fafc;
        white-space: nowrap;
        border-bottom: 2px solid var(--border);
}

.block-body table tr {
        height: 2em;
        transition: background 0.12s;
}

.block-body table td {
        padding: 6px 5px;
        text-align: center;
        border-bottom: 1px solid #f0f2f5;
        white-space: nowrap;
}

.block-body table tr.even { background: var(--col-even); }
.block-body table tr.odd { background: var(--col-odd); }
.block-body table tr:hover { background: #dbeafe; }
.block-body table a { color: var(--text-link); }


/* ============================================================
   PAGE: HOME
   ============================================================ */

/* ============================================================
   TEAM PHOTO
   ============================================================ */


.caption {
    font-size: 12px;
    color: var(--text-main);
    padding: 6px 10px;
}


/* ============================================================
   INTERACTION
   ============================================================ */

/* ============================================================
   HAMBURGER & MOBILE MENU — JS-driven with .open class
   ============================================================ */

/* Hide the checkbox (leftover, harmless) */
.menu-toggle-input { display: none; }

/* Hamburger button — hidden on desktop */
.hamburger-btn {
    display: none;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s;
}

.hamburger-btn:hover { background: rgba(255,255,255,0.2); }

.hamburger-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: white;
        border-radius: 2px;
}

/* Mobile sport selector bar — hidden on desktop */
.mobile-sport-selector-bar { display: none; }

/* Overlay — hidden by default */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.mobile-menu-overlay.open { display: block; }

/* Close button inside drawer — hidden on desktop */
.mobile-menu-close {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 5px;
    margin: 0 0 10px auto;
    transition: background 0.2s;
    text-align: center;
}

.mobile-menu-close:hover { background: var(--col-even); }

/* Menu open state (mobile) */
.sidebar.open { left: 0 !important; }

/* ============================================================
   UTILITIES
   ============================================================ */

/* ============================================================
   Utility
   ============================================================ */
.displaynone { display: none; }
.red { color: var(--brand-red); }
.bold { font-weight: 600; }
.center { text-align: center; }
.center-parent { margin: 0 auto;}
.right { text-align: right; }
a.red { color: var(--brand-red); }
a.black { color: var(--text-main); }

/* ============================================================
   WIDTH UTILITIES
   ============================================================ */
.ml-auto { margin-left: auto; } /*In a flex container, margin-left: auto absorbs all the available space to the left of the element, effectively pushing it to the far right. It's the flex equivalent of "float right"*/
.w-20 { width: 20px; }
.w-30 { width: 30px; }
.w-45 { width: 45px; }
.w-50 { width: 50px; }
.w-60 { width: 60px; }
.w-70 { width: 70px; }

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 800px) { /* keep 800 in sync with MOBILE_BP in _Layout.cshtml */

    body {
        width: 100%;
        min-width: 0;
    }

    #header { height: 76px; }

    #bannerHeader { display: none; }

    #headerLeft {
        width: calc(100% - 60px);
        height: 76px;
        align-items: flex-start;
        padding-left: 6px;
        justify-content: flex-start;
    }

    #headerLeft img {
            width: 100%;
            max-height: 60px;
            padding-top: 6px;
            object-fit: contain;
            object-position: left;
    }

    #headerRight { display: none; }

    /* Mobile sport bar visible */
    .mobile-sport-selector-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #1a4f8a 0%, #0f3570 100%);
        height: 38px;
        width: 100%;
        border-bottom: 2px solid var(--brand-accent);
    }

    /* Show hamburger */
    .hamburger-btn { display: flex; }

    /* Register bar — full width, shown on mobile when not logged in */
    .mobile-register-now-bar {
        display: flex;
        width: 100%;
        height: var(--ticker-h);
        background: linear-gradient(180deg, #FEFCF6 0%, #F0CD4B 100%);
        justify-content: center;
        align-items: center;
    }

    .mobile-register-now-bar a { text-decoration: none; }

    .mobile-register-now-bar span {
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 1.5px;
            color: var(--brand-dark-red);
            animation: blink-register 1s step-end 15;
    }

    /* layout stacks; sidebar becomes a fixed drawer */
    .layout { display: block; }

    /* content fills full width */
    .main-content {
        display: block;
        width: 100%;
    }

    /* Menu becomes a fixed off-screen drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        z-index: 300;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
        padding: 10px 8px 40px 0;
    }

    /* Show close button inside drawer on mobile */
    .mobile-menu-close { display: block; }

    /* Stack content columns vertically */
    .content-columns {
        flex-direction: column !important;
        gap: 0;
    }

    .content-column  {
            flex: none !important;
            width: 100% !important;
            margin: 0 !important;
    }

    #bannerFooter { display: none; }
}
