/* =========================================================
   SUPERNOVA MODS
   Main Stylesheet
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg-main: #050708;
    --bg-card: #0b0e11;
    --bg-card-light: #101419;

    --border: rgba(255, 255, 255, 0.08);
    --border-orange: rgba(255, 105, 0, 0.65);

    --orange: #ff6900;
    --orange-light: #ff8a32;

    --text-main: #f2f2f2;
    --text-light: #c5c8cc;
    --text-muted: #7d838a;

    --shadow-orange:
        0 0 35px rgba(255, 105, 0, 0.08);

    --radius: 14px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg-main);
    color: var(--text-main);

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    direction: rtl;

    min-height: 100vh;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea {
    font-family: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.mods-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 105, 0, 0.045),
            transparent 35%
        ),
        #050708;
}


/* =========================================================
   HEADER
========================================================= */

.mods-header {
    height: 76px;

    background:
        rgba(5, 7, 8, 0.94);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    position: relative;
    z-index: 50;

    backdrop-filter: blur(12px);
}


.header-inner {
    width: min(1420px, calc(100% - 50px));

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 55px;
}


/* =========================================================
   LOGO
========================================================= */

.mods-logo {
    font-size: 26px;

    font-weight: 900;

    letter-spacing: -1px;

    white-space: nowrap;
}


.mods-logo span {
    color: var(--orange);
}


/* =========================================================
   NAV
========================================================= */

.mods-nav {
    display: flex;

    align-items: center;

    gap: 42px;

    margin-right: auto;
}


.mods-nav a {
    position: relative;

    color: #d9d9d9;

    font-size: 14px;

    padding:
        28px 0;

    transition:
        color 0.25s ease;
}


.mods-nav a:hover,
.mods-nav a.active {
    color: var(--orange);
}


.mods-nav a.active::after {
    content: "";

    position: absolute;

    bottom: 0;

    right: 0;

    left: 0;

    height: 3px;

    background:
        var(--orange);

    box-shadow:
        0 0 12px rgba(255, 105, 0, 0.7);
}


/* =========================================================
   USER
========================================================= */

.login-link {
    color: var(--text-light);

    font-size: 13px;

    padding:
        10px 18px;

    border:
        1px solid rgba(255, 105, 0, 0.35);

    border-radius: 8px;

    transition:
        all 0.25s ease;
}


.login-link:hover {
    color: white;

    background:
        rgba(255, 105, 0, 0.1);

    border-color:
        var(--orange);
}


/* =========================================================
   HERO
========================================================= */

.mods-hero {
    height: 330px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.hero-background {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 7, 8, 0.15),
            #050708 92%
        ),
        radial-gradient(
            ellipse at center,
            rgba(255, 105, 0, 0.10),
            transparent 55%
        );

    pointer-events: none;
}


.hero-background::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -330px;
    left: 50%;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 105, 0, 0.13),
            transparent 65%
        );

    filter:
        blur(10px);
}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding-top: 15px;
}


.hero-label {
    color: var(--orange);

    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 14px;

    font-weight: 700;
}


.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);

    line-height: 1.2;

    font-weight: 900;

    margin-bottom: 16px;

    text-shadow:
        0 0 35px rgba(255, 255, 255, 0.08);
}


.hero-content p {
    color: var(--text-light);

    font-size: 15px;

    line-height: 2;

    max-width: 700px;

    margin: auto;
}


.hero-divider {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 22px;
}


.hero-divider span {
    width: 45px;

    height: 1px;

    background:
        var(--orange);
}


