/* =========================================================
   GameSpot.io
   Main stylesheet
   ========================================================= */

:root {
    --bg: #070708;
    --bg-soft: #0c0c0f;
    --panel: rgba(15, 15, 18, 0.92);
    --panel-light: rgba(24, 24, 29, 0.88);

    --red: #e3262e;
    --red-bright: #ff3038;
    --red-dark: #7e1117;

    --green: #38d66b;
    --orange: #e6a23c;

    --text: #f3f3f4;
    --text-soft: #a6a6ad;
    --text-dark: #707078;

    --border: rgba(255, 255, 255, 0.08);
    --border-red: rgba(227, 38, 46, 0.42);

    --sidebar-width: 245px;
    --header-height: 126px;

    --radius: 7px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.42);

    --transition:
        180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(120, 0, 0, 0.12),
            transparent 38%
        ),
        #070708;

    color: var(--text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.site-background {
    position: fixed;
    inset: 0;

    z-index: -2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.009) 1px,
            transparent 1px
        );

    background-size: 46px 46px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.65),
            transparent 90%
        );
}

.site-background::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: -350px;
    right: 5%;

    border-radius: 50%;

    background:
        rgba(180, 0, 0, 0.09);

    filter: blur(130px);
}


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

.site-layout {
    min-height: 100vh;
}

.main-wrapper {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    display: flex;
    flex-direction: column;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    z-index: 1000;

    width: var(--sidebar-width);

    padding:
        42px
        18px
        24px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            rgba(17, 17, 20, 0.98),
            rgba(7, 7, 9, 0.99)
        );

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

    box-shadow:
        15px 0 60px rgba(0, 0, 0, 0.28);
}

.sidebar::before {
    content: "";

    position: absolute;

    top: 0;
    right: -1px;

    width: 1px;
    height: 180px;

    background:
        linear-gradient(
            to bottom,
            var(--red),
            transparent
        );
}

.sidebar-mobile-header {
    display: none;
}

.sidebar-panel {
    margin-bottom: 36px;
}

.sidebar-title {
    margin:
        0
        0
        13px;

    padding:
        0
        13px
        10px;

    color: #d7d7db;

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

    letter-spacing: 0.18em;

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

.sidebar-title::first-letter {
    color: var(--red);
}

.sidebar-menu {
    list-style: none;

    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 3px 0;
}

.sidebar-menu a {
    position: relative;

    min-height: 43px;

    padding:
        0
        13px;

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

    border-radius: 4px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.sidebar-menu a:hover {
    color: #fff;

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

    transform:
        translateX(2px);
}

.sidebar-menu a.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 46, 0.18),
            rgba(227, 38, 46, 0.03)
        );
}

.sidebar-menu a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 7px;
    bottom: 7px;

    width: 2px;

    border-radius: 3px;

    background:
        var(--red-bright);

    box-shadow:
        0 0 12px rgba(255, 48, 56, 0.6);
}

.menu-icon {
    width: 20px;

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

    color: #8d8d94;

    font-size: 15px;
}

.active .menu-icon {
    color: var(--red-bright);
}

.status-dot {
    width: 8px;
    height: 8px;

    margin-left: 6px;
    margin-right: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px rgba(56, 214, 107, 0.55);
}

.extras-panel {
    margin-top: 4px;
}

.sidebar-bottom {
    margin-top: auto;

    padding:
        18px
        12px
        0;

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

.sidebar-server-indicator {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #77777f;

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

    letter-spacing: 0.13em;
}

.online-pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

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

    animation:
        onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


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

.site-header {
    min-height: var(--header-height);

    padding:
        27px
        clamp(28px, 4vw, 70px);

    display: grid;

    grid-template-columns:
        minmax(250px, 1fr)
        auto;

    align-items: center;
    gap: 40px;

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

    background:
        linear-gradient(
            180deg,
            rgba(10, 10, 12, 0.86),
            rgba(8, 8, 10, 0.5)
        );

    backdrop-filter:
        blur(12px);
}

.brand {
    width: max-content;

    display: grid;

    grid-template-columns:
        auto auto;

    align-items: end;

    column-gap: 4px;
}

.brand-main {
    color: #f1f1f2;

    font-size:
        clamp(29px, 3vw, 47px);

    font-weight: 950;

    line-height: 0.9;

    letter-spacing: -0.055em;

    text-shadow:
        0 3px 20px rgba(0, 0, 0, 0.5);
}

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

    font-size:
        clamp(21px, 2vw, 31px);

    font-weight: 950;

    line-height: 0.9;
}

