/* ============================================================
   LOYALGAMES
   Main Theme Styles
============================================================ */

:root {
    --bg: #070809;
    --bg-soft: #0d0f11;
    --panel: #111417;
    --panel-hover: #161a1e;

    --text: #f2f2f2;
    --text-soft: #9a9da2;

    --accent: #e32636;
    --accent-hover: #ff3545;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --green: #37d67a;

    --container: 1180px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(70, 18, 22, 0.12),
            transparent 38%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
}

body,
button,
input,
textarea {
    font-family: inherit;
}

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

img {
    max-width: 100%;
    height: auto;
}


/* ============================================================
   GENERAL
============================================================ */

.section-container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.section-label {
    display: block;
    margin-bottom: 8px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 27px;

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

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-secondary {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
}


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

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: 76px;

    background: rgba(5, 6, 7, 0.92);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
}

.header-inner {
    display: flex;
    align-items: center;

    width: min(calc(100% - 48px), var(--container));
    height: 100%;

    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-right: auto;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 2px solid var(--accent);

    color: var(--accent);

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

    transform: skew(-6deg);
}

.logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;

    margin-right: 38px;
}

.main-navigation a {
    position: relative;

    padding: 29px 0 26px;

    color: #b7b9bd;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;

    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation a::after {
    content: "";

    position: absolute;
    bottom: 20px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.2s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.rcon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 18px;

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

    color: #fff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;

    transition: 0.2s ease;
}

.rcon-button:hover {
    background: var(--accent);

    box-shadow:
        0 0 25px rgba(227, 38, 54, 0.25);
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    background: transparent;

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

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: #fff;
}


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

.hero {
    position: relative;

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

    min-height: 760px;
    height: 88vh;

    padding: 130px 24px 80px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(75, 19, 25, 0.23),
            transparent 34%
        ),
        linear-gradient(
            90deg,
            rgba(4, 5, 6, 1) 0%,
            rgba(8, 9, 10, 0.75) 35%,
            rgba(8, 9, 10, 0.72) 65%,
            rgba(4, 5, 6, 1) 100%
        ),
        linear-gradient(
            180deg,
            #121416 0%,
            #090a0b 70%,
            #070809 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.18;

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

    background-size: 60px 60px;
}

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

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            var(--bg) 100%
        );

    pointer-events: none;
}

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

    width: 100%;
    max-width: 900px;

    text-align: center;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    margin: 0 auto 28px;

    border: 3px solid var(--accent);

    color: var(--accent);

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

    transform: skew(-5deg);

    box-shadow:
        0 0 50px rgba(227, 38, 54, 0.12);
}

.hero-eyebrow {
    margin-bottom: 12px;

    color: #a3a6aa;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;

    color: #f4f4f4;

    font-size: clamp(54px, 7vw, 92px);
    font-weight: 950;

    line-height: 0.95;

    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    margin: 28px 0 34px;

    color: #a6a8ac;

    font-size: 15px;
    letter-spacing: 1px;
}

.hero-description span {
    margin: 0 10px;

    color: var(--accent);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.scroll-down {
    position: absolute;
    bottom: 38px;
    left: 50%;

    z-index: 3;

    color: #76797d;

    font-size: 18px;

    transform: translateX(-50%);
}

.scroll-down:hover {
    color: var(--accent);
}


/* ============================================================
   FEATURE CARDS
============================================================ */

.community-section {
    position: relative;

    padding: 0 0 110px;

    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    position: relative;
    z-index: 5;

    margin-top: -30px;
}

.feature-card {
    position: relative;

    min-height: 285px;
    padding: 38px 34px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.008)
        ),
        var(--panel);

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

    transition: 0.25s ease;
}

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

    position: absolute;
    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background: var(--accent);

    transition: height 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(227, 38, 54, 0.35);

    background:
        linear-gradient(
            145deg,
            rgba(227, 38, 54, 0.055),
            rgba(255, 255, 255, 0.01)
        ),
        var(--panel-hover);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    margin-bottom: 24px;

    color: var(--accent);

    font-size: 28px;
}

.feature-card h2 {
    margin: 0 0 15px;

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

    line-height: 1.05;
}

.feature-card h2 span {
    color: var(--accent);
}

