/* =====================================================================
   MOOX Gaming - theme layer (2026-11)
   Loaded after style.css on every section. style.css keeps the layout
   utilities; this file owns the look: colour, type, nav, cards, buttons.
   ===================================================================== */

:root {
    --bg-dark: #07080c;
    --bg-card: rgba(13, 15, 22, 0.82);
    --bg-card-hover: rgba(19, 22, 32, 0.92);
    --mx-surface: #0f1219;
    --mx-line: rgba(255, 255, 255, 0.09);
    --mx-line-strong: rgba(255, 255, 255, 0.18);
    --accent-orange: #ff6a1f;
    --mx-amber: #ffb21a;
    --accent-cyan: #19e3ff;
    --mx-hot: linear-gradient(100deg, #ff4d12 0%, #ff7a1a 45%, #ffb21a 100%);
    --text-primary: #eef0f4;
    --text-secondary: #a9b0c0;
    --text-muted: #747c8e;
    --border-glow: rgba(255, 106, 31, 0.55);
    --font-display: 'Chakra Petch', 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --mx-cut: 14px;
    --mx-ease: cubic-bezier(.2, .8, .2, 1);
}

body.mx {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-orange); color: #0b0b0b; }

a:hover { color: var(--mx-amber); }

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Backdrop: brand art, darker, with a HUD grid on top ---------- */
.page-bg {
    background:
        radial-gradient(900px 480px at 12% -8%, rgba(255, 106, 31, 0.22), transparent 62%),
        radial-gradient(800px 520px at 100% 0%, rgba(25, 227, 255, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(7, 8, 12, 0.62) 0%, rgba(7, 8, 12, 0.86) 38%, rgba(7, 8, 12, 0.97) 100%),
        url("https://moox-gaming.com/test2/assets/bg3.png") center / cover no-repeat;
    filter: saturate(1.05) contrast(1.05);
}

.mx-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 100% 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 56px 100%;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 20%, transparent 78%);
            mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 20%, transparent 78%);
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

h1, h2, .section-title { text-transform: uppercase; }

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

/* ---------- Layout ---------- */
.container, .nav-container { max-width: 1240px; padding: 0 1.25rem; }
.main-content { padding-top: 5.5rem; }

/* ---------- Navigation ---------- */
.nav-main {
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--mx-line);
    transition: background .3s ease, box-shadow .3s ease;
}

.nav-main::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--mx-hot);
}