.brand-subtitle {
    grid-column: 1 / -1;

    margin-top: 10px;

    color: #73737b;

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

    letter-spacing: 0.3em;
}

.mobile-menu-button {
    display: none;
}


/* =========================================================
   GLOBAL SERVER STATS
   ========================================================= */

.global-server-stats {
    min-width: 330px;

    padding:
        15px
        20px;

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

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

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(28, 28, 33, 0.72),
            rgba(14, 14, 17, 0.75)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        var(--shadow);
}

.global-stat {
    min-width: 105px;

    display: flex;
    flex-direction: column;

    align-items: center;
}

.global-stat-value {
    color: var(--red-bright);

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

    line-height: 1;
}

.global-stat-label {
    margin-top: 7px;

    color: #72727a;

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

    letter-spacing: 0.12em;

    white-space: nowrap;
}

.global-stat-divider {
    width: 1px;
    height: 34px;

    background:
        var(--border);
}


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

.main-content {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding:
        46px
        clamp(28px, 4vw, 70px)
        65px;

    flex: 1;
}

.section-heading {
    margin-bottom: 28px;

    display: flex;
    align-items: end;
    gap: 24px;
}

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

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

    letter-spacing: 0.24em;
}

.section-heading h1 {
    margin:
        3px
        0
        0;

    color: #ededee;

    font-size:
        clamp(21px, 2vw, 28px);

    font-weight: 900;

    letter-spacing: -0.025em;
}

.heading-line {
    height: 1px;

    margin-bottom: 7px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 46, 0.45),
            rgba(255, 255, 255, 0.035),
            transparent
        );
}


/* =========================================================
   SERVER GRID
   ========================================================= */

.server-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================================
   SERVER CARD
   ========================================================= */

.server-card {
    position: relative;

    min-height: 285px;

    overflow: hidden;

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

    border-radius:
        var(--radius);

    background:
        #121216;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28);

    isolation: isolate;

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.server-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -3;

    background-image:
        var(--card-image);

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

    transform:
        scale(1.01);

    transition:
        transform 600ms ease,
        filter 300ms ease;

    filter:
        saturate(0.78)
        brightness(0.72);
}

.server-card::after {
    content: "";

    position: absolute;

    inset:
        auto
        0
        0;

    height: 2px;

    z-index: 3;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red),
            transparent
        );

    opacity: 0;

    transition:
        opacity 220ms ease;
}

.server-card:hover {
    transform:
        translateY(-3px);

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

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.42),
        0 0 25px rgba(227, 38, 46, 0.06);
}

.server-card:hover::before {
    transform: scale(1.06);

    filter:
        saturate(1.25)
        contrast(1.05)
        brightness(1.18);
}

.server-card:hover::after {
    opacity: 1;
}

.server-card-overlay {
    transition: background 350ms ease;
}

.server-card:hover .server-card-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(6, 6, 8, 0.82) 0%,
            rgba(7, 7, 9, 0.60) 31%,
            rgba(8, 8, 10, 0.25) 59%,
            rgba(8, 8, 10, 0.05) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 4, 5, 0.35),
            transparent 65%
        );
}

.server-card-overlay {
    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(6, 6, 8, 0.97) 0%,
            rgba(7, 7, 9, 0.91) 31%,
            rgba(8, 8, 10, 0.66) 59%,
            rgba(8, 8, 10, 0.27) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 4, 5, 0.7),
            transparent 65%
        );
}

.server-card-content {
    position: relative;

    z-index: 2;

    min-height: 285px;

    padding:
        22px
        23px;

    display: flex;
    flex-direction: column;
}

.server-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-game-type {
    padding:
        5px
        8px;

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

    border-radius:
        3px;

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

    color: #929299;

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

    letter-spacing: 0.16em;
}