.hero-divider b {
    color: var(--orange);

    font-size: 12px;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.mods-container {
    width: min(1460px, calc(100% - 70px));

    margin:
        -20px auto 0;

    position: relative;

    z-index: 5;
}


/* =========================================================
   GAMES SECTION
========================================================= */

.games-section {
    background:
        linear-gradient(
            145deg,
            rgba(14, 18, 21, 0.97),
            rgba(7, 9, 11, 0.98)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        38px 42px 45px;

    box-shadow:
        var(--shadow-orange);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 25px;

    margin-bottom: 35px;
}


.section-heading-text {
    text-align: center;
}


.section-label {
    display: block;

    color: var(--orange);

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 7px;

    font-weight: 700;
}


.section-heading h2 {
    font-size: 28px;

    margin-bottom: 8px;

    font-weight: 900;
}


.section-heading p {
    color: var(--text-muted);

    font-size: 13px;
}


.section-line {
    height: 1px;

    background:
        linear-gradient(
            to left,
            transparent,
            rgba(255, 105, 0, 0.45)
        );
}


.section-line:last-child {
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(255, 105, 0, 0.45)
        );
}


/* =========================================================
   GAMES GRID
========================================================= */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 18px;
}


/*
   5 cards:

   first row:
   3 cards

   second row:
   2 centered cards
*/

.game-card:nth-child(1),
.game-card:nth-child(2),
.game-card:nth-child(3) {
    grid-column: span 2;
}


.game-card:nth-child(4) {
    grid-column:
        2 / span 2;
}


.game-card:nth-child(5) {
    grid-column:
        4 / span 2;
}


/* =========================================================
   GAME CARD
========================================================= */

.game-card {
    position: relative;

    min-height: 340px;

    overflow: hidden;

    border-radius: 10px;

    border:
        1px solid rgba(255, 105, 0, 0.4);

    background:
        #080a0c;

    isolation: isolate;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.game-card:hover {
    transform:
        translateY(-6px);

    border-color:
        var(--orange);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(255, 105, 0, 0.12);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.game-card-image {
    position: absolute;

    inset: 0;

    z-index: -3;

    background-position:
        center;

    background-size:
        cover;

    background-repeat:
        no-repeat;

    transform:
        scale(1.01);

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


.game-card:hover .game-card-image {
    transform:
        scale(1.07);

    filter:
        brightness(1.08);
}


/* =========================================================
   CARD OVERLAY
========================================================= */

.game-card-overlay {
    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.30) 35%,
            rgba(3, 5, 6, 0.92) 78%,
            #050607 100%
        );
}


.game-card-overlay::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 105, 0, 0.05),
            transparent 40%
        );
}


/* =========================================================
   CARD CONTENT
========================================================= */

.game-card-content {
    height: 100%;

    min-height: 340px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding:
        18px;
}


.game-card-number {
    color:
        rgba(255, 255, 255, 0.55);

    font-size: 10px;

    direction: ltr;

    text-align: left;
}


.game-card-info {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    margin-bottom: 17px;
}


.game-title {
    min-width: 0;
}


.game-title small {
    display: block;

    color:
        #c7c7c7;

    font-size: 9px;

    line-height: 1.5;

    margin-bottom: 5px;

    direction: ltr;

    text-align: right;
}


.game-title h3 {
    font-size: 24px;

    font-weight: 900;

    line-height: 1.2;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8);
}


.game-count {
    display: flex;

    align-items: baseline;

    gap: 5px;

    white-space: nowrap;
}


.game-count strong {
    color:
        white;

    font-size: 21px;
}


