/**
 * [RS] Rogue Soldiers - BattleBit: Remastered
 * Prototype for the standardized hosted-server page structure.
 */

.page-battlebit {
    scroll-padding-top: 100px;
}

.server-page-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 70px;
    align-items: start;
}

.server-page-overview-copy {
    position: sticky;
    top: 110px;
}

.server-page-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.server-page-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border);
    color: rgba(255,255,255,.52);
    background: rgba(255,255,255,.012);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.server-page-jump a:hover {
    border-color: var(--red-border);
    color: #fff;
    background: var(--red-soft);
}

.server-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--border-soft);
    background: var(--border-soft);
}

.server-overview-card {
    min-height: 210px;
    padding: 28px;
    background: #0d0d0d;
}

.server-overview-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red-border);
    color: var(--red-bright);
    background: var(--red-soft);
}

.server-overview-title {
    margin-top: 22px;
    color: #fff;
    font-size: .91rem;
    font-weight: 800;
}

.server-overview-copy {
    margin-top: 8px;
    color: rgba(255,255,255,.36);
    font-size: .73rem;
    line-height: 1.66;
}

.server-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 48px;
    border: 1px solid var(--border);
    background: var(--border);
}

.server-tab {
    min-height: 112px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 20px 22px;
    border: 0;
    color: inherit;
    background: #0d0d0d;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}

.server-tab:hover {
    background: rgba(255,255,255,.025);
}

.server-tab.active {
    background: linear-gradient(120deg, rgba(189,0,0,.12), #0d0d0d 50%);
}

.server-tab-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.015);
}

.server-tab.active .server-tab-icon {
    border-color: var(--red-border);
    color: var(--red-bright);
    background: var(--red-soft);
}

.server-tab-label,
.server-tab-title {
    display: block;
}

.server-tab-label {
    color: rgba(255,255,255,.25);
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.server-tab-title {
    margin-top: 5px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

.server-tab-arrow {
    color: rgba(255,255,255,.18);
}

.server-tab.active .server-tab-arrow {
    color: var(--red-bright);
}

.server-panel {
    padding-top: 55px;
}

.server-panel[hidden] {
    display: none;
}

.server-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 65px;
    align-items: start;
}

.server-heading-label {
    color: var(--red-bright);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.server-heading-title {
    margin: 11px 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4.1rem);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.server-heading-copy {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(255,255,255,.42);
    font-size: .82rem;
    line-height: 1.75;
}

.server-browser-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.012);
}

.server-browser-name span,
.server-browser-name strong {
    display: block;
}

.server-browser-name span {
    color: rgba(255,255,255,.27);
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.server-browser-name strong {
    margin-top: 5px;
    color: #fff;
    font-size: .68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.server-copy-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid var(--red-border);
    color: rgba(255,255,255,.72);
    background: var(--red-soft);
    font: inherit;
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.server-copy-button:hover {
    color: #fff;
    border-color: var(--red);
}

.server-identity-panel {
    padding-left: 28px;
    border-left: 1px solid var(--red-border);
}

.server-identity-label {
    color: rgba(255,255,255,.28);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.server-identity-title {
    margin-top: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.server-identity-copy {
    margin-top: 10px;
    color: rgba(255,255,255,.37);
    font-size: .74rem;
    line-height: 1.65;
}

.server-identity-meta {
    margin-top: 24px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.server-identity-meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    border-bottom: 1px solid var(--border-soft);
}

.server-identity-meta div:last-child {
    border-bottom: 0;
}

.server-identity-meta span {
    color: rgba(255,255,255,.27);
    font-size: .55rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-identity-meta strong {
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-align: right;
}

.server-identity-actions {
    margin-top: 20px;
}

.server-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.server-detail-heading span {
    color: var(--red-bright);
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.server-detail-heading h4 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.server-detail-heading small {
    color: rgba(255,255,255,.26);
    font-size: .61rem;
}

.server-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.server-mode-card {
    min-height: 215px;
    padding: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.014), rgba(255,255,255,.002));
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.server-mode-card:hover {
    transform: translateY(-3px);
    border-color: var(--red-border);
    background: linear-gradient(145deg, rgba(189,0,0,.045), rgba(255,255,255,.003));
}

.server-mode-label {
    color: rgba(255,255,255,.18);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.server-mode-title {
    margin-top: 24px;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.server-mode-copy {
    margin-top: 10px;
    color: rgba(255,255,255,.35);
    font-size: .72rem;
    line-height: 1.66;
}

.server-map-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.server-map-name {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border);
    color: rgba(255,255,255,.46);
    background: rgba(255,255,255,.01);
    font-size: .59rem;
    font-weight: 700;
}

.server-map-name::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(224,0,0,.65);
}

.server-foundation-layout {
    display: grid;
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: 65px;
    align-items: start;
    margin-top: 48px;
}

.server-foundation-intro {
    position: sticky;
    top: 110px;
}

.server-foundation-title {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.server-foundation-copy {
    margin-top: 18px;
    color: rgba(255,255,255,.40);
    font-size: .80rem;
    line-height: 1.72;
}

.server-setting-list {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.server-setting-row {
    display: grid;
    grid-template-columns: 55px minmax(170px, .55fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 87px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--border-soft);
}

.server-setting-row:last-child {
    border-bottom: 0;
}

.server-setting-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red-border);
    color: var(--red-bright);
    background: var(--red-soft);
}

.server-setting-title {
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
}

.server-setting-value {
    margin-top: 4px;
    color: var(--red-bright);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.server-setting-copy {
    color: rgba(255,255,255,.35);
    font-size: .70rem;
    line-height: 1.58;
}

.server-community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: 70px;
    align-items: center;
}

.server-community-list {
    border: 1px solid var(--border);
    background: #0d0d0d;
}

.server-community-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--border-soft);
}

.server-community-item:last-child {
    border-bottom: 0;
}

.server-community-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red-border);
    color: var(--red-bright);
    background: var(--red-soft);
}

.server-community-title {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.server-community-copy {
    margin-top: 5px;
    color: rgba(255,255,255,.34);
    font-size: .73rem;
    line-height: 1.62;
}

@media (max-width: 1199.98px) {
    .server-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .server-page-overview-layout,
    .server-summary,
    .server-foundation-layout,
    .server-community-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .server-page-overview-copy,
    .server-foundation-intro {
        position: static;
    }

    .server-identity-panel {
        padding-left: 0;
        padding-top: 22px;
        border-left: 0;
        border-top: 1px solid var(--red-border);
    }
}

@media (max-width: 767.98px) {
    .server-overview-grid,
    .server-tabs,
    .server-mode-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .server-tab {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 18px 16px;
    }

    .server-browser-name {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-setting-row {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .server-setting-copy {
        grid-column: 2;
    }

    .server-detail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .server-community-item {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 21px 18px;
    }
}

@media (max-width: 480px) {
    .server-tab {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .server-tab-arrow {
        display: none;
    }

    .server-tab-icon {
        width: 40px;
        height: 40px;
    }

    .server-overview-card,
    .server-mode-card {
        min-height: 0;
        padding: 22px 20px;
    }

    .server-community-item {
        padding: 19px 15px;
    }
}