.server-status {
    padding:
        5px
        8px;

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

    border-radius:
        3px;

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

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

    letter-spacing: 0.12em;
}

.status-light {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}

.server-status.online {
    color: #72e999;
}

.server-status.offline {
    color: #ff5b61;
}

.server-status.offline .status-light {
    background: var(--red-bright);

    box-shadow:
        0 0 8px rgba(255, 48, 56, 0.65);
}

.status-text.offline {
    color: var(--red-bright);
}

.server-status.online .status-light {
    background: var(--green);

    box-shadow:
        0 0 8px rgba(56, 214, 107, 0.65);
}

.server-status.preparing {
    color: #f1b65a;
}

.server-status.preparing .status-light {
    background: var(--orange);

    box-shadow:
        0 0 8px rgba(230, 162, 60, 0.6);
}

.server-status.planned {
    color: #9999a0;
}

.server-status.planned .status-light {
    background: #7b7b82;
}

.server-card-info {
    margin-top: auto;
    margin-bottom: 18px;

    max-width: 390px;
}

.server-card-info h2 {
    margin:
        0
        0
        15px;

    color: #f4f4f5;

    font-size:
        clamp(17px, 1.6vw, 24px);

    font-weight: 950;

    line-height: 1.05;

    letter-spacing: -0.025em;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.7);
}

.server-meta {
    display: flex;
    flex-wrap: wrap;

    gap:
        11px
        24px;
}

.server-meta div {
    display: flex;
    flex-direction: column;
}

.server-meta span {
    margin-bottom: 2px;

    color: #777780;

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

    letter-spacing: 0.12em;
}

.server-meta strong {
    color: #dedee1;

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

.status-text.online {
    color: var(--green);
}

.status-text.preparing {
    color: var(--orange);
}

.status-text.planned {
    color: #888890;
}


/* =========================================================
   SERVER BUTTON
   ========================================================= */

.server-button {
    width: max-content;

    min-width: 128px;

    min-height: 33px;

    padding:
        0
        13px;

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

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

    border-radius:
        3px;

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

    color: #f4f4f4;

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

    letter-spacing: 0.08em;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.server-button span {
    color: var(--red-bright);

    font-size: 13px;
}

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

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

    box-shadow:
        0 0 18px rgba(227, 38, 46, 0.13);
}

.server-button.disabled {
    pointer-events: none;

    border-color:
        rgba(255, 255, 255, 0.1);

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

    color: #68686f;
}


/* =========================================================
   FUTURE CARD
   ========================================================= */

.future-card::before {
    filter:
        grayscale(1)
        brightness(0.4);
}

.future-card .server-card-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 9, 0.97),
            rgba(8, 8, 10, 0.72),
            rgba(8, 8, 10, 0.45)
        );
}

.future-description {
    max-width: 290px;

    margin:
        -4px
        0
        0;

    color: #8b8b93;

    font-size: 11px;
}


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

.site-footer {
    min-height: 90px;

    padding:
        22px
        clamp(28px, 4vw, 70px);

    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: #6f6f77;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #a8a8ae;

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

    letter-spacing: 0.05em;
}

.footer-brand span {
    margin-top: 2px;

    font-size: 8px;
}

.footer-copyright {
    font-size: 9px;

    text-align: center;
}

.footer-separator {
    margin:
        0
        6px;

    color: var(--red);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    font-size: 9px;

    transition:
        color var(--transition);
}

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


/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    position: fixed;

    inset: 0;

    z-index: 900;

    display: none;

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

    backdrop-filter:
        blur(3px);
}


