/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #111827;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER
========================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dbe2ea;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    width: 62px;
    height: 62px;
    border: 2px solid #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    font-weight: 600;
    color: #111827;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

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

.schedule-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.schedule-page-header {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 24px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.schedule-page-header h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #0f172a;
}

.schedule-page-header p {
    color: #475569;
    font-size: 1rem;
    max-width: 860px;
}

/* =========================
   TABS CARD
========================= */

.schedule-tabs-card {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.tab {
    appearance: none;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #111827;
    padding: 12px 18px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab:hover {
    background: #e2e8f0;
}

.tab.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* =========================
   SECTIONS
========================= */

.schedule-section {
    display: block;
}

.hidden {
    display: none;
}

/* =========================
   DATE HEADERS / CONTENT
========================= */

.schedule-section h2,
.schedule-section h3,
#pastGames h2,
#pastGames h3,
#upcomingGames h2,
#upcomingGames h3,
#playoffGames h2,
#playoffGames h3 {
    color: #0f172a;
}

.schedule-section h2,
#pastGames h2,
#upcomingGames h2,
#playoffGames h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 24px 0 14px;
}

.schedule-section h2:first-child,
#pastGames h2:first-child,
#upcomingGames h2:first-child,
#playoffGames h2:first-child {
    margin-top: 0;
}

.schedule-section h3,
#pastGames h3,
#upcomingGames h3,
#playoffGames h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 20px 0 12px;
}

/* =========================
   TABLE WRAPPER
========================= */

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}

.enlarged-schedule {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* =========================
   TABLE HEAD / BODY
========================= */

.schedule-table thead {
    background: #111827;
    color: #ffffff;
}

.schedule-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.schedule-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-weight: 600;
    vertical-align: middle;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.schedule-table tbody tr:hover {
    background: #eef2f7;
}

/* =========================
   TEAM CELLS / PILLS
========================= */

.team-pill,
.schedule-team-pill {
    --team-bg: #e5e7eb;
    --team-text: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--team-bg);
    color: var(--team-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    max-width: 100%;
}

/* =========================
   BUTTONS / LINKS
========================= */

.view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
    white-space: nowrap;
}

.view-button:hover {
    background: #1f2937;
}

.btn-playoff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 700;
    background: #111827;
    color: #ffffff;
    transition: 0.2s ease;
}

.btn-playoff:hover {
    background: #1f2937;
}

/* =========================
   ROUND BANNERS
========================= */

.round-banner {
    border-radius: 16px !important;
    margin: 22px 0 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* =========================
   EMPTY STATES
========================= */

.schedule-empty {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

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

@media (max-width: 1100px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .schedule-shell {
        padding: 20px 16px 32px;
    }

    .schedule-page-header {
        padding: 22px 20px;
    }

    .schedule-page-header h1 {
        font-size: 1.8rem;
    }

    .schedule-tabs-card {
        padding: 18px;
    }

    .schedule-section,
    #pastGames,
    #upcomingGames,
    #playoffGames {
        overflow-x: auto;
    }

    .schedule-table {
        min-width: 900px;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 18px 20px;
    }

    .brand-text {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        width: 100%;
    }
}