/* =========================================================
   GameSpot.io
   Server Details
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.details-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.details-header {
    min-height: 92px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(7, 7, 9, 0.88);

    backdrop-filter:
        blur(14px);
}

.details-brand {
    display: flex;
    align-items: end;
    gap: 3px;
}

.details-brand-main {
    color: #f1f1f2;

    font-size: 29px;
    font-weight: 950;

    line-height: 1;

    letter-spacing: -0.055em;
}

.details-brand-dot {
    color: var(--red-bright);

    font-size: 20px;
    font-weight: 950;

    line-height: 1;
}

.back-button {
    min-height: 38px;

    padding:
        0
        14px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #9d9da4;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.08em;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.back-button span {
    color: var(--red-bright);
    font-size: 15px;
}

.back-button:hover {
    color: #fff;

    border-color:
        rgba(227, 38, 46, 0.5);

    background:
        rgba(227, 38, 46, 0.08);
}


/* =========================================================
   MAIN
   ========================================================= */

.details-main {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    padding:
        36px
        clamp(22px, 5vw, 80px)
        70px;

    flex: 1;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    margin-bottom: 31px;

    display: flex;
    align-items: center;
    gap: 9px;

    color: #66666e;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.breadcrumb a {
    transition:
        color 180ms ease;
}

.breadcrumb a:hover {
    color: var(--red-bright);
}

.breadcrumb span:last-child {
    color: #929299;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.details-title {
    margin-bottom: 28px;
}

.details-kicker {
    color: var(--red-bright);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.23em;
}

.details-title h1 {
    margin:
        4px
        0
        5px;

    color: #f1f1f2;

    font-size:
        clamp(29px, 4vw, 48px);

    font-weight: 950;

    line-height: 1;

    letter-spacing: -0.045em;
}

.details-title p {
    margin: 0;

    color: #85858d;

    font-size: 12px;
}


/* =========================================================
   HERO
   ========================================================= */

.server-hero {
    position: relative;

    min-height: 460px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 8px;

    background: #0c0c0f;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.38);

    isolation: isolate;
}

.server-hero-background {
    position: absolute;
    inset: 0;

    z-index: -3;

    background-image:
        url('/img/games/cs16.webp');

    background-size: cover;
    background-position: center;

    filter:
        saturate(1.05)
        brightness(0.78);

    transform:
        scale(1.015);

    transition:
        transform 800ms ease,
        filter 500ms ease;
}

.server-hero:hover .server-hero-background {
    transform:
        scale(1.04);

    filter:
        saturate(1.18)
        brightness(0.95);
}

.server-hero-shade {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 7, 0.97) 0%,
            rgba(6, 6, 8, 0.90) 28%,
            rgba(7, 7, 9, 0.58) 58%,
            rgba(7, 7, 9, 0.18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 3, 4, 0.78),
            transparent 65%
        );

    transition:
        background 400ms ease;
}

.server-hero:hover .server-hero-shade {
    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 7, 0.91) 0%,
            rgba(6, 6, 8, 0.76) 28%,
            rgba(7, 7, 9, 0.36) 58%,
            rgba(7, 7, 9, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 3, 4, 0.55),
            transparent 65%
        );
}

