/* =========================
   NATIONAL MODAL
========================= */

.national-modal-backdrop {
    display: none;
}

/* Header */

.national-modal-head {
    margin-bottom: 28px;
    padding-right: 70px;
}

.national-modal-head h2 span {
    color: var(--red);
}

/* Filter desktop */

.roster-filters {
    position: static;
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 16px;
    width: 100%;
    max-height: 100%;
    overflow: visible;
}

.roster-filter-group > strong {
    display: block;
    margin-bottom: 9px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.roster-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 12px;
    border: 1px solid rgba(3,57,182,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.roster-filter button {
    display: block;
    width: 100%;

    padding: 10px 12px;
    border: 0;
    border-radius: 10px;

    background: transparent;
    color: var(--blue-dark);

    font-size: 13px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;

    cursor: pointer;
}

.roster-filter button.active,
.roster-filter button:hover {
    background: linear-gradient(135deg, rgba(6,72,201,.9), rgba(3,57,182,.48));
    color: #fff;
}

/* Mobile select */

.roster-select-wrap {
    display: none;
}

.roster-mobile-filters {
    display: none;
}

/* Cards */

.roster-groups {
    display: grid;
    gap: 34px;
}

.roster-team-group {
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(3,57,182,.18);
}

.roster-team-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.roster-team-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.roster-team-head h3 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.roster-team-head span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.roster-empty {
    padding: 42px 24px;
    border: 1px dashed rgba(3,57,182,.25);
    border-radius: 16px;
    color: var(--blue-dark);
    font-weight: 800;
    text-align: center;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    align-content: start;
    gap: 24px;
}

.roster-card {
    position: relative;

    width: 100%;
    min-height: 300px;
    overflow: hidden;

    border: 1px solid rgba(3,57,182,.12);
    border-radius: 16px;

    background: rgba(255,255,255,.06);
}

.roster-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.roster-card::after {
    content: "";
    position: absolute;
    inset: 0;

   background: linear-gradient(
        to top right,
        rgba(2,8,23,.95) 0%,
        rgba(2,8,23,.75) 22%,
        rgba(2,8,23,.80) 38%,
        rgba(2,8,23,0) 50%
    );
}

.roster-card-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
}

.roster-card strong {
    display: block;
    color: var(--blue-light);
    font-size: 46px;
    font-weight: 900;
    line-height: .9;
}

.roster-card span {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.roster-card h3 {
    margin-top: 10px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
}

.roster-card p {
    margin-top: 12px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

/* =========================
   DARK MODE
========================= */

html.dark-mode .national-modal-head h2 span {
    color: var(--red);
}

html.dark-mode .roster-filter {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
}

html.dark-mode .roster-filter-group > strong,
html.dark-mode .roster-team-head h3,
html.dark-mode .roster-empty {
    color: #fff;
}

html.dark-mode .roster-team-group {
    border-color: rgba(255,255,255,.14);
}

html.dark-mode .roster-filter button {
    color: rgba(255,255,255,.78);
}

html.dark-mode .roster-card {
    border-color: rgba(255,255,255,.14);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    #nationalModal .modal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .roster-filters {
        display: none;
    }

    .roster-mobile-filters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
        gap: 12px;
        margin-bottom: 18px;
    }

    .roster-select-wrap {
        position: relative;
        display: block;
        max-width: none;
        margin-bottom: 0;
    }

    .roster-select-wrap label {
        display: block;
        margin-bottom: 6px;
        color: var(--blue-dark);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .roster-select {
        width: 100%;
        height: 42px;
        padding: 0 34px 0 12px;

        border: 1px solid #0f347f;
        border-radius: 10px;

        background: #fff;
        color: var(--blue-dark);

        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;

        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

    .roster-select-wrap::after {
        content: "⌄";
        position: absolute;
        right: 12px;
        bottom: 10px;
        color: #0f347f;
        font-size: 16px;
        pointer-events: none;
    }

    .roster-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    html.dark-mode .roster-select {
        background: rgba(255,255,255,.08);
        border-color: rgba(109,163,255,.25);
        color: #fff;
    }

    html.dark-mode .roster-select-wrap label {
        color: #fff;
    }

    html.dark-mode .roster-select-wrap::after {
        color: var(--blue-light);
    }
}

@media (max-width: 560px) {
    .national-modal-head {
        padding-right: 56px;
    }

    .roster-grid {
        grid-template-columns: 1fr;
    }

    .roster-card {
        min-height: 360px;
    }

    .roster-mobile-filters {
        grid-template-columns: 1fr;
    }

    .roster-team-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .roster-team-head h3 {
        font-size: 23px;
    }
}

#nationalModal .modal-layout {
    align-items: start;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 34px;
}

#nationalModal .modal-content {
    height: auto;
    padding-right: 0;
}
