/* ==========================================================
   RAMPAGE GAMING COMMUNITY - GAMES PAGE
========================================================== */

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

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


/* HERO */

.games-hero {
    min-height: 470px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

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

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

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

    background:
        linear-gradient(
            90deg,
            rgba(3,5,7,.97),
            rgba(3,5,7,.78) 42%,
            rgba(3,5,7,.32) 75%,
            rgba(3,5,7,.60)
        );
}

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

.games-label {
    color: #e31932;

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

    letter-spacing: 3px;
}

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

    font-size:
        clamp(68px, 8vw, 125px);

    font-weight: 1000;

    line-height: .82;

    letter-spacing: -5px;
}

.games-hero h1 span {
    color: #e31932;
}

.games-hero p {
    max-width: 590px;

    color: #a1aab0;

    font-size: 16px;
    line-height: 1.7;
}

.games-buttons {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


/* BUTTONS */

.games-button {
    min-height: 47px;

    padding: 0 20px;

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

    color: #fff;

    text-decoration: none;

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

    letter-spacing: .9px;

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

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

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

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

    border-color: #ef2940;
}

.games-button-red:hover {
    background: #f0213a;
}

.games-button-dark {
    background: #090c0f;
}

.games-button-glass {
    background:
        rgba(7,10,12,.72);
}


/* STRIP */

.games-strip {
    background: #0d1013;

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

.games-strip-grid {
    display: grid;

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

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

    padding: 18px 25px;

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

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

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

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

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

    color: #68737a;

    font-size: 11px;
}


/* GAME SECTION */

.games-section {
    padding: 85px 0;

    background: #07090b;
}

.games-heading {
    max-width: 720px;

    margin-bottom: 35px;
}

.games-heading h2 {
    margin: 7px 0;

    font-size:
        clamp(38px, 4vw, 62px);

    font-weight: 1000;

    line-height: .9;
}

.games-heading p {
    color: #79848b;

    line-height: 1.7;
}


/* GRID */

.games-grid {
    display: grid;

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

    gap: 14px;
}


/* GAME CARDS */

.game-large {
    min-height: 480px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: flex-end;

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

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

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

.game-large:hover {
    transform: translateY(-4px);

    border-color:
        rgba(227,25,50,.55);
}

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



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

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

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

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

.game-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(2,4,6,.05) 0%,
            rgba(2,4,6,.10) 32%,
            rgba(2,4,6,.70) 68%,
            rgba(2,4,6,.98) 100%
        );
}

.game-badges {
    position: absolute;

    z-index: 2;

    top: 18px;
    left: 18px;
    right: 18px;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.game-badges span {
    padding: 7px 9px;

    color: #b4bdc2;

    background:
        rgba(5,8,10,.82);

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

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

    letter-spacing: 1.3px;
}

.game-badges .game-featured {
    color: #fff;

    background: #e31932;

    border-color: #e31932;
}

.game-content {
    width: 100%;

    position: relative;
    z-index: 2;

    padding: 30px;
}

.game-category {
    color: #e31932;

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

    letter-spacing: 2px;
}

.game-content h3 {
    margin: 6px 0 10px;

    font-size:
        clamp(32px, 3vw, 48px);

    font-weight: 1000;

    line-height: .9;
}

.game-content > p {
    max-width: 580px;

    margin: 0;

    color: #9ba4aa;

    font-size: 13px;
    line-height: 1.65;
}

.game-meta {
    margin-top: 15px;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.game-meta span {
    padding: 5px 7px;

    color: #899399;

    background:
        rgba(255,255,255,.05);

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

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

.game-links {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


/* FIND SQUAD */

.games-find {
    padding: 70px 0;

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

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

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

.games-find-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.games-find h2 {
    margin: 7px 0;

    font-size:
        clamp(40px, 5vw, 70px);

    font-weight: 1000;

    line-height: .87;
}

.games-find h2 strong {
    color: #e31932;
}

.games-find p {
    max-width: 600px;

    color: #7d878e;

    line-height: 1.6;
}


/* REQUEST */

.games-request {
    padding: 65px 0;

    background: #07090b;
}

.games-request-inner {
    min-height: 190px;

    padding: 32px;

    display: grid;

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

    align-items: center;

    gap: 30px;

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

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

.games-request-number {
    width: 75px;
    height: 75px;

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

    color: #e31932;

    background:
        rgba(227,25,50,.08);

    border:
        1px solid rgba(227,25,50,.25);

    font-size: 40px;
    font-weight: 300;
}

.games-request h2 {
    margin: 5px 0;

    font-size: 29px;
    font-weight: 1000;
}

.games-request p {
    max-width: 600px;

    margin: 0;

    color: #778289;

    font-size: 13px;
    line-height: 1.6;
}


/* FOOTER */

.games-footer {
    padding: 50px 0 20px;

    background: #030506;
}

.games-footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

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

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

.games-footer p {
    color: #5f696f;

    font-size: 11px;
}

.games-footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 23px;
}

.games-footer-links a {
    color: #7e888e;

    text-decoration: none;

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

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

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

    padding-top: 17px;

    color: #485158;

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

    font-size: 9px;
}


/* RESPONSIVE */

@media (max-width: 950px) {

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

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

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

}


@media (max-width: 650px) {

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

    .games-find-grid,
    .games-footer-grid {
        align-items: flex-start;

        flex-direction: column;
    }

    .games-request-inner {
        grid-template-columns: 1fr;
    }

    .game-large {
        min-height: 520px;
    }

    .game-content {
        padding: 22px;
    }

    .games-button {
        width: 100%;
    }

}


/* =========================================================
   GAMES PAGE FINAL FIX
   ========================================================= */


/* HERO */

html body .games-hero,
html body .game-hero,
html body .games-page-hero,
html body section.games-hero,
html body section.game-hero {
    position: relative !important;
    overflow: hidden !important;

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

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


/* REMOVE OLD HERO IMAGE LAYERS */

html body .games-hero::before,
html body .games-hero::after,
html body .game-hero::before,
html body .game-hero::after,
html body .games-page-hero::before,
html body .games-page-hero::after {
    background-image: none !important;
}


/* HERO CONTENT */

html body .games-hero-content,
html body .game-hero-content,
html body .games-page-hero-content {
    position: relative !important;
    z-index: 5 !important;
}


/* =========================================================
   GAME GRID
   ========================================================= */

html body .games-grid,
html body .game-grid {
    display: grid !important;

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

    gap: 14px !important;

    align-items: stretch !important;
}


/* CARDS */

html body .games-grid > *,
html body .game-grid > * {
    width: 100% !important;
    min-width: 0 !important;
}


/* MORE GAMES - FULL WIDTH */

html body .games-grid > *:last-child,
html body .game-grid > *:last-child {
    grid-column: 1 / -1 !important;
}


/* MOBILE */

@media (max-width: 850px) {

    html body .games-grid,
    html body .game-grid {
        grid-template-columns: 1fr !important;
    }

    html body .games-grid > *:last-child,
    html body .game-grid > *:last-child {
        grid-column: auto !important;
    }
}

