/* ---------- MREJATA HOMEPAGE THEME ---------- */
:root {
    --bg: #070a12;
    --bg-soft: #0d1324;
    --card: rgba(15, 23, 42, .82);
    --card-strong: rgba(17, 24, 39, .96);
    --line: rgba(148, 163, 184, .18);
    --text: #eef2ff;
    --muted: #9ca3af;
    --accent: #38bdf8;
    --accent-2: #a78bfa;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 24px 80px rgba(0,0,0,.42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .20), transparent 34rem),
        radial-gradient(circle at 82% 12%, rgba(167, 139, 250, .18), transparent 30rem),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, .08), transparent 28rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 76%);
    z-index: -1;
}

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

a:hover {
    color: #bae6fd;
}

/* ---------- HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(7,10,18,.76), rgba(7,10,18,.34));
    border-bottom: 1px solid rgba(148, 163, 184, .10);
}

.logo-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
}

.logo {
    display: grid;
    place-items: center;
}

.logo img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(56,189,248,.20);
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links:last-child {
    justify-content: flex-end;
}

.nav-links a,
.social-icons a {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, .62);
    color: #dbeafe;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-links a:hover,
.social-icons a:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, .55);
    background: rgba(56, 189, 248, .12);
    color: #fff;
}

/* ---------- ADS ---------- */
.ads-inline,
.banner-ad {
    width: min(1180px, calc(100% - 32px));
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    text-align: center;
}

.ads-inline iframe,
.banner-ad iframe,
.ad-section iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* ---------- GAME SECTIONS ---------- */
#games-wrapper {
    width: 100%;
}

.game-section {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
}

.game-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.game-section-header h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: .98;
    color: var(--text);
    letter-spacing: -.05em;
}

.game-section-header span {
    color: var(--muted);
    font-weight: 800;
}

/* ---------- GAME GRID ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* ---------- SERVER CARD ---------- */
.server-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 28px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56,189,248,.45);
    box-shadow:
        0 30px 90px rgba(0,0,0,.52),
        0 0 42px rgba(56,189,248,.16);
}

.server-card-overlay {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(2,6,23,.12), rgba(2,6,23,.96)),
        radial-gradient(circle at top right, rgba(56,189,248,.16), transparent 260px),
        radial-gradient(circle at bottom left, rgba(167,139,250,.13), transparent 240px);
}

.server-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-top img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(2,6,23,.74);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.server-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.035em;
    color: #f8fafc;
    line-height: 1.08;
}

.server-game {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.server-meta {
    margin-top: 14px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.server-links {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.server-links a {
    border: 1px solid var(--line);
    background: rgba(15,23,42,.72);
    color: #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.server-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(56,189,248,.5);
    background: rgba(56,189,248,.12);
    color: #fff;
}

/* ---------- HOSTING SECTION ---------- */
.image-links {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 28px;
    text-align: center;
}

.image-links center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.image-links a {
    display: grid;
    place-items: center;
    min-width: 140px;
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    padding: 12px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.image-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.08);
}

.image-links img {
    width: auto !important;
    max-width: 120px;
    max-height: 42px;
    object-fit: contain;
}

/* Text line before hosting logos */
.banner-ad + text,
body > br {
    color: var(--muted);
}


/* ---------- PAGE LOADER ---------- */
:root {
    --loader-size: 64px;
}

.o-page-loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.20), transparent 30rem),
        radial-gradient(circle at 80% 20%, rgba(167,139,250,.20), transparent 28rem),
        var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    pointer-events: all;
    transition: opacity .5s ease, visibility .5s ease;
}

.o-page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.o-page-loader--spinner {
    width: var(--loader-size);
    height: var(--loader-size);
    margin-bottom: 16px;
    animation: rotate-plane 1.2s infinite ease-in-out;
    transform-style: preserve-3d;
    object-fit: contain;
}

.o-page-loader--message {
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
}

@keyframes rotate-plane {
    0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { transform: perspective(120px) rotateX(-180deg) rotateY(0deg); }
    100% { transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); }
}

/* ---------- LEGACY / OPTIONAL ---------- */
.ad-container {
    border: 1px solid var(--line);
    padding: 12px;
    text-align: center;
    margin: 24px auto;
    max-width: 728px;
    border-radius: 18px;
    background: rgba(15,23,42,.62);
}

.ad-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ad-container a.ad-link {
    margin-top: 6px;
    font-size: .9rem;
    color: #bae6fd;
    text-decoration: none;
    display: inline-block;
}

