/* ==========================================================================
   Schedule — League-wide schedule view, week nav
   ========================================================================== */

/* League-wide schedule view -- V6 dense table */

/* Week navigation */
.schedule-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-surface, #FAFAFA);
}

.schedule-nav-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    border: 1px solid var(--theme-border-strong);
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.schedule-nav-btn:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FFF;
}
.schedule-nav-btn .icon { background: currentColor; }
.schedule-nav-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.schedule-week-label {
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    text-align: center;
}

/* Day group */
.league-schedule-day {
    margin-bottom: 0;
}
.league-schedule-day + .league-schedule-day {
    border-top: 2px solid #000;
    margin-top: 10px;
}
.league-schedule-day-header {
    font-size: var(--text-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    background: var(--theme-bg-surface, #F0F0F0);
    border: 1px solid var(--theme-border-strong);
    color: var(--text-main);
}

/* Schedule table -- V6 dense 5-column layout */
.team-schedule-table th {
    background: #F0F0F0;
    font-size: var(--text-micro);
    font-weight: 600;
    color: #999;
    padding: 4px 8px;
    text-align: center;
}

/* Column widths */
.sched-col-status { width: 68px; }
.sched-col-away { text-align: right !important; }
.sched-col-score { width: 50px; text-align: center !important; }
.sched-col-home { text-align: left !important; }

/* Row hover */
.team-schedule-table tbody tr.clickable-row:hover td {
    background: rgba(26, 82, 118, 0.06);
}

/* Status / time */
.league-sched-final {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.3px;
}

/* Team cells -- away right-aligned, home left-aligned */
.sched-away-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}
.sched-home-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}
.league-sched-team-link { cursor: pointer; font-weight: 700; }
.league-sched-team-link:hover { text-decoration: underline; }

/* Winner / loser styling */
.sched-team-win { color: #1A1A1A; }
.sched-team-lose { color: #AAA; }
.sched-team-lose .league-sched-team-link { color: #AAA; }
.sched-team-win .league-sched-team-link { color: #1A1A1A; }

/* Center score */
.sched-score-num {
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 1px;
}
.sched-at-sign {
    font-size: var(--text-micro);
    color: #CCC;
    font-weight: 600;
}

/* Active row highlight (currently viewed game) */
.sched-active-row td {
    background: rgba(26, 82, 118, 0.10) !important;
    border-left: 2px solid var(--theme-accent, #1A5276);
}

/* Team filter pill in schedule nav */
.sched-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: #1A1A1A;
    color: #FFF;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: 3px;
}
.sched-filter-clear {
    background: none;
    border: none;
    color: #AAA;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.sched-filter-clear:hover { color: #FFF; }

/* Mini calendar */
.sched-cal-toggle {
    cursor: pointer;
    position: relative;
}
.sched-cal-toggle:hover,
.sched-cal-active {
    color: var(--theme-accent, #1A5276);
}
.sched-cal {
    border-bottom: 1px solid var(--theme-border-strong);
    background: #FFF;
    padding: 10px 16px 12px;
}
.sched-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sched-cal-month {
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sched-cal-nav {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--theme-border-strong);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.sched-cal-nav:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FFF;
}
.sched-cal-nav .icon { background: currentColor; }
.sched-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}
.sched-cal-dow {
    font-size: 9px;
    font-weight: 700;
    color: #AAA;
    text-align: center;
    padding: 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sched-cal-day {
    font-size: var(--text-micro);
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A1A1A;
    transition: background 0.08s;
    line-height: 1;
}
.sched-cal-day:hover:not(:disabled) {
    background: rgba(26, 82, 118, 0.08);
}
.sched-cal-outside {
    color: #CCC;
}
.sched-cal-today {
    font-weight: 900;
    color: var(--theme-accent, #1A5276);
    box-shadow: inset 0 -2px 0 var(--theme-accent, #1A5276);
}
.sched-cal-viewed {
    background: rgba(26, 82, 118, 0.06);
}
.sched-cal-future {
    color: #DDD;
    cursor: default;
}

/* Schedule tab -- always a narrow sidebar column */
.schedule-column {
    max-width: 460px !important;
    flex: 3 !important;
}