.feature-card p {
    max-width: 300px;

    margin: 0 0 28px;

    color: var(--text-soft);

    font-size: 13px;
}

.feature-link {
    color: #fff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.feature-link:hover {
    color: var(--accent);
}


/* ============================================================
   SERVERS
============================================================ */

.servers-section {
    padding: 105px 0 125px;

    background:
        linear-gradient(
            180deg,
            var(--bg-soft),
            #08090a
        );

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

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(38px, 5vw, 56px);
    font-weight: 950;

    line-height: 1;

    letter-spacing: -2px;
}

.section-heading h2 span {
    color: var(--accent);
}

.server-summary {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

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

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 10px rgba(55, 214, 122, 0.5);
}

.server-table {
    overflow: hidden;

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

.server-row {
    display: grid;
    grid-template-columns: 2fr 0.7fr 1fr 0.7fr;
    align-items: center;

    min-height: 76px;
    padding: 0 25px;

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

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

    transition: background 0.2s ease;
}

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

.server-row:not(.server-header):hover {
    background: rgba(255, 255, 255, 0.03);
}

.server-header {
    min-height: 42px;

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

    color: #696d72;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.server-name {
    display: flex;
    flex-direction: column;
}

.server-name strong {
    color: #eee;

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

.server-name span {
    margin-top: 2px;

    color: #686c70;

    font-size: 10px;
}

.server-players,
.server-map {
    color: #b8babd;

    font-size: 12px;
}

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

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
}

.server-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}

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

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

    box-shadow:
        0 0 8px rgba(55, 214, 122, 0.45);
}


/* ============================================================
   ABOUT
============================================================ */

.about-section {
    padding: 150px 0;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(120, 20, 28, 0.12),
            transparent 35%
        ),
        #08090a;
}

.about-content {
    max-width: 650px;
}

.about-content h2 {
    margin: 0 0 25px;

    font-size: clamp(42px, 6vw, 70px);
    font-weight: 950;

    line-height: 0.98;

    letter-spacing: -3px;
}

.about-content h2 span {
    color: var(--accent);
}

.about-content p {
    max-width: 540px;

    margin: 0 0 34px;

    color: var(--text-soft);

    font-size: 15px;
}


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