.ad-container a.ad-link:hover {
    text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .logo-nav {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .nav-links,
    .nav-links:last-child {
        justify-content: center;
        flex-wrap: wrap;
    }

    .game-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .logo img {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 8px 9px;
    }

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

    .server-card,
    .server-card-overlay {
        min-height: 230px;
    }

    .server-top img {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .server-name {
        font-size: 18px;
    }

    .ads-inline iframe,
    .banner-ad iframe {
        max-width: 100%;
    }

    .image-links a {
        min-width: 130px;
    }

.server-card-overlay {
    position: relative;
}

.server-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 10;

    padding: 8px 14px;
    border-radius: 999px;

    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;

    box-shadow: 0 12px 32px rgba(249,115,22,.35);

    pointer-events: none;
}

.server-card.is-boosted {
    border-color: rgba(249,115,22,.55);
    box-shadow:
        0 30px 90px rgba(0,0,0,.52),
        0 0 42px rgba(249,115,22,.20);
}


}

/* ---------- INTRO ---------- */

.site-intro {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    padding: 48px;

    text-align: center;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;

    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.site-intro h1 {
    margin: 0 0 18px;

    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: .95;
}

.site-intro p {
    max-width: 800px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

/* ---------- SEO SECTION ---------- */

.seo-content {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;

    text-align: center;
}

.seo-content h2 {
    margin-bottom: 26px;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.seo-grid > div {
    padding: 28px;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;

    box-shadow: var(--shadow);

    transition: all .2s ease;
}

.seo-grid > div:hover {
    transform: translateY(-4px);

    border-color: rgba(56,189,248,.35);

    box-shadow:
        0 30px 90px rgba(0,0,0,.52),
        0 0 40px rgba(56,189,248,.12);
}

.seo-grid p {
    margin: 0;

    color: var(--muted);
    line-height: 1.8;
}

@media (max-width: 1000px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .site-intro {
        padding: 30px 20px;
    }

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

    .site-intro h1 {
        font-size: 32px;
    }
}

.submit-server-card {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
    padding: 0;
}

.submit-server-content {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(88,101,242,.24), transparent 42%),
        linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(17, 24, 39, .74));

    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.submit-server-content::before {
    display: none;
}

.submit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56,189,248,.12);
    border: 1px solid rgba(56,189,248,.24);
    color: #bae6fd;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.submit-server-content h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.submit-server-content p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--muted);
}

.submit-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

.submit-btn-primary {
    background: rgba(56,189,248,.18);
    color: #e0f2fe;
    border: 1px solid rgba(56,189,248,.42);
}

.submit-btn-primary:hover {
    background: rgba(56,189,248,.26);
    color: #fff;
}

.submit-btn-secondary {
    background: rgba(15,23,42,.72);
    color: #dbeafe;
    border: 1px solid var(--line);
}

.submit-btn-secondary:hover {
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.10);
    color: #fff;
}

@media (max-width: 640px) {
    .submit-server-content {
        padding: 30px 20px;
    }

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

    .submit-btn {
        width: 100%;
    }
}

.discord-widget{
    width:min(1180px,calc(100% - 32px));
    margin:42px auto;
}

.discord-content{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:32px;

    background:var(--card);
    border:1px solid var(--line);
    border-radius:28px;
    padding:40px;

    box-shadow:var(--shadow);
    backdrop-filter:blur(12px);
}

.discord-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:8px 14px;
    border-radius:999px;

    background:rgba(56,189,248,.12);
    border:1px solid rgba(56,189,248,.24);

    color:#bae6fd;
    font-size:13px;
    font-weight:800;
}

.discord-left h2{
    margin:18px 0 12px;
    font-size:42px;
    font-weight:900;
    letter-spacing:-.04em;
}

.discord-left p{
    color:var(--muted);
    line-height:1.8;
}

.discord-stats{
    display:flex;
    gap:16px;
    margin-top:24px;
}

.discord-stat{
    flex:1;

    background:rgba(255,255,255,.04);
    border:1px solid var(--line);

    border-radius:18px;
    padding:18px;
}

.discord-stat strong{
    display:block;
    font-size:34px;
    font-weight:900;
}

