/* ==================================================
   3NG - TEAM SCHEDULE PAGE
   ================================================== */


/* --------------------------------------------------
   PAGE
-------------------------------------------------- */

.team-schedule-page {
    width: 100%;
}


/* --------------------------------------------------
   SEASON RECORD SUMMARY
-------------------------------------------------- */

.team-season-summary-panel {
    margin-bottom: 34px;

    background: var(--surface-secondary);

    border: 1px solid var(--border-primary);
}


.team-season-summary__heading {
    padding: 16px 18px;

    background: var(--surface-elevated);

    border-bottom: 1px solid var(--border-primary);

    color: var(--text-primary);

    font-size: 0.9rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}


.team-season-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    background: transparent;
}


.team-season-summary__item {
    min-height: 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 18px 14px;

    text-align: center;
}


.team-season-summary__item span {
    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.team-season-summary__item strong {
    color: var(--text-primary);

    font-size: 1.7rem;
    font-weight: 800;

    letter-spacing: -0.04em;

    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------
   FULL SCHEDULE PANEL
-------------------------------------------------- */

.team-full-schedule-panel {
    width: 100%;

    padding: 20px;

    background: var(--surface-primary);

    border: 1px solid var(--border-primary);
}


/* --------------------------------------------------
   FULL SCHEDULE TABLE
-------------------------------------------------- */

.team-full-schedule {
    width: 100%;

    background: var(--surface-secondary);

    border: 1px solid var(--border-primary);
}


.team-full-schedule__header,
.team-full-schedule__row {
    display: grid;

    grid-template-columns:
        72px
        88px
        minmax(150px, 1.1fr)
        82px
        minmax(210px, 1.45fr)
        minmax(135px, 0.95fr)
        78px
        100px
        90px;

    align-items: center;

    column-gap: 12px;

    padding: 0 18px;
}


/* --------------------------------------------------
   SCHEDULE HEADER
-------------------------------------------------- */

.team-full-schedule__header {
    min-height: 46px;

    background: var(--surface-elevated);

    color: var(--text-secondary);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    border-bottom: 1px solid var(--border-primary);
}


.team-full-schedule__header span {
    white-space: nowrap;
}


/* --------------------------------------------------
   SCHEDULE ROWS
-------------------------------------------------- */

.team-full-schedule__row {
    min-height: 68px;

    background: var(--surface-secondary);

    border-bottom: 1px solid var(--border-secondary);

    color: var(--text-secondary);

    font-size: 0.78rem;

    font-variant-numeric: tabular-nums;
}


.team-full-schedule__row:last-child {
    border-bottom: 0;
}


.team-full-schedule__row:hover {
    background: var(--surface-elevated);
}


/* --------------------------------------------------
   SCHEDULE COLUMNS
-------------------------------------------------- */

.team-full-schedule__date,
.team-full-schedule__time,
.team-full-schedule__site,
.team-full-schedule__media,
.team-full-schedule__outlet,
.team-full-schedule__result {
    font-weight: 700;
}


.team-full-schedule__opponent {
    color: var(--text-primary);

    font-size: 0.86rem;
    font-weight: 800;
}


.team-full-schedule__venue {
    color: var(--text-primary);

    font-weight: 700;
}


.team-full-schedule__media,
.team-full-schedule__outlet {
    white-space: nowrap;
}


.team-full-schedule__result {
    color: var(--text-primary);

    text-align: right;

    white-space: nowrap;
}


/* --------------------------------------------------
   EMPTY STATE
-------------------------------------------------- */

.team-schedule-page .team-empty-state {
    margin: 0;

    padding: 40px 20px;

    background: var(--surface-primary);

    border: 1px solid var(--border-primary);

    color: var(--text-secondary);

    text-align: center;
}


/* ==================================================
   RESPONSIVE - TABLET
   ================================================== */

@media (max-width: 1000px) {

    /* ----------------------------------------------
       SEASON SUMMARY
    ---------------------------------------------- */

    .team-season-summary {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .team-season-summary__item {
        border-bottom: 1px solid var(--border-primary);
    }


    .team-season-summary__item:nth-child(4) {
        border-right: 0;
    }


    .team-season-summary__item:nth-child(n+5) {
        border-bottom: 0;
    }


    /* ----------------------------------------------
       SCHEDULE PANEL
    ---------------------------------------------- */

    .team-full-schedule-panel {
        padding: 16px;

        overflow-x: auto;

        scrollbar-width: thin;
    }


    .team-full-schedule {
        min-width: 980px;
    }


    .team-full-schedule__header,
    .team-full-schedule__row {
        grid-template-columns:
            68px
            82px
            minmax(140px, 1.05fr)
            72px
            minmax(180px, 1.3fr)
            minmax(125px, 0.9fr)
            68px
            90px
            80px;

        column-gap: 10px;

        padding: 0 14px;
    }

}


/* ==================================================
   RESPONSIVE - MOBILE
   ================================================== */

@media (max-width: 700px) {

    /* ----------------------------------------------
       SEASON SUMMARY
    ---------------------------------------------- */

    .team-season-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin-bottom: 28px;
    }


    .team-season-summary__item {
        min-height: 82px;

        padding: 14px 10px;

        border-right: 1px solid var(--border-primary);
        border-bottom: 1px solid var(--border-primary);
    }


    .team-season-summary__item:nth-child(even) {
        border-right: 0;
    }


    .team-season-summary__item:nth-child(n+5) {
        border-bottom: 1px solid var(--border-primary);
    }


    .team-season-summary__item:last-child {
        border-right: 0;
        border-bottom: 0;
    }


    .team-season-summary__item span {
        margin-bottom: 5px;

        font-size: 0.62rem;
    }


    .team-season-summary__item strong {
        font-size: 1.35rem;
    }


    /* ----------------------------------------------
       MOBILE SCHEDULE CONTAINER
    ---------------------------------------------- */

    .team-full-schedule-panel {
        width: 100%;

        padding: 0;

        overflow: visible;

        background: transparent;

        border: 0;
    }


    .team-full-schedule {
        width: 100%;
        min-width: 0;

        background: transparent;

        border: 0;
    }


    .team-full-schedule__header {
        display: none;
    }


    /* ----------------------------------------------
       MOBILE GAME CARD
    ---------------------------------------------- */

    .team-full-schedule__row {
        width: 100%;
        min-width: 0;
        min-height: 0;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 0;

        margin-bottom: 14px;

        padding: 0;

        background: var(--surface-primary);

        border: 1px solid var(--border-primary);

        font-size: 0.78rem;
    }


    .team-full-schedule__row:last-child {
        margin-bottom: 0;
    }


    .team-full-schedule__row:hover {
        background: var(--surface-primary);
    }


    /* ----------------------------------------------
       MOBILE FIELDS
    ---------------------------------------------- */

    .team-full-schedule__row > span {
        min-width: 0;
        min-height: 60px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 4px;

        padding: 10px 12px;

        border-right: 1px solid var(--border-secondary);
        border-bottom: 1px solid var(--border-secondary);

        white-space: normal;

        text-align: left;
    }


    .team-full-schedule__row > span:nth-child(even) {
        border-right: 0;
    }


    .team-full-schedule__opponent {
        grid-column: 1 / -1;

        min-height: 68px;

        background: var(--surface-elevated);

        border-right: 0;

        font-size: 1rem;
    }


    .team-full-schedule__venue,
    .team-full-schedule__location {
        grid-column: 1 / -1;

        border-right: 0;
    }


    .team-full-schedule__result {
        text-align: left;
    }


    /* ----------------------------------------------
       MOBILE FIELD LABELS
    ---------------------------------------------- */

    .team-full-schedule__row > span::before {
        color: var(--text-muted);

        font-size: 0.58rem;
        font-weight: 800;

        letter-spacing: 0.08em;

        text-transform: uppercase;
    }


    .team-full-schedule__date::before {
        content: "Date";
    }


    .team-full-schedule__time::before {
        content: "Time";
    }


    .team-full-schedule__opponent::before {
        content: "Opponent";
    }


    .team-full-schedule__site::before {
        content: "Site";
    }


    .team-full-schedule__venue::before {
        content: "Venue";
    }


    .team-full-schedule__location::before {
        content: "Location";
    }


    .team-full-schedule__media::before {
        content: "Media";
    }


    .team-full-schedule__outlet::before {
        content: "Outlet";
    }


    .team-full-schedule__result::before {
        content: "Result";
    }

}