.game-count span {
    color:
        var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   CARD BUTTON
========================================================= */

.game-card-button {
    height: 48px;

    border:
        1px solid rgba(255, 105, 0, 0.45);

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background:
        rgba(4, 6, 7, 0.65);

    color:
        #ededed;

    font-size: 13px;

    backdrop-filter:
        blur(5px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


.game-card:hover .game-card-button {
    background:
        rgba(255, 105, 0, 0.09);

    border-color:
        var(--orange);

    color:
        white;
}


.game-card-button b {
    color:
        var(--orange);

    font-size: 18px;

    transition:
        transform 0.25s ease;
}


.game-card:hover .game-card-button b {
    transform:
        translateX(-4px);
}


/* =========================================================
   STATISTICS
========================================================= */

.mods-statistics {
    margin-top: 8px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background:
        linear-gradient(
            145deg,
            rgba(12, 15, 18, 0.97),
            rgba(7, 9, 11, 0.98)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    min-height: 115px;
}


.stat-item {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    position: relative;
}


.stat-item:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 0;

    top: 25%;

    bottom: 25%;

    width: 1px;

    background:
        rgba(255, 255, 255, 0.08);
}


.stat-icon {
    width: 48px;

    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--orange);

    font-size: 22px;

    background:
        rgba(255, 105, 0, 0.08);

    border:
        1px solid rgba(255, 105, 0, 0.16);
}


.stat-item strong {
    display: block;

    font-size: 25px;

    line-height: 1.2;

    direction: ltr;
}


.stat-item span {
    display: block;

    color:
        var(--text-muted);

    font-size: 11px;

    margin-top: 4px;
}


/* =========================================================
   FOOTER
========================================================= */

.mods-footer {
    width:
        min(1460px, calc(100% - 70px));

    margin:
        35px auto 0;

    padding:
        30px 0 45px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color:
        var(--text-muted);

    font-size: 12px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}


.mods-footer strong {
    color:
        #eeeeee;

    font-size: 18px;
}


.mods-footer strong span {
    color:
        var(--orange);
}


.mods-footer p {
    margin-top: 6px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .header-inner {
        width:
            calc(100% - 30px);

        gap: 25px;
    }


    .mods-nav {
        gap: 20px;
    }


    .games-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .game-card:nth-child(n) {
        grid-column:
            auto;
    }


    .mods-statistics {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .stat-item {
        min-height: 100px;
    }

}


@media (max-width: 700px) {

    .mods-header {
        height: auto;
    }


    .header-inner {
        min-height: 70px;

        flex-wrap: wrap;

        justify-content: center;

        padding:
            12px 0;
    }


    .mods-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        overflow-x: auto;

        padding-bottom: 5px;
    }


    .mods-nav a {
        padding:
            8px 0;

        white-space: nowrap;
    }


    .mods-nav a.active::after {
        bottom: -3px;
    }


    .mods-hero {
        height: 280px;
    }


    .hero-content {
        padding:
            0 20px;
    }


    .hero-content h1 {
        font-size: 42px;
    }


    .hero-content p {
        font-size: 13px;
    }


    .mods-container {
        width:
            calc(100% - 24px);

        margin-top:
            -15px;
    }


    .games-section {
        padding:
            25px 15px 30px;
    }


    .section-heading {
        grid-template-columns:
            1fr;
    }


    .section-line {
        display: none;
    }


    .section-heading h2 {
        font-size: 23px;
    }


    .games-grid {
        grid-template-columns:
            1fr;
    }


    .game-card:nth-child(n) {
        grid-column:
            auto;
    }


    .game-card,
    .game-card-content {
        min-height: 310px;
    }


    .mods-statistics {
        grid-template-columns:
            1fr 1fr;

        margin-top: 8px;
    }


    .stat-item {
        padding:
            20px 10px;

        justify-content:
            flex-start;

        padding-right:
            25px;
    }


    .stat-item:nth-child(2)::after {
        display: none;
    }


    .mods-footer {
        width:
            calc(100% - 24px);

        flex-direction:
            column;

        gap: 15px;

        text-align: center;
    }

}


@media (max-width: 450px) {

    .mods-logo {
        font-size: 21px;
    }


    .login-link {
        padding:
            8px 12px;

        font-size: 11px;
    }


    .mods-nav {
        gap: 16px;
    }


    .mods-nav a {
        font-size: 12px;
    }


    .game-title h3 {
        font-size: 20px;
    }


    .game-count strong {
        font-size: 18px;
    }


    .game-card-button {
        height: 44px;

        font-size: 12px;
    }


    .stat-icon {
        width: 40px;

        height: 40px;

        font-size: 18px;
    }


    .stat-item strong {
        font-size: 20px;
    }

}