.discord-stat span{
    color:var(--muted);
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.discord-stat.online strong{
    color:var(--success);
}

.discord-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;

    margin-top:24px;
    padding:14px 22px;

    border-radius:999px;

    background:rgba(56,189,248,.18);
    border:1px solid rgba(56,189,248,.42);

    color:#e0f2fe;
    font-weight:800;

    transition:.2s;
}

.discord-btn:hover{
    transform:translateY(-2px);
    background:rgba(56,189,248,.26);
}

.discord-right{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(64px,1fr));
    gap:14px;
    align-content:start;
}

.discord-avatar{
    width:64px;
    height:64px;
    object-fit:cover;

    border-radius:20px;

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

    transition:.2s;
}

.discord-avatar:hover{
    transform:translateY(-3px);
    border-color:rgba(56,189,248,.45);

    box-shadow:0 0 25px rgba(56,189,248,.18);
}

@media(max-width:900px){

    .discord-content{
        grid-template-columns:1fr;
    }

    .discord-right{
        grid-template-columns:repeat(auto-fill,minmax(56px,1fr));
    }
}



/* ---------- FOOTER ---------- */


.footer-v2{
    margin-top:54px;
    padding:46px 20px 22px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 28rem),
        rgba(7,10,18,.94);
    border-top:1px solid rgba(148,163,184,.18);
    color:#cbd5e1;
}

.footer-inner{
    width:min(1180px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:1.7fr 1fr 1fr 1.2fr 1fr;
    gap:32px;
}

.footer-brand p{
    margin-top:14px;
    max-width:380px;
    color:#94a3b8;
    line-height:1.7;
    font-weight:600;
}

.footer-logo{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:#fff;
    text-decoration:none;
    font-size:22px;
    font-weight:900;
    letter-spacing:-.04em;
}

.footer-logo img{
    border-radius:16px;
    box-shadow:0 12px 34px rgba(56,189,248,.18);
}

.footer-col{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.footer-col h3{
    margin:0 0 8px;
    color:#fff;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.footer-col a{
    color:#94a3b8;
    text-decoration:none;
    font-weight:700;
    line-height:1.45;
    transition:.18s ease;
}

.footer-col a:hover{
    color:#fff;
    transform:translateX(3px);
}

.footer-col i{
    width:18px;
    margin-right:6px;
}

.footer-bottom{
    width:min(1180px,100%);
    margin:34px auto 0;
    padding-top:20px;
    border-top:1px solid rgba(148,163,184,.14);
    display:flex;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.footer-bottom a{
    color:#94a3b8;
    text-decoration:none;
}

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

@media(max-width:900px){
    .footer-inner{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:560px){
    .footer-v2{
        padding:36px 16px 20px;
    }

    .footer-inner{
        grid-template-columns:1fr;
        gap:26px;
    }

    .footer-bottom{
        flex-direction:column;
    }
}

/* =========================================================
   MREJATA UNIFIED COMPONENTS
   Covers: homepage, game.php, news.php, post.php, server.php
   ========================================================= */

/* ---------- ACCESSIBILITY / UTILITIES ---------- */
img {
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

.hidden,
.is-hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

/* ---------- BOOST BADGE / BOOSTED CARDS ---------- */
/* Keep this outside mobile media queries so it works everywhere. */
.server-card-overlay {
    position: relative;
}

.server-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    box-shadow: 0 12px 32px rgba(249,115,22,.35);
    pointer-events: none;
}

.server-card.is-boosted {
    border-color: rgba(249,115,22,.55);
    box-shadow:
        0 30px 90px rgba(0,0,0,.52),
        0 0 42px rgba(249,115,22,.20);
}

/* Invisible SEO/clickable main link used inside cards. */
.server-card-main-link,
.post-card-main-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.server-card-overlay,
.post-card-overlay {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.server-links,
.server-links a {
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.server-name {
    margin: 0;
}

/* ---------- SHOW MORE ---------- */
.show-more-wrap {
    text-align: center;
    margin: 24px 0 10px;
}

.show-more-btn {
    border: 1px solid rgba(56,189,248,.42);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    cursor: pointer;
    color: #e0f2fe;
    background: rgba(56,189,248,.16);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56,189,248,.65);
    background: rgba(56,189,248,.24);
}

/* =========================================================
   GAME LANDING PAGE
   ========================================================= */

.game-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 34px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.game-hero-inner {
    padding: 58px 28px;
    background:
        linear-gradient(180deg, rgba(2,6,23,.18), rgba(2,6,23,.94)),
        radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 24rem);
    text-align: center;
}

.game-hero-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 24px;
    object-fit: cover;
    background: rgba(15,23,42,.72);
    border: 1px solid var(--line);
    box-shadow: 0 16px 46px rgba(0,0,0,.34);
}

.game-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 900;
    color: #fff;
}

.game-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 650;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 820px;
    margin: 28px auto 0;
}

.game-stat {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15,23,42,.68);
}

