html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer.footer {
    flex-shrink: 0;
    position: static; /* important: prevents overlap */
}

/* ============================================================
   FILTER LAYOUT
============================================================ */

.filters {
    margin: 12px 0 14px 0;
    display: grid;
    gap: 10px;
}

.filterRow {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 200px;
}

    .field label {
        font-size: 12px;
        color: #666;
    }

    .field select {
        height: 36px;
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

/* ============================================================
   TABLE STYLES
============================================================ */

table.modern {
    width: 100%;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e7eb; /* optional outer border */
    border-radius: 8px; /* optional */
    overflow: hidden; /* makes radius work */
}

    table.modern th,
    table.modern td {
        text-align: center;
        padding: 10px 8px;
        border-bottom: 1px solid #eee;
    }

    table.modern tbody tr:last-child td {
        border-bottom: none; /* removes the "footer line" look */
    }

/* ============================================================
   BADGES
============================================================ */

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gold {
    background: #fff3c4;
    color: #6a5200;
}

.badge-silver {
    background: #eef2f7;
    color: #3c4a5a;
}

/* ============================================================
   LEAGUE COLORS / LABELS
============================================================ */

/* Winner styling (Results page) */
.winner {
    color: #198754; /* Bootstrap success green */
    font-weight: 600;
}

.leagueBadge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lg-antioch {
    background: #e8f0fe;
    color: #1a4fb3;
}

.lg-vatican {
    background: #fff1f2;
    color: #9f1239;
}

.lg-gv {
    background: #ecfdf5;
    color: #047857;
}

.lg-bv {
    background: #fff7ed;
    color: #9a3412;
}

.lg-default {
    background: #f3f4f6;
    color: #374151;
}

.footer {
    position: static !important;
}

/* ============================================================
   Global background texture (subtle) + readability overlay
   Place bb-texture.png at: wwwroot/img/bb-texture.png
============================================================ */

body {
    min-height: 100vh;
    background-color: #f6f7fb;
    background-image: url('/img/bb-texture.png');
    background-repeat: repeat;
    background-size: 1200px auto; /* tweak up/down depending on how “busy” it feels */
    position: relative;
}

    /* Soft white wash to keep UI crisp on top of the texture */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.82);
        pointer-events: none;
        z-index: 0;
    }

/* Ensures the app UI sits above the overlay */
.site-content {
    position: relative;
    z-index: 1;
}

/* ============================================================
   Brand palette (school red + greys)
============================================================ */

:root {
    --iggy-red: #8a1f2d; /* deep school red */
    --iggy-red-dark: #6f1823; /* hover/active */
    --iggy-red-soft: rgba(138, 31, 45, 0.10);
    --iggy-gray-900: #111827;
    --iggy-gray-600: #4b5563;
    /* premium neutrals */
    --iggy-border: rgba(0,0,0,.06);
    --iggy-shadow-sm: 0 10px 20px rgba(17,24,39,.04);
    --iggy-shadow-md: 0 16px 32px rgba(17,24,39,.08);
    --iggy-radius-lg: 18px;
    --iggy-radius-md: 14px;
}

/* ============================================================
   Upscale page headers (Champions / Hall of Fame style)
============================================================ */

.iggyKicker {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .22em;
    font-weight: 900;
    color: rgba(17,24,39,.55);
    margin-bottom: .2rem;
}

.iggyTitle {
    font-size: clamp(2.1rem, 3vw, 3rem);
    font-weight: 900;
    margin: 0;
    color: #111827;
    line-height: 1.05;
}

.iggySub {
    margin-top: .35rem;
    font-size: 1rem;
}

/* ============================================================
   Navbar: deep red background, white links
============================================================ */