/* =========================================================
   MEDIUM DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1180px) {

    :root {
        --sidebar-width: 215px;
    }

    .site-header {
        gap: 20px;
    }

    .global-server-stats {
        min-width: 285px;

        gap: 17px;

        padding:
            14px
            15px;
    }

    .server-card {
        min-height: 260px;
    }

    .server-card-content {
        min-height: 260px;
    }

}


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

@media (max-width: 960px) {

    :root {
        --sidebar-width: 190px;
    }

    .sidebar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sidebar-menu a {
        padding:
            0
            10px;
    }

    .global-server-stats {
        min-width: 250px;
    }

    .global-stat-label {
        font-size: 6px;
    }

    .server-grid {
        gap: 16px;
    }

    .server-card-content {
        padding:
            19px
            18px;
    }

}


/* =========================================================
   MOBILE
   IMPORTANT:
   Global player/server counter is completely hidden.
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 88px;
    }

    .main-wrapper {
        margin-left: 0;
    }


    /* -------------------------
       Sidebar
       ------------------------- */

    .sidebar {
        width:
            min(84vw, 310px);

        padding:
            20px
            17px;

        transform:
            translateX(-105%);

        transition:
            transform 240ms ease;

        box-shadow:
            25px 0 80px rgba(0, 0, 0, 0.6);
    }

    body.sidebar-open .sidebar {
        transform:
            translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .sidebar-mobile-header {
        margin-bottom: 30px;

        padding:
            2px
            8px
            15px;

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

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

    .sidebar-mobile-logo {
        font-size: 15px;
        font-weight: 950;

        letter-spacing: -0.02em;
    }

    .sidebar-mobile-logo::first-letter {
        color: var(--red-bright);
    }

    .sidebar-close {
        width: 34px;
        height: 34px;

        padding: 0;

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

        border-radius:
            4px;

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

        color: #b7b7bc;

        font-size: 24px;

        cursor: pointer;
    }


    /* -------------------------
       Header
       ------------------------- */

    .site-header {
        min-height:
            var(--header-height);

        padding:
            18px
            20px;

        display: flex;

        justify-content: center;

        position: relative;
    }

    .mobile-menu-button {
        position: absolute;

        left: 20px;
        top: 50%;

        transform:
            translateY(-50%);

        width: 38px;
        height: 38px;

        padding:
            8px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

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

        border-radius:
            4px;

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

        cursor: pointer;
    }

    .mobile-menu-button span {
        width: 100%;
        height: 2px;

        border-radius:
            2px;

        background:
            #b9b9be;
    }

    .brand {
        text-align: center;
    }

    .brand-main {
        font-size: 29px;
    }

    .brand-dot {
        font-size: 21px;
    }

    .brand-subtitle {
        margin-top: 8px;

        font-size: 6px;

        letter-spacing: 0.22em;
    }


    /*
       USER REQUIREMENT:
       Do not show Total Players Online /
       Servers Online on mobile devices.
    */

    .global-server-stats {
        display: none !important;
    }


    /* -------------------------
       Main content
       ------------------------- */

    .main-content {
        padding:
            30px
            17px
            45px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading h1 {
        font-size: 21px;
    }


    /* -------------------------
       One server per row
       ------------------------- */

    .server-grid {
        grid-template-columns:
            1fr;

        gap: 16px;
    }

    .server-card {
        min-height: 270px;
    }

    .server-card-content {
        min-height: 270px;

        padding:
            18px;
    }

    .server-card-info {
        max-width: 80%;
    }

    .server-card-info h2 {
        font-size: 20px;
    }

    .server-card-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(6, 6, 8, 0.96) 0%,
                rgba(7, 7, 9, 0.87) 39%,
                rgba(8, 8, 10, 0.43) 100%
            ),
            linear-gradient(
                0deg,
                rgba(4, 4, 5, 0.72),
                transparent 70%
            );
    }


    /* -------------------------
       Footer
       ------------------------- */

    .site-footer {
        padding:
            25px
            18px;

        grid-template-columns:
            1fr;

        gap: 12px;

        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

}


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

@media (max-width: 480px) {

    .site-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mobile-menu-button {
        left: 15px;

        width: 35px;
        height: 35px;
    }

    .brand-main {
        font-size: 25px;
    }

    .brand-dot {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .main-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .heading-line {
        display: none;
    }

    .server-card {
        min-height: 255px;
    }

    .server-card-content {
        min-height: 255px;

        padding:
            16px;
    }

    .server-card-info {
        max-width: 92%;
    }

    .server-meta {
        gap:
            9px
            17px;
    }

    .server-card-info h2 {
        font-size: 18px;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
