/* ==========================================================
   RAMPAGE GAMING COMMUNITY - OUR SERVERS
========================================================== */

.srv-page {
    color: #fff;
    background: #07090b;
}

.srv-container {
    width: min(1500px, calc(100% - 80px));
    margin: auto;
}


/* HERO */

.srv-hero {
    min-height: 430px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        url("/assets/hero-wardogs.jpg")
        center 43% / cover no-repeat;

    overflow: hidden;

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

.srv-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2,4,6,.96),
            rgba(2,4,6,.72) 45%,
            rgba(2,4,6,.38),
            rgba(2,4,6,.65)
        );
}

.srv-hero-content {
    position: relative;
    z-index: 2;
}

.srv-label {
    color: #ed1b36;

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

    letter-spacing: 3px;
}

.srv-hero h1 {
    margin: 9px 0;

    font-size:
        clamp(60px, 7vw, 110px);

    font-weight: 1000;

    line-height: .88;

    letter-spacing: -4px;
}

.srv-hero h1 span {
    color: #ed1b36;
}

.srv-hero p {
    margin: 18px 0 0;

    color: #aab2b7;

    font-size: 18px;
}

.srv-hero-buttons {
    margin-top: 27px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


/* BUTTONS */

.srv-button {
    min-height: 46px;

    padding: 0 19px;

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

    color: #fff;

    text-decoration: none;

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

    letter-spacing: .8px;

    border:
        1px solid rgba(255,255,255,.13);

    transition:
        transform .2s ease,
        background .2s ease;
}

.srv-button:hover {
    transform:
        translateY(-2px);
}

.srv-button-red {
    background: #e31932;

    border-color: #ed2940;
}

.srv-button-red:hover {
    background: #f0203a;
}

.srv-button-dark {
    background:
        rgba(8,11,14,.88);
}


/* STRIP */

.srv-strip {
    background: #0c0f12;

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

.srv-strip-grid {
    display: grid;

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

.srv-strip-grid > div {
    min-height: 82px;

    padding: 17px 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right:
        1px solid rgba(255,255,255,.07);
}

.srv-strip-grid > div:first-child {
    border-left:
        1px solid rgba(255,255,255,.07);
}

.srv-strip strong {
    font-size: 12px;
    font-weight: 900;
}

.srv-strip span {
    margin-top: 4px;

    color: #68737a;

    font-size: 11px;
}


/* SECTION */

.srv-section {
    padding: 85px 0;

    background: #07090b;
}

.srv-heading {
    margin-bottom: 30px;

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

    gap: 40px;
}

.srv-heading h2 {
    margin: 6px 0 0;

    font-size:
        clamp(34px, 4vw, 58px);

    line-height: .9;

    font-weight: 1000;
}

.srv-heading > p {
    max-width: 430px;

    margin: 0;

    color: #79848b;

    line-height: 1.6;
}


/* GRID */

.srv-grid {
    display: grid;

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

    gap: 15px;
}


/* CARDS */

.srv-card {
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #111519,
            #090c0f
        );

    border:
        1px solid rgba(255,255,255,.09);

    transition:
        transform .2s ease,
        border-color .2s ease;
}

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

    border-color:
        rgba(255,255,255,.20);
}

.srv-card-featured {
    border-color:
        rgba(227,25,50,.45);
}

.srv-card-image {
    height: 245px;

    position: relative;

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

    overflow: hidden;
}

.srv-image-wardogs {
    background-image:
        url("/assets/game-wardogs.jpg");
}

.srv-image-isle {
    background-image:
        url("/assets/game-isle.jpg");
}

.srv-image-arma {
    background-image:
        url("/assets/game-arma3.jpg");
}

.srv-image-squad {
    background-image:
        url("/assets/game-squad.jpg");
}

.srv-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3,5,7,.10),
            rgba(3,5,7,.12) 35%,
            rgba(3,5,7,.92)
        );
}

.srv-card-badges {
    position: absolute;

    z-index: 2;

    top: 16px;
    left: 16px;
    right: 16px;

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

    gap: 10px;
}

.srv-featured-badge,
.srv-info-badge,
.srv-status {
    min-height: 27px;

    padding: 0 9px;

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

    gap: 6px;

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

    letter-spacing: 1px;
}

.srv-featured-badge {
    background: #e31932;

    color: #fff;
}

.srv-info-badge {
    color: #aab3b9;

    background:
        rgba(4,6,8,.82);

    border:
        1px solid rgba(255,255,255,.12);
}

.srv-status {
    color: #d6ae51;

    background:
        rgba(4,6,8,.88);

    border:
        1px solid rgba(255,255,255,.12);
}

.srv-status i {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d6ae51;
}

.srv-status.online {
    color: #57dc89;
}

.srv-status.online i {
    background: #35d477;

    box-shadow:
        0 0 10px
        rgba(53,212,119,.6);
}

.srv-status.unknown {
    color: #b4bbc0;
}

.srv-status.unknown i {
    background: #7b858b;
}

.srv-card-title {
    position: absolute;

    z-index: 2;

    left: 22px;
    right: 22px;
    bottom: 20px;
}

.srv-card-title span {
    color: #e31932;

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

    letter-spacing: 2px;
}

.srv-card-title h3 {
    margin: 5px 0 0;

    font-size: 36px;
    font-weight: 1000;

    line-height: .9;
}

.srv-card-body {
    padding: 25px;
}