.game-stat strong {
    display: block;
    font-size: 28px;
    letter-spacing: -.045em;
    color: #fff;
}

.game-stat span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-weight: 800;
    font-size: 13px;
}

.game-tabs,
.news-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    padding: 0 16px;
}

.game-tabs a,
.news-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15,23,42,.62);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

.game-tabs a:hover,
.game-tabs a.active,
.news-nav a:hover,
.news-nav a.active {
    color: #fff;
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.10);
}

.empty-game,
.empty-news {
    max-width: 880px;
    margin: 0 auto 34px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    text-align: center;
    color: #cbd5e1;
    font-weight: 700;
}

/* =========================================================
   NEWS LIST PAGE
   ========================================================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 28px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56,189,248,.45);
    box-shadow:
        0 30px 90px rgba(0,0,0,.52),
        0 0 42px rgba(56,189,248,.16);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(2,6,23,.18), rgba(2,6,23,.94)),
        radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 240px);
}

.post-badge {
    width: max-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(249,115,22,.16);
    border: 1px solid rgba(249,115,22,.38);
    color: #fed7aa;
    font-size: 12px;
    font-weight: 900;
}

.post-title {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 900;
    color: #fff;
}

.post-excerpt {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.post-meta {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.pagination {
    margin: 30px 0 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15,23,42,.62);
    font-weight: 900;
    text-decoration: none;
    color: #cbd5e1;
}

.pagination span {
    color: #fff;
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.12);
}

/* =========================================================
   SINGLE POST PAGE
   ========================================================= */

.post-shell {
    width: min(980px, calc(100% - 32px));
    margin: 32px auto 42px;
}

.post-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2,6,23,.20), rgba(2,6,23,.96)),
        radial-gradient(circle at top right, rgba(249,115,22,.13), transparent 28rem);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
}

.post-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 900;
    color: #fff;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    margin-top: 24px;
}

.post-content {
    padding: 34px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.85;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #fff;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 1.4em 0 .55em;
}

.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 25px; }

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

.post-content a {
    color: #7dd3fc;
    font-weight: 800;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.15em 1.35em;
}

.post-content li {
    margin: .35em 0;
}

.post-content blockquote {
    margin: 1.4em 0;
    padding: 18px 20px;
    border-left: 4px solid #f97316;
    background: rgba(249,115,22,.10);
    border-radius: 16px;
    color: #fed7aa;
}

.post-content pre {
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    background: #020617;
    border: 1px solid var(--line);
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.post-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -.035em;
}

.side-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-weight: 650;
}

.side-link,
.related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 850;
}

.side-link:hover,
.related-card:hover {
    color: #fff;
}

.related-card {
    display: block;
}

.related-card strong {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.related-card span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15,23,42,.62);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 900;
}

.post-nav a:hover {
    color: #fff;
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.10);
}