.server-hero-content {
    min-height: 460px;

    padding:
        clamp(27px, 4vw, 52px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* =========================================================
   HERO STATUS
   ========================================================= */

.details-status {
    padding:
        7px
        10px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border-radius: 4px;

    background:
        rgba(0, 0, 0, 0.55);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.details-status.online {
    color: #6be493;

    border:
        1px solid rgba(56, 214, 107, 0.2);
}

.details-status.offline {
    color: #ff6268;

    border:
        1px solid rgba(255, 48, 56, 0.24);
}

.details-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.details-status.online .details-status-dot {
    background: var(--green);

    box-shadow:
        0 0 10px rgba(56, 214, 107, 0.75);
}

.details-status.offline .details-status-dot {
    background: var(--red-bright);

    box-shadow:
        0 0 10px rgba(255, 48, 56, 0.7);
}


/* =========================================================
   HERO NAME
   ========================================================= */

.hero-server-name {
    margin-top: auto;

    max-width: 650px;
}

.hero-label {
    color: #73737b;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.18em;
}

.hero-server-name h2 {
    margin:
        4px
        0
        21px;

    color: #fff;

    font-size:
        clamp(22px, 3vw, 38px);

    font-weight: 950;

    line-height: 1.05;

    letter-spacing: -0.035em;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   HERO STATS
   ========================================================= */

.hero-stats {
    margin-bottom: 27px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stat {
    min-width: 125px;

    padding:
        10px
        14px;

    display: flex;
    flex-direction: column;

    border-left:
        2px solid rgba(227, 38, 46, 0.7);

    background:
        rgba(0, 0, 0, 0.32);

    backdrop-filter:
        blur(5px);
}

.hero-stat span {
    color: #72727a;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.hero-stat strong {
    margin-top: 3px;

    color: #f2f2f3;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   SERVER ADDRESS
   ========================================================= */

.server-address-block {
    width: 100%;
    max-width: 610px;
}

.server-address-label {
    display: block;

    margin-bottom: 6px;

    color: #74747c;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.15em;
}

.server-address-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.server-address-row code {
    min-width: 220px;

    padding:
        11px
        14px;

    display: flex;
    align-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 4px;

    background:
        rgba(0, 0, 0, 0.62);

    color: #dedee1;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;

    user-select: all;
}

.copy-button,
.connect-button {
    min-height: 42px;

    padding:
        0
        17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    border-radius: 4px;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.copy-button {
    border:
        1px solid rgba(255, 255, 255, 0.12);

    background:
        rgba(20, 20, 24, 0.88);

    color: #a3a3aa;
}

.copy-button:hover {
    color: #fff;

    border-color:
        rgba(255, 255, 255, 0.25);
}

.copy-button.copied {
    color: var(--green);

    border-color:
        rgba(56, 214, 107, 0.35);
}

.connect-button {
    border:
        1px solid rgba(227, 38, 46, 0.65);

    background:
        linear-gradient(
            180deg,
            rgba(227, 38, 46, 0.25),
            rgba(110, 10, 15, 0.23)
        );

    color: #fff;
}

.connect-button span {
    color: var(--red-bright);
    font-size: 14px;
}

.connect-button:hover {
    border-color:
        var(--red-bright);

    background:
        rgba(227, 38, 46, 0.34);

    box-shadow:
        0 0 22px rgba(227, 38, 46, 0.15);
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.details-grid {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.details-panel {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 19, 23, 0.88),
            rgba(10, 10, 13, 0.92)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.2);
}

.details-panel-heading {
    min-height: 48px;

    padding:
        0
        19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

    color: #d5d5d9;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.details-panel-heading::before {
    content: "";

    width: 2px;
    height: 15px;

    margin-right: 9px;

    background:
        var(--red-bright);

    box-shadow:
        0 0 9px rgba(227, 38, 46, 0.4);
}

.details-panel-heading > span:first-child {
    margin-right: auto;
}

.live-indicator {
    padding:
        4px
        7px;

    border-radius: 3px;

    background:
        rgba(56, 214, 107, 0.08);

    color: var(--green);

    font-size: 7px;
}

.information-list {
    padding:
        6px
        19px;
}

.information-row {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.045);
}

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

.information-row span {
    color: #74747c;

    font-size: 10px;
}

.information-row strong {
    color: #d4d4d8;

    font-size: 10px;
    font-weight: 800;

    text-align: right;
}

.information-row .info-online {
    color: var(--green);
}

.information-row .info-offline {
    color: var(--red-bright);
}


/* =========================================================
   QUICK CONNECT
   ========================================================= */

.quick-connect {
    margin-top: 22px;

    padding:
        28px
        30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    overflow: hidden;

    position: relative;

    border:
        1px solid rgba(227, 38, 46, 0.2);

    border-radius: 6px;

    background:
        linear-gradient(
            110deg,
            rgba(35, 9, 12, 0.72),
            rgba(14, 14, 17, 0.88) 52%,
            rgba(10, 10, 13, 0.94)
        );
}

.quick-connect::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -150px;
    top: -150px;

    border-radius: 50%;

    background:
        rgba(227, 38, 46, 0.1);

    filter:
        blur(70px);

    pointer-events: none;
}

.quick-connect h2 {
    margin:
        3px
        0
        5px;

    color: #f0f0f2;

    font-size: 20px;
    font-weight: 950;
}

.quick-connect p {
    margin: 0;

    color: #7d7d85;

    font-size: 10px;
}

.large-connect-button {
    min-width: 190px;
    min-height: 46px;

    padding:
        0
        18px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    flex-shrink: 0;

    border:
        1px solid rgba(227, 38, 46, 0.7);

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            rgba(227, 38, 46, 0.28),
            rgba(120, 10, 16, 0.2)
        );

    color: #fff;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.08em;

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.large-connect-button span {
    color: var(--red-bright);
    font-size: 15px;
}

.large-connect-button:hover {
    border-color: var(--red-bright);

    background:
        rgba(227, 38, 46, 0.38);

    box-shadow:
        0 0 25px rgba(227, 38, 46, 0.15);
}


/* =========================================================
   FOOTER
   ========================================================= */

.details-footer {
    min-height: 86px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
    gap: 25px;

    border-top:
        1px solid var(--border);

    background:
        rgba(5, 5, 7, 0.72);

    color: #6d6d75;
}

.details-footer > div {
    display: flex;
    flex-direction: column;
}

.details-footer strong {
    color: #a6a6ad;

    font-size: 10px;
    font-weight: 900;
}

.details-footer div span {
    font-size: 8px;
}

.details-footer p {
    margin: 0;

    font-size: 9px;

    text-align: center;
}

.details-footer p span {
    margin:
        0
        6px;

    color: var(--red);
}

.details-footer > a {
    justify-self: end;

    color: #888890;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.08em;

    transition:
        color 180ms ease;
}

.details-footer > a:hover {
    color: var(--red-bright);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .server-hero {
        min-height: 430px;
    }

    .server-hero-content {
        min-height: 430px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .details-header {
        min-height: 75px;

        padding:
            15px
            16px;
    }

    .details-brand-main {
        font-size: 23px;
    }

    .details-brand-dot {
        font-size: 16px;
    }

    .back-button {
        padding:
            0
            10px;

        font-size: 7px;
    }

    .details-main {
        padding:
            25px
            13px
            45px;
    }

    .breadcrumb {
        margin-bottom: 24px;
    }

    .details-title h1 {
        font-size: 29px;
    }

    .server-hero {
        min-height: 500px;
    }

    .server-hero-background {
        background-position:
            60% center;
    }

    .server-hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(5, 5, 7, 0.91),
                rgba(6, 6, 8, 0.60)
            ),
            linear-gradient(
                0deg,
                rgba(3, 3, 4, 0.88),
                rgba(3, 3, 4, 0.1)
            );
    }

    .server-hero-content {
        min-height: 500px;

        padding:
            21px
            18px;
    }

    .hero-server-name h2 {
        font-size: 24px;
    }

    .hero-stats {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 6px;
    }

    .hero-stat {
        min-width: 0;

        padding:
            9px
            8px;
    }

    .hero-stat strong {
        font-size: 10px;
    }

    .server-address-row {
        flex-wrap: wrap;
    }

    .server-address-row code {
        width: 100%;
        min-width: 0;
    }

    .copy-button,
    .connect-button {
        flex: 1;
    }

    .quick-connect {
        padding:
            23px
            20px;

        flex-direction: column;
        align-items: stretch;
    }

    .large-connect-button {
        width: 100%;
    }

    .details-footer {
        grid-template-columns: 1fr;

        gap: 10px;

        text-align: center;
    }

    .details-footer > div {
        align-items: center;
    }

    .details-footer > a {
        justify-self: center;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .back-button {
        min-height: 34px;
    }

    .back-button span {
        display: none;
    }

    .details-title h1 {
        font-size: 25px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        border-left:
            2px solid rgba(227, 38, 46, 0.7);
    }

}

/* =========================================================
   LIVE PLAYERS
   ========================================================= */

.players-panel {
    margin-top: 22px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 19, 23, 0.88),
            rgba(10, 10, 13, 0.92)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   PLAYERS HEADER
   ========================================================= */

.players-panel-heading {
    min-height: 54px;

    padding:
        0
        19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border);
}


.players-heading-title {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #d5d5d9;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.12em;
}


.players-heading-line {
    width: 2px;
    height: 15px;

    background:
        var(--red-bright);

    box-shadow:
        0 0 9px rgba(227, 38, 46, 0.4);
}


.players-count {
    min-width: 67px;

    padding:
        6px
        10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border:
        1px solid rgba(56, 214, 107, 0.16);

    border-radius: 4px;

    background:
        rgba(56, 214, 107, 0.055);

    font-size: 9px;
    font-weight: 900;
}


#playerListCount {
    color: var(--green);
}


.players-count-separator {
    color: #55555d;
}


#playerListMax {
    color: #8a8a92;
}


/* =========================================================
   TABLE
   ========================================================= */

.players-table {
    width: 100%;
}


.players-table-header,
.player-row {
    display: grid;

    grid-template-columns:
        55px
        minmax(0, 1fr)
        160px;

    align-items: center;
}


.players-table-header {
    min-height: 39px;

    padding:
        0
        19px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.045);

    background:
        rgba(255, 255, 255, 0.018);

    color: #5f5f67;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.13em;
}


.players-table-body {
    padding:
        0
        19px;
}


.player-row {
    min-height: 45px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.04);

    transition:
        background 160ms ease,
        padding 160ms ease;
}


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