.navbar-iggy {
    background: linear-gradient(135deg, var(--iggy-red), var(--iggy-red-dark)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

    .navbar-iggy .navbar-brand,
    .navbar-iggy .nav-link,
    .navbar-iggy .navbar-text {
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .navbar-iggy .nav-link {
        border-radius: 10px;
        padding: .45rem .7rem;
        margin-right: .15rem;
    }

        .navbar-iggy .nav-link:hover,
        .navbar-iggy .nav-link:focus {
            background: rgba(255, 255, 255, 0.14);
            color: #fff !important;
        }

        .navbar-iggy .nav-link.active,
        .navbar-iggy .nav-link[aria-current="page"] {
            background: rgba(255, 255, 255, 0.22);
            color: #fff !important;
        }

    /* Keep dropdown readable (white menu) */
    .navbar-iggy .dropdown-menu {
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    }

    .navbar-iggy .dropdown-item:hover {
        background: var(--iggy-red-soft);
    }

/* Sticky navbar polish (subtle) */
.navbar-iggy-sticky {
    box-shadow: 0 10px 24px rgba(17,24,39,.10);
    backdrop-filter: blur(8px);
}


/* ============================================================
   Global “pop”: subtle red focus ring + primary buttons
============================================================ */

.btn-outline-primary {
    border-color: var(--iggy-red);
    color: var(--iggy-red);
}

    .btn-outline-primary:hover {
        background: var(--iggy-red);
        border-color: var(--iggy-red);
        color: #fff;
    }

.btn-primary {
    background: var(--iggy-red);
    border-color: var(--iggy-red);
}

    .btn-primary:hover {
        background: var(--iggy-red-dark);
        border-color: var(--iggy-red-dark);
    }

.form-control:focus,
.form-select:focus,
.btn:focus {
    box-shadow: 0 0 0 .2rem rgba(138, 31, 45, 0.18) !important;
    border-color: rgba(138, 31, 45, 0.55) !important;
}

/* ============================================================
   Global elegance primitives
============================================================ */

.card.shadow-sm {
    border: 1px solid var(--iggy-border);
    border-radius: var(--iggy-radius-lg);
}

/* Optional: slightly tighter default card padding on home */
.home-card .card-body {
    padding: 16px;
}

/* A subtle “glass” look that works with your texture + overlay */
.iggy-glass {
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(7px);
    border: 1px solid var(--iggy-border);
    border-radius: var(--iggy-radius-lg);
}

/* ============================================================
   HOME: League Update / Banner (premium notice)
============================================================ */

/* Keep .homeBanner as alias for backwards compatibility */
.homeBanner,
.league-update {
    position: relative;
    border-radius: var(--iggy-radius-lg);
    padding: 18px 18px 16px 18px;
    border: 1px solid var(--iggy-border);
    background: linear-gradient(180deg, rgba(138,31,45,.14), rgba(255,255,255,.82));
    backdrop-filter: blur(7px);
    box-shadow: 0 18px 40px rgba(17,24,39,.08);
    overflow: hidden;
}

    /* Left accent bar */
    .homeBanner::before,
    .league-update::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: linear-gradient(180deg, rgba(138,31,45,.78), rgba(138,31,45,.50));
    }

/* Title */
.homeBannerTitle,
.league-update-title {
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

/* Kicker (optional for new component) */
.league-update-kicker {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(0,0,0,.55);
    margin-bottom: 6px;
}

/* Lines list */
.homeBannerList,
.league-update-list {
    padding-left: 18px;
    margin-bottom: 0;
    color: rgba(0,0,0,.78);
}

    .homeBannerList li,
    .league-update-list li {
        margin-bottom: 6px;
    }

/* Meta line */
.homeBannerMeta,
.league-update-meta {
    color: rgba(0,0,0,.55);
    font-size: .85rem;
}

/* ============================================================
   HOME: Header badge icon
============================================================ */

.badgeIcon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(138,31,45,.10);
    border: 1px solid rgba(138,31,45,.18);
    line-height: 1;
}

/* ============================================================
   HOME: Quick tiles
============================================================ */

.quickTile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid var(--iggy-border);
    border-radius: var(--iggy-radius-lg);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--iggy-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    min-height: 76px;
}

    .quickTile:hover {
        border-color: rgba(138,31,45,.22);
        box-shadow: var(--iggy-shadow-md);
        transform: translateY(-2px);
    }

.quickIcon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.qi-schedule {
    background: rgba(59,130,246,.10);
}

.qi-standings {
    background: rgba(16,185,129,.10);
}

.qi-results {
    background: rgba(168,85,247,.10);
}

.qi-stats {
    background: rgba(245,158,11,.12);
}

.quickBody {
    min-width: 0;
}

.quickTitle {
    font-weight: 900;
    line-height: 1.1;
}

.quickSub {
    color: rgba(0,0,0,.55);
    font-size: .92rem;
    margin-top: 2px;
}

.quickChevron {
    margin-left: auto;
    color: rgba(0,0,0,.30);
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}

/* ============================================================
   HOME: Upcoming Events (compact list)
   Tweaks per feedback:
   - Less bold overall (event is not bold)
   - Smaller gap between date/time and description
============================================================ */

.eventCompact {
    border: 1px solid var(--iggy-border);
    border-radius: var(--iggy-radius-md);
    overflow: hidden;
    background: rgba(255,255,255,.65);
}

.eventRow {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* was 14px */
    padding: 10px 12px;
}

    .eventRow + .eventRow {
        border-top: 1px solid var(--iggy-border);
    }

.eventWhen {
    width: 150px; /* was 170px */
    flex: 0 0 auto;
    line-height: 1.15;
}

.eventWhenTop {
    font-weight: 700; /* was 800 */
}

.eventWhenSub {
    margin-top: 2px;
    font-size: .86rem;
    color: rgba(0,0,0,.55);
}

/* Event description: NOT bold */
.eventDesc {
    font-weight: 500; /* was 800 */
    line-height: 1.2;
    min-width: 0;
    color: rgba(0,0,0,.85);
}

/* Mobile: stack time over description without huge padding */
@media (max-width: 576px) {
    .eventRow {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
    }

    .eventWhen {
        width: auto;
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .eventWhenSub {
        margin-top: 0;
    }
}

/* ============================================================
   HOME: Links buttons (brand-consistent)
============================================================ */

.btn-iggy-primary {
    background: linear-gradient(180deg, var(--iggy-red), var(--iggy-red-dark));
    border: 1px solid rgba(0,0,0,.10);
    color: #fff;
    font-weight: 800;
    border-radius: var(--iggy-radius-md);
    padding: 11px 14px;
}

    .btn-iggy-primary:hover {
        color: #fff;
        filter: brightness(1.02);
    }

.btn-iggy-secondary {
    background: rgba(138,31,45,.08);
    border: 1px solid rgba(138,31,45,.22);
    color: rgba(138,31,45,.95);
    font-weight: 800;
    border-radius: var(--iggy-radius-md);
    padding: 11px 14px;
}

    .btn-iggy-secondary:hover {
        color: rgba(138,31,45,.95);
        background: rgba(138,31,45,.12);
    }

.btn-iggy-tertiary {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.10);
    color: rgba(0,0,0,.70);
    font-weight: 700;
    border-radius: var(--iggy-radius-md);
    padding: 11px 14px;
}

    .btn-iggy-tertiary:hover {
        color: rgba(0,0,0,.80);
        background: rgba(255,255,255,.90);
    }

.footer-seal {
    line-height: 1;
}

    .footer-seal #siteseal {
        display: inline-block;
    }