.srv-card-body h4 {
    margin: 0;

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

.srv-server-description {
    margin: 7px 0 21px;

    color: #7b858c;

    font-size: 12px;
}

.srv-stats {
    display: grid;

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

    border:
        1px solid rgba(255,255,255,.07);
}

.srv-stats > div {
    min-height: 67px;

    padding: 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right:
        1px solid rgba(255,255,255,.07);
}

.srv-stats > div:last-child {
    border-right: 0;
}

.srv-stats span {
    color: #5f6a71;

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

    letter-spacing: 1.2px;
}

.srv-stats strong {
    margin-top: 5px;

    font-size: 13px;
}

.srv-actions {
    margin-top: 17px;

    display: flex;

    gap: 8px;
}


/* COMMUNITY */

.srv-community {
    padding: 70px 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(227,25,50,.22),
            transparent 30%
        ),
        #0c1013;

    border-top:
        1px solid rgba(255,255,255,.07);
}

.srv-community-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.srv-community h2 {
    margin: 7px 0;

    font-size:
        clamp(36px, 4vw, 60px);

    line-height: .9;

    font-weight: 1000;
}

.srv-community h2 strong {
    color: #e31932;
}

.srv-community p {
    color: #7b858b;
}


/* FOOTER */

.srv-footer {
    padding: 48px 0 20px;

    background: #030506;

    border-top:
        1px solid rgba(255,255,255,.06);
}

.srv-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

.srv-footer-logo {
    font-size: 19px;
    font-weight: 1000;
}

.srv-footer-logo span {
    color: #e31932;
}

.srv-footer p {
    color: #5d686f;

    font-size: 11px;
}

.srv-footer-links {
    display: flex;

    gap: 23px;
}

.srv-footer-links a {
    color: #808a90;

    text-decoration: none;

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

.srv-footer-links a:hover {
    color: #fff;
}

.srv-footer-bottom {
    margin-top: 30px;

    padding-top: 17px;

    color: #495259;

    border-top:
        1px solid rgba(255,255,255,.05);

    font-size: 9px;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .srv-container {
        width:
            calc(100% - 36px);
    }

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

    .srv-strip-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .srv-heading,
    .srv-community-inner,
    .srv-footer-top {
        align-items: flex-start;

        flex-direction: column;
    }

    .srv-strip-grid {
        grid-template-columns: 1fr;
    }

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

    .srv-stats > div {
        border-right: 0;

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

    .srv-stats > div:last-child {
        border-bottom: 0;
    }

    .srv-actions {
        flex-direction: column;
    }

    .srv-button {
        width: 100%;
    }

    .srv-footer-links {
        flex-wrap: wrap;
    }

}


/* LIVE PLAYERS BUTTON START */

.rampage-live-players-btn {
    display: inline-flex;

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

    min-height: 42px;

    padding: 0 18px;

    border:
        1px solid
        rgba(239,35,60,.55);

    background:
        rgba(239,35,60,.08);

    color: #ef233c !important;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    text-decoration: none !important;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.rampage-live-players-btn:hover {
    background: #ef233c;

    border-color: #ef233c;

    color: #fff !important;
}


/* Smooth jump to leaderboard */

html {
    scroll-behavior: smooth;
}


#live-players {
    scroll-margin-top: 90px;
}

/* LIVE PLAYERS BUTTON END */


/* WARDOGS LIVE BUTTON START */

.srv-button-live {
    border:
        1px solid
        rgba(239,35,60,.55) !important;

    background:
        rgba(239,35,60,.08) !important;

    color:
        #ef233c !important;
}


.srv-button-live:hover {
    border-color:
        #ef233c !important;

    background:
        #ef233c !important;

    color:
        #ffffff !important;
}


/*
   WARDOGS now has three buttons,
   so let them share the row cleanly.
*/

.srv-card-featured .srv-actions {
    display: grid;

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

    gap: 8px;
}


.srv-card-featured .srv-actions .srv-button {
    width: 100%;

    padding-left: 10px;
    padding-right: 10px;

    white-space: nowrap;

    text-align: center;
}


@media (max-width: 650px) {

    .srv-card-featured .srv-actions {
        grid-template-columns:
            1fr;
    }

}

/* WARDOGS LIVE BUTTON END */


/* =========================================================
   OUR SERVERS - NEW HERO BACKGROUND
   ========================================================= */

html body .srv-hero {
    background-image: url("/assets/discord-background.png?v=6000") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #05080b !important;
}

/* Keep text readable over the image */
html body .srv-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(3,7,10,.88) 0%,
            rgba(3,7,10,.55) 38%,
            rgba(3,7,10,.18) 68%,
            rgba(3,7,10,.10) 100%
        ) !important;
}


/* =========================================================
   OUR SERVERS HERO - MATCH HOMEPAGE SIZE
   ========================================================= */

html body .srv-hero {
    position: relative !important;
    overflow: hidden !important;

    height: 430px !important;
    min-height: 430px !important;

    background-image: url("/assets/discord-background.png?v=7000") !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #05080b !important;
}

/* Keep the Servers text above the artwork */
html body .srv-hero-content {
    position: relative !important;
    z-index: 5 !important;
}

/* Same dark readability treatment */
html body .srv-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;

    background:
        linear-gradient(
            90deg,
            rgba(3,7,10,.80) 0%,
            rgba(3,7,10,.35) 35%,
            rgba(3,7,10,.05) 65%,
            rgba(3,7,10,0) 100%
        ) !important;
}