/* =========================================================
   SERVER DETAIL PAGE
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.mainbox {
    margin: 32px auto 42px;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,.18), transparent 28rem),
        var(--card);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 290px;
    padding: 36px;
}

.server-icon {
    width: 92px;
    height: 92px;
    border-radius: 26px;
    object-fit: cover;
    background: rgba(15,23,42,.78);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
}

.server-icon.placeholder {
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 900;
    color: #fff;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: .95;
    letter-spacing: -.07em;
    color: #fff;
}

.project-desc {
    max-width: 760px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 650;
}

.server-host {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.host-ip,
.host-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15,23,42,.72);
    color: #dbeafe;
    font-weight: 800;
}

.status-card {
    min-width: 170px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(15,23,42,.78);
    text-align: center;
}

.status-badge {
    display: inline-flex;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
}

.status-online .status-badge {
    color: #bbf7d0;
}

.status-offline .status-badge {
    color: #fecaca;
}

.status-numbers {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.status-numbers small {
    color: var(--muted);
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 24px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -.04em;
    color: #fff;
}

.panel-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 650;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
}

.stat-card strong {
    display: block;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.boost-stat-active {
    border-color: rgba(249,115,22,.45);
    background: rgba(249,115,22,.12);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.details-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.details-grid strong {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.details-grid span {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.button-connect,
.button-refresh,
.boost-panel-button,
.promo-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 15px;
    background: rgba(15,23,42,.72);
    color: #dbeafe;
    font-weight: 900;
    transition: .18s ease;
}

.button-connect:hover,
.button-refresh:hover,
.boost-panel-button:hover,
.promo-copy:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.12);
}

.button-connect.primary,
.boost-panel-button {
    border-color: rgba(56,189,248,.42);
    background: rgba(56,189,248,.18);
    color: #e0f2fe;
}

.tag-list,
.resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span,
.resource-list span {
    border: 1px solid var(--line);
    background: rgba(15,23,42,.66);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
}

.resource-toggle-check {
    display: none;
}

.resource-list-full {
    display: none;
    margin-top: 14px;
}

.resource-toggle-check:checked ~ .resource-list-full {
    display: flex;
}

.resource-toggle-label {
    display: inline-flex;
    margin-top: 14px;
    color: #bae6fd;
    font-weight: 900;
    cursor: pointer;
}

.resource-toggle-label::before {
    content: "Покажи всички ресурси";
}

.resource-toggle-check:checked ~ .resource-toggle-label::before {
    content: "Скрий ресурсите";
}

.boost-panel {
    text-align: center;
}

.boost-panel-icon {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.boost-icon-image {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(56,189,248,.18);
}

.boost-title-badge,
.promotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 10px;
    padding: 8px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    vertical-align: middle;
}

.boost-panel-meta {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.boost-panel-meta > div {
    padding: 14px;
    border: 1px solid rgba(249,115,22,.35);
    border-radius: 18px;
    background: rgba(249,115,22,.10);
}

.boost-panel-meta strong,
.boost-panel-meta span {
    display: block;
}

.boost-panel-meta strong {
    color: #fed7aa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.boost-panel-meta span {
    margin-top: 6px;
    color: #fff;
    font-weight: 900;
}

.players {
    display: grid;
    gap: 10px;
}

.player {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    color: #cbd5e1;
    font-weight: 700;
}

.empty-state {
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    padding: 20px;
}

.promotion-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.promotion-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

.promo-stack {
    display: grid;
    gap: 18px;
}

.promo-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.04);
}

.promo-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #cbd5e1;
}

.promo-card-header strong {
    color: #fff;
}

.promo-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 14px;
}

.promo-link-box {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15,23,42,.72);
    color: #cbd5e1;
    overflow-wrap: anywhere;
    margin-bottom: 14px;
}

.hosting-section,
.ad-section {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
    text-align: center;
}

/* Related server cards used on server.php */
.related-servers-grid,
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.related-server-card,
.related-post-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    transition: .18s ease;
}

.related-server-card:hover,
.related-post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56,189,248,.42);
    background: rgba(56,189,248,.08);
}

.related-server-card strong,
.related-post-card strong {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.related-server-card span,
.related-post-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.footer {
    margin-top: 54px;
}

.footer-v2 {
    margin-top: 54px;
    padding: 46px 20px 22px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 28rem),
        rgba(7,10,18,.94);
    border-top: 1px solid var(--line);
    color: #cbd5e1;
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr 1fr;
    gap: 32px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 380px;
    color: #94a3b8;
    line-height: 1.7;
    font-weight: 600;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.footer-logo img {
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(56,189,248,.18);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.45;
    transition: .18s ease;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-col i {
    width: 18px;
    margin-right: 6px;
}

.footer-bottom {
    width: min(1180px, 100%);
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148,163,184,.14);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

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

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

@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

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

    .content-grid,
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-side {
        order: -1;
    }

    .related-servers-grid,
    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .server-host {
        justify-content: center;
    }

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

@media (max-width: 640px) {
    .post-grid,
    .related-servers-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        min-height: 280px;
    }

    .game-hero-inner {
        padding: 42px 20px;
    }

    .game-hero,
    .post-hero,
    .hero {
        border-radius: 26px;
    }

    .post-hero,
    .post-hero-content {
        min-height: 360px;
    }

    .post-hero-content {
        padding: 30px 22px;
    }

    .post-content {
        padding: 24px;
        border-radius: 24px;
    }

    .post-nav {
        flex-direction: column;
    }

    .stats-row,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .promotion-header {
        flex-direction: column;
    }

    .footer-v2 {
        padding: 36px 16px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