.player-row:hover {
    padding-left: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 46, 0.06),
            transparent 60%
        );
}


.player-number {
    color: #55555d;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;
}


.player-name {
    min-width: 0;

    overflow: hidden;

    color: #d7d7db;

    font-size: 10px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.player-score {
    color: #96969e;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;
    font-weight: 700;

    text-align: right;
}


.player-row:hover .player-name {
    color: #fff;
}


.player-row:hover .player-score {
    color: #c6c6cc;
}


/* =========================================================
   EMPTY / LOADING STATE
   ========================================================= */

.players-loading,
.players-empty {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #606068;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.12em;
}


.players-empty::before {
    content: "";

    width: 6px;
    height: 6px;

    margin-right: 9px;

    border-radius: 50%;

    background: #55555c;
}


/* =========================================================
   MOBILE PLAYERS TABLE
   ========================================================= */

@media (max-width: 650px) {

    .players-panel-heading {
        min-height: 50px;

        padding:
            0
            14px;
    }


    .players-table-header,
    .player-row {

        grid-template-columns:
            35px
            minmax(0, 1fr)
            85px;

    }


    .players-table-header {
        padding:
            0
            14px;
    }


    .players-table-body {
        padding:
            0
            14px;
    }


    .player-row {
        min-height: 43px;
    }


    .player-row:hover {
        padding-left: 4px;
    }


    .player-name,
    .player-score {
        font-size: 9px;
    }

}
