﻿.calendar-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.calendar-page-header {
    border-bottom: 4px solid #1E2229;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.calendar-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

    .calendar-title-row img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .calendar-title-row h1 {
        margin: 0;
        color: #111827;
        font-size: 2rem;
        line-height: 1.05;
        text-transform: uppercase;
    }

.calendar-controls {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 16px;
    align-items: end;
    margin: 18px 0;
}

.calendar-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 8px 10px;
    color: #0F172A;
    background: #FFFFFF;
    font-size: 0.95rem;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-month-link,
.calendar-step-link,
.calendar-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #D6A36C;
    border-radius: 4px;
    color: #1E2229;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #FFFFFF;
}

    .calendar-month-link.is-selected,
    .calendar-step-link:hover,
    .calendar-month-link:hover,
    .calendar-top-link:hover {
        background: #D6A36C;
        color: #111827;
        text-decoration: none;
    }

.calendar-month-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 22px 0 12px;
    padding: 11px 14px;
    background: #1E2229;
    color: #FFFFFF;
    border-top: 3px solid #D6A36C;
    border-bottom: 3px solid #D6A36C;
}

    .calendar-month-heading .calendar-heading-team {
        justify-self: start;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .calendar-month-heading .calendar-heading-month-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        justify-self: center;
    }

    .calendar-month-heading h2 {
        margin: 0;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .calendar-month-heading .calendar-heading-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 4px;
        color: #FFFFFF;
        font-size: 0.9rem;
        font-weight: 900;
        line-height: 1;
        text-decoration: none;
    }

        .calendar-month-heading .calendar-heading-arrow:hover {
            background: #D6A36C;
            border-color: #D6A36C;
            color: #111827;
            text-decoration: none;
        }

        .calendar-month-heading .calendar-heading-arrow.is-disabled {
            opacity: 0.35;
        }

.calendar-grid-scroll {
    overflow-x: auto;
}

.calendar-grid {
    min-width: 1120px;
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    border: 1px solid #CBD5E1;
    border-bottom: 0;
    border-right: 0;
    background: #FFFFFF;
}

.calendar-weekday,
.calendar-day {
    border-right: 1px solid #CBD5E1;
    border-bottom: 1px solid #CBD5E1;
}

.calendar-weekday {
    padding: 9px 10px;
    background: #F8FAFC;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    min-height: 178px;
    padding: 10px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

    .calendar-day.is-muted {
        background: #F8FAFC;
    }

    .calendar-day.has-game {
        padding: 10px 11px;
    }

.calendar-date-number {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
}

.calendar-day.has-game .calendar-date-number {
    color: inherit;
}

.calendar-day.is-muted .calendar-date-number {
    color: #94A3B8;
}

.calendar-game-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 132px;
    gap: 8px;
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    justify-content: space-between;
}

    .calendar-game-card + .calendar-game-card {
        margin-top: 9px;
    }

.calendar-game-top {
    display: flex;
    align-items: center;
}

.calendar-opponent {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

    .calendar-opponent span {
        font-size: 0.82rem;
        font-weight: 800;
    }

.calendar-opponent-name {
    line-height: 1.15;
    overflow: visible;
    white-space: normal;
}

.calendar-prefix {
    font-size: 0.72rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.calendar-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.calendar-card-spacer {
    min-height: 12px;
}

.calendar-game-location {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-game-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 0.76rem;
}

    .calendar-game-bottom .score {
        color: #0F172A;
        font-weight: 900;
        text-align: center;
    }

    .calendar-game-bottom .result {
        font-weight: 900;
    }

.calendar-game-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 18px;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .calendar-game-actions a {
        color: inherit;
        text-decoration: underline;
    }

.calendar-game-bottom .recap {
    font-size: 0.66rem;
    font-weight: 900;
    text-align: right;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calendar-game-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-footer-nav {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

@@media (max-width: 760px) {
    .calendar-shell {
        padding: 18px 14px 40px;
    }

    .calendar-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .calendar-month-nav {
        justify-content: flex-start;
    }

    .calendar-title-row h1 {
        font-size: 1.45rem;
    }

    .calendar-month-heading {
        grid-template-columns: 1fr;
        justify-items: start;
    }

        .calendar-month-heading .calendar-heading-month-nav {
            justify-self: center;
            width: 100%;
            margin-top: 4px;
        }

        .calendar-month-heading .calendar-heading-spacer {
            display: none;
        }
}