.nav-main.is-scrolled {
    background: rgba(7, 8, 12, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.nav-content { height: 4rem; gap: 1rem; }

.logo-icon {
    border-radius: 0;
    background: var(--mx-hot);
    color: #0b0b0b;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
    transition: transform .35s var(--mx-ease);
}

.nav-logo:hover .logo-icon { transform: rotate(-6deg) scale(1.06); }

.logo-text {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: none;
}

.nav-links { gap: 0; margin-left: auto; }

.nav-link {
    position: relative;
    padding: 0.55rem 0.7rem;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.7rem; right: 0.7rem; bottom: 0.1rem;
    height: 2px;
    background: var(--mx-hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--mx-ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }
.nav-link.active::after { box-shadow: 0 0 14px rgba(255, 122, 26, 0.9); }

.nav-cta {
    display: none;
    padding: 0.6rem 1.15rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #0b0b0b;
    background: var(--mx-hot);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: filter .2s ease, transform .2s var(--mx-ease);
}

.nav-cta:hover { color: #0b0b0b; filter: brightness(1.12); transform: translateY(-1px); }

@media (min-width: 1240px) { .nav-cta { display: inline-block; } }

@media (min-width: 1024px) and (max-width: 1239px) {
    .nav-link { padding: 0.55rem 0.5rem; font-size: 0.74rem; letter-spacing: 0.06em; }
    .nav-link::after { left: 0.5rem; right: 0.5rem; }
}

.mobile-menu-btn { margin-left: auto; }

.mobile-menu {
    background: rgba(7, 8, 12, 0.97);
    border-top: 1px solid var(--mx-line);
    padding: 0.5rem 1rem 1rem;
}

.mobile-link {
    border-radius: 0;
    border-left: 2px solid transparent;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.mobile-link:hover, .mobile-link.active {
    color: #fff;
    background: rgba(255, 106, 31, 0.1);
    border-left-color: var(--accent-orange);
}

.mobile-link-cta { margin-top: 0.5rem; color: #0b0b0b !important; background: var(--mx-hot) !important; text-align: center; border-left: 0; }

/* ---------- Cards ---------- */
.glass-card {
    position: relative;
    background: linear-gradient(160deg, rgba(20, 23, 33, 0.9), rgba(10, 12, 18, 0.9));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--mx-line);
    border-radius: 4px;
    transition: transform .3s var(--mx-ease), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

/* HUD corner bracket */
.glass-card::before {
    content: '';
    position: absolute;
    left: -1px; top: -1px;
    width: 22px; height: 22px;
    border-left: 2px solid var(--accent-orange);
    border-top: 2px solid var(--accent-orange);
    pointer-events: none;
    z-index: 2;
    transition: width .3s var(--mx-ease), height .3s var(--mx-ease);
}

.glass-card:hover {
    background: linear-gradient(160deg, rgba(26, 29, 42, 0.95), rgba(12, 14, 21, 0.95));
    border-color: rgba(255, 106, 31, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 106, 31, 0.12), 0 0 44px rgba(255, 106, 31, 0.10);
}

.glass-card:hover::before { width: 44px; height: 44px; }

.news-card:hover, .og-card:hover, .hover-lift.glass-card:hover { transform: translateY(-5px); }

/* ---------- Section headers ---------- */
.section-header { gap: 1rem; margin-bottom: 1.5rem; }

.section-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff !important;
    white-space: nowrap;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 8%;
    width: 5px; height: 84%;
    background: var(--mx-hot);
    transform: skewX(-14deg);
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    min-width: 2rem;
    background: linear-gradient(90deg, var(--mx-line-strong), transparent);
}

.og-head::after { order: 1; }
.og-head .og-all { order: 2; }

/* Page title banners used by the section pages (glass card with an h1) */
.glass-card h1.font-display {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: 0.05em;
    line-height: 1.05;
}

/* ---------- Home hero ---------- */
.mx-hero {
    position: relative;
    border: 1px solid var(--mx-line);
    background: linear-gradient(160deg, rgba(20, 23, 33, 0.92), rgba(8, 9, 14, 0.94));
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.mx-hero-banner.header-card {
    min-height: 0;
    aspect-ratio: 16 / 5;
    max-height: 300px;
    width: 100%;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    background-position: center;
    background-size: cover;
    position: relative;
}

.mx-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 55%, rgba(8, 9, 14, 0.95) 100%),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

.mx-hero-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    padding: 0.25rem 1.75rem 1.5rem;
    margin-top: -0.5rem;
}

.mx-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.mx-hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0.01em;
    color: #fff;
}

.mx-hero-title span {
    background: var(--mx-hot);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.mx-hero-sub {
    margin-top: 0.6rem;
    max-width: 38rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.mx-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--mx-line-strong);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: transform .2s var(--mx-ease), filter .2s ease, background .2s ease;
}

.mx-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.mx-btn-primary { color: #0b0b0b; background: var(--mx-hot); box-shadow: none; }
.mx-btn-primary:hover { color: #0b0b0b; background: var(--mx-hot); filter: brightness(1.12); }

/* legacy hero blocks on other pages keep their natural height */
.hero { min-height: 0; border-radius: 4px; }

/* ---------- Our games cards ---------- */
.og-card { border-top-width: 1px !important; overflow: hidden; }
.og-card::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--og-accent);
    box-shadow: 0 0 22px var(--og-accent);
}
.og-card::before { border-color: var(--og-accent); }
.og-card:hover { border-color: var(--og-accent) !important; }
.og-name { font-size: 1.1rem !important; letter-spacing: 0.04em; text-transform: uppercase; }
.og-status { border-radius: 0 !important; font-family: var(--font-mono); }
.og-latest { border-radius: 2px !important; }
.og-btn, .og-project { border-radius: 2px !important; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem !important; font-weight: 600; }
.og-btn-main { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.og-all { font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-orange) !important; }

/* ---------- News cards ---------- */
.news-card::before { left: 0; top: 0; }
.news-card a { color: inherit; display: block; height: 100%; }
.news-card-image { height: 11rem; }
.news-card-image img { transition: transform .6s var(--mx-ease), filter .4s ease; filter: saturate(0.9); }
.news-card:hover .news-card-image img { transform: scale(1.07); filter: saturate(1.15); }
.news-card-image::after { background: linear-gradient(to top, rgba(10, 12, 18, 1) 2%, rgba(10, 12, 18, 0.2) 55%, transparent); }

.news-badge {
    top: 0.9rem; left: 0;
    padding: 0.25rem 0.9rem 0.25rem 0.75rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0b0b0b;
    background: var(--mx-hot);
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.news-card-content { padding: 1.1rem 1.25rem 1.35rem; }
.news-date { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-orange); }
.news-title { font-size: 1.05rem; font-weight: 600; text-transform: none; letter-spacing: 0.01em; color: #fff; transition: color .2s ease; }
.news-card:hover .news-title { color: var(--mx-amber); }
.news-card.featured .news-title { font-size: 1.3rem; }
.news-card.featured .news-card-image { height: 15rem; }
.news-excerpt { font-size: 0.98rem; }

@media (min-width: 768px) { .md\:col-span-2 { grid-column: span 2; } }

/* ---------- Tabs, filters, pagination ---------- */
.tabs { gap: 0; border-bottom: 1px solid var(--mx-line); }

.tab-btn, .news-page-btn {
    position: relative;
    padding: 0.8rem 1.25rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tab-btn::after, .news-page-btn::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--mx-hot);
    transform: scaleX(0);
    transition: transform .25s var(--mx-ease);
}

.tab-btn:hover, .news-page-btn:hover { color: #fff; }
.tab-btn.active, .news-page-btn.active { color: #fff !important; }
.tab-btn.active::after, .news-page-btn.active::after { transform: scaleX(1); }
.news-pagination { gap: 0 !important; border-bottom: 1px solid var(--mx-line); }

.filter-btn { border-radius: 2px !important; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: transform .2s var(--mx-ease), background .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--mx-hot); color: #0b0b0b; }
.btn-orange:hover { background: var(--mx-hot); filter: brightness(1.12); color: #0b0b0b; }
.btn-cyan { background: rgba(25, 227, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(25, 227, 255, 0.4); }
.btn-cyan:hover { background: rgba(25, 227, 255, 0.22); color: #fff; }
.btn-steam, .steam-group-card { border-radius: 4px !important; }

/* ---------- Tables / forms ---------- */
.table-container { border-radius: 4px; border-color: var(--mx-line); }
.data-table th { background: #0b0d13; color: var(--accent-orange); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.data-table tr:hover td { background: rgba(255, 106, 31, 0.06); }
.form-select, .form-input, .search-input { border-radius: 2px; }
.form-select:focus, .form-input:focus, .search-input:focus { border-color: var(--accent-orange); }

.stat-value { letter-spacing: 0.02em; }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    margin-top: 4rem;
    padding: 2.5rem 0;
    background: rgba(5, 6, 9, 0.92);
    border-top: 1px solid var(--mx-line);
}
.footer::before {
    content: '';
    position: absolute;
    left: 0; top: -1px;
    width: min(320px, 40%);
    height: 3px;
    background: var(--mx-hot);
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.footer-links { gap: 0.5rem 1.5rem; }
.footer-link { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-link:hover { color: var(--accent-orange); }
.footer-copyright { font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07080c; }
::-webkit-scrollbar-thumb { background: #2a2f3d; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* ---------- Scroll reveal (class is only added by moox-fx.js) ---------- */
.mx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s var(--mx-ease); }
.mx-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
    .mx-hero-bar { padding: 0.5rem 1.25rem 1.5rem; }
    .mx-hero { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
    .section-title { font-size: 1.3rem; white-space: normal; }
    .tab-btn, .news-page-btn { padding: 0.7rem 0.8rem; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .mx-reveal { opacity: 1; transform: none; }
}

/* ---------- Section pages carry their own inline styles; pull their headings into the theme ---------- */
body.mx:not(.page-wow) .main-content :is(h1, h2, h3, h4),
body.mx:not(.page-wow) .main-content :is([class*="-title"], [class*="-name"], [class*="-header"] > span) {
    font-family: var(--font-display) !important;
    letter-spacing: 0.03em;
}
body.mx:not(.page-wow) .main-content :is([class*="-card"], [class*="-btn"], [class*="-banner"], [class*="-box"], [class*="-item"]) { border-radius: 4px; }


/* ---------- Fixes 2026-11-26 ---------- */
/* Section headers that start with an emoji: no accent bar squeezed between emoji and title */
.section-header > span + .section-title { padding-left: 0; white-space: normal; }
.section-header > span + .section-title::before { display: none; }
/* News grid: the wide featured card leaves one card alone on the last row; drop that last card */
@media (min-width: 1024px) { .news-page .grid > .news-card.featured ~ .news-card:last-child:nth-child(3n) { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .news-page .grid > .news-card.featured ~ .news-card:last-child:nth-child(2n) { display: none; } }

/* ---------- Footer (2026-11-27): columns + bottom bar ---------- */
.mx-footer { padding: 3rem 0 0; }
.mx-footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem 2.5rem; padding-bottom: 2.5rem; }
.mx-footer-brand p { margin: 0.9rem 0 1.25rem; max-width: 20rem; font-size: 0.95rem; line-height: 1.55; color: var(--text-secondary); }
.mx-footer-cta { padding: 0.65rem 1.2rem; font-size: 0.75rem; }
.mx-footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.mx-footer-col h4 { margin-bottom: 0.35rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.mx-footer-col a { width: fit-content; font-size: 0.95rem; color: var(--text-secondary); transition: color .2s ease, transform .2s var(--mx-ease); }
.mx-footer-col a:hover { color: var(--accent-orange); transform: translateX(3px); }
.mx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--mx-line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
@media (max-width: 900px) { .mx-footer-top { grid-template-columns: repeat(3, 1fr); } .mx-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .mx-footer-top { grid-template-columns: 1fr 1fr; } .mx-footer-bottom { flex-direction: column; } }
body.page-wow .mx-footer-col h4 { font-family: 'Cinzel', serif; color: var(--wf-gold-pale); }