.site-footer {
    padding: 50px 0;

    background: #050607;

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

.footer-inner {
    display: flex;
    align-items: center;

    width: min(calc(100% - 48px), var(--container));

    margin: 0 auto;
}

.footer-brand {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-text {
    margin-left: 30px;

    color: #65686c;

    font-size: 10px;
    letter-spacing: 1px;
}

.footer-copyright {
    margin-left: auto;

    color: #55585c;

    font-size: 10px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .main-navigation,
    .header-actions {
        display: none;
    }

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

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

    .server-row {
        grid-template-columns: 1.6fr 0.6fr 1fr;
    }

    .server-row > div:nth-child(3) {
        display: none;
    }
}


@media (max-width: 600px) {

    .section-container,
    .header-inner,
    .footer-inner {
        width: min(calc(100% - 30px), var(--container));
    }

    .site-header {
        height: 66px;
    }

    .logo-text {
        font-size: 15px;
    }

    .hero {
        min-height: 680px;
        height: 100vh;

        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-logo {
        width: 82px;
        height: 82px;

        font-size: 25px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .hero h1 {
        font-size: clamp(45px, 15vw, 68px);

        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
        max-width: 280px;
    }

    .feature-grid {
        margin-top: 0;
    }

    .community-section {
        padding-top: 30px;
    }

    .section-heading {
        display: block;
    }

    .server-summary {
        margin-top: 18px;
    }

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

        padding: 14px 16px;
    }

    .server-row > div:nth-child(2),
    .server-row > div:nth-child(3) {
        display: none;
    }

    .about-section {
        padding: 100px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-text,
    .footer-copyright {
        margin-left: 0;
    }
}

/* ============================================================
   LOYALGAMES REAL LOGO
============================================================ */

.header-logo-image {
    display: block;
    width: auto;
    height: 54px;
    max-width: 130px;
    object-fit: contain;
}

/* ============================================================
   LOYALGAMES HERO LOGO
============================================================ */

.hero-logo-image {
    display: block;
    width: 220px;
    height: auto;
    max-width: 80%;
    margin: 0 auto 28px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(197, 157, 73, 0.18))
        drop-shadow(0 0 30px rgba(0, 0, 0, 0.45));
}

@media (max-width: 600px) {
    .hero-logo-image {
        width: 170px;
    }
}

/* ============================================================
   WORDPRESS PAGES
============================================================ */

.loyal-page {
    padding-top: 76px;
    min-height: calc(100vh - 76px);
}

.loyal-page-section {
    padding: 120px 0 140px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(120, 20, 28, 0.12),
            transparent 35%
        ),
        var(--bg);
}

.loyal-page-header {
    margin-bottom: 55px;
}

.loyal-page-header h1 {
    margin: 0;

    color: #f4f4f4;

    font-size: clamp(48px, 6vw, 72px);
    font-weight: 950;

    line-height: 1;

    letter-spacing: -3px;
}

.loyal-page-content {
    max-width: 850px;

    color: var(--text-soft);

    font-size: 15px;
}

.loyal-page-content h2,
.loyal-page-content h3 {
    color: #f2f2f2;
}

.loyal-page-content a {
    color: var(--accent);
}

.loyal-page-content a:hover {
    color: var(--accent-hover);
}

.loyal-page-content p {
    margin: 0 0 24px;
}

.loyal-page-content ul,
.loyal-page-content ol {
    margin-bottom: 24px;
}

@media (max-width: 600px) {

    .loyal-page {
        padding-top: 66px;
    }

    .loyal-page-section {
        padding: 90px 0 100px;
    }

    .loyal-page-header {
        margin-bottom: 40px;
    }

}

/* ============================================================
   WORDPRESS NAVIGATION
============================================================ */

.main-navigation > ul {
    display: flex;
    align-items: center;
    gap: 34px;

    margin: 0 38px 0 0;
    padding: 0;

    list-style: none;
}

.main-navigation > ul > li {
    display: block;

    margin: 0;
    padding: 0;
}

.main-navigation > ul > li > a {
    position: relative;

    display: block;

    padding: 29px 0 26px;

    color: #b7b9bd;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;

    transition: color 0.2s ease;
}

.main-navigation > ul > li > a:hover {
    color: #fff;
}

.main-navigation > ul > li > a::after {
    content: "";

    position: absolute;
    bottom: 20px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.2s ease;
}

.main-navigation > ul > li > a:hover::after {
    width: 100%;
}

/* ============================================================
   FORCE WORDPRESS MENU HORIZONTAL
============================================================ */

nav.main-navigation > ul#menu-main-navigation {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 34px !important;

    margin: 0 38px 0 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

nav.main-navigation > ul#menu-main-navigation > li {
    display: block !important;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   NEWS POSTS
============================================================ */

.news-post {
    width: 100%;
    margin-bottom: 35px;
    padding: 30px 35px;

    background: var(--panel);

    border: 1px solid rgba(227, 38, 54, 0.45);
    border-radius: 8px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.30);
}

.news-post-date {
    margin-bottom: 20px;

    color: var(--text-soft);

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

.news-post-content {
    color: var(--text);
    line-height: 1.75;
}

.news-post-content p {
    margin: 0 0 1.2em;
}

.news-post-content p:last-child {
    margin-bottom: 0;
}

.news-post-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 25px auto;

    border-radius: 5px;
}

.news-post-content a {
    color: var(--accent);
}

.news-post-content a:hover {
    color: var(--accent-hover);
}

@media (max-width: 700px) {

    .news-post {
        margin-bottom: 25px;
        padding: 25px 20px;
    }

    .news-post-content {
        line-height: 1.7;
    }
}


/* ============================================================
   LOYALGAMES - NEWS RAJDHANI OVERRIDE
   ============================================================ */

.news-post-content {
    font-family: "Rajdhani", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: #d6d6d6;
}

.news-post-content p {
    margin: 0 0 1.2em;
}

.news-post-content p:last-child {
    margin-bottom: 0;
}

.news-post-content a {
    color: #e0bd5a;
    font-weight: 600;
    text-decoration: none;
}

.news-post-content a:hover {
    color: #f0c96a;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .news-post-content {
        font-size: 18px;
        line-height: 1.65;
    }
}

