:root {
    --bg: #1a1a1a;
    --panel-dark: rgba(0, 0, 0, 0.8);
    --green: #22c55e;
    --yellow: #eab308;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: white;
    overflow-x: hidden;
}

.mc-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo-text::after {
    content: 'OFFICIAL NETWORK';
    position: absolute;
    left: 0;
    bottom: -14px;
    font-size: 10px;
    letter-spacing: 4px;
    color: #facc15;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-text:hover::after { opacity: 1; }

.nav-glass {
    background: rgba(20, 20, 20, 0.84);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(26,26,26,1)), var(--hero-bg, url('../images/test.png'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 120px;
}

.hero-title { text-shadow: 8px 8px 0 #000; }
.discord-title { text-shadow: 2px 2px 0 rgba(0,0,0,0.3); }

.mc-container {
    background-color: #c6c6c6;
    border: 4px solid #000;
    box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #555;
    color: #333;
}

.mc-panel-dark {
    background: var(--panel-dark);
    border: 4px solid #333;
    outline: 4px solid black;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #999;
    border: 4px solid #000;
    box-shadow: inset -4px -4px 0 #444, inset 4px 4px 0 #ddd;
    color: #fff !important;
    padding: 8px 20px;
    font-family: 'VT323', monospace;
    text-shadow: 2px 2px 0 #000;
    transition: all 0.1s;
}

.mc-btn:hover { transform: translateY(-2px); background-color: #aaa; }
.mc-btn:active { transform: translateY(1px); box-shadow: inset 4px 4px 0 #444, inset -4px -4px 0 #ddd; }
.mc-btn-green { background-color: #55a855; box-shadow: inset -4px -4px 0 #2d5a27, inset 4px 4px 0 #97e297; }
.mc-btn-yellow { background-color: #e5c100; box-shadow: inset -4px -4px 0 #8a7300, inset 4px 4px 0 #ffea70; }
.mc-btn-blue { background-color: #3b82f6; box-shadow: inset -4px -4px 0 #1d4ed8, inset 4px 4px 0 #93c5fd; }
.mc-btn-red { background-color: #ef4444; box-shadow: inset -4px -4px 0 #b91c1c, inset 4px 4px 0 #fca5a5; }

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.5rem;
}

.section-heading div {
    height: 4px;
    width: 8rem;
}

.status-badge {
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pixelated { image-rendering: pixelated; }
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    padding: 1.5rem;
    overflow: hidden;
}

/* Forum module */
.forum-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.12), transparent 36rem),
        radial-gradient(circle at bottom right, rgba(234,179,8,.10), transparent 32rem),
        #101010;
}

.forum-topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0,0,0,.72);
    border-bottom: 3px solid #292929;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.forum-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.forum-nav a:not(.mc-btn) { color: #d1d5db; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.forum-nav a:hover, .forum-nav .active { color: #22c55e; }
.forum-user { color: #facc15; font-weight: 800; }

.forum-shell { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem; }
.forum-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.forum-hero.compact { align-items: end; }
.forum-pill { display: inline-flex; padding: .35rem .75rem; border: 1px solid rgba(34,197,94,.35); color: #4ade80; background: rgba(34,197,94,.09); border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }
.forum-back { color: #9ca3af; font-weight: 800; text-transform: uppercase; font-size: .85rem; }
.forum-back:hover { color: #fff; }

.auth-card { max-width: 460px; margin: 2rem auto; background: rgba(0,0,0,.68); border: 3px solid #2f2f2f; outline: 3px solid #000; padding: 2rem; box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.auth-card.wide { max-width: 760px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.5rem; }
.auth-tabs a { text-align: center; padding: .8rem; border: 2px solid #333; background: #151515; font-weight: 900; text-transform: uppercase; color: #9ca3af; }
.auth-tabs a.active { background: #22c55e; color: #000; border-color: #000; }

.forum-form { display: grid; gap: .75rem; }
.forum-form label { font-weight: 900; color: #facc15; text-transform: uppercase; font-size: .82rem; letter-spacing: 1px; }
.forum-form input, .forum-form textarea, .forum-form select { width: 100%; background: #0b0b0b; color: #fff; border: 2px solid #333; padding: .9rem 1rem; outline: none; }
.forum-form input:focus, .forum-form textarea:focus, .forum-form select:focus { border-color: #22c55e; }
.forum-alert { padding: .9rem 1rem; margin-bottom: 1rem; border: 2px solid; font-weight: 700; }
.forum-alert.error { border-color: #ef4444; background: rgba(239,68,68,.12); color: #fecaca; }

.forum-grid { display: grid; gap: 1rem; }
.forum-category-card { display: flex; align-items: center; gap: 1.25rem; background: rgba(0,0,0,.65); border: 3px solid #2d2d2d; padding: 1.35rem; transition: transform .2s, border-color .2s, background .2s; }
.forum-category-card:hover { transform: translateY(-3px); background: rgba(0,0,0,.82); }
.forum-category-card > i { width: 58px; height: 58px; display: grid; place-items: center; background: #111; border: 3px solid #000; font-size: 1.65rem; }
.forum-category-card.green:hover { border-color: #22c55e; }
.forum-category-card.yellow:hover { border-color: #eab308; }
.forum-category-card.blue:hover { border-color: #3b82f6; }
.forum-category-card.red:hover { border-color: #ef4444; }
.forum-category-card h2 { color: #fff; font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }
.forum-category-card p { color: #9ca3af; margin-top: .2rem; }
.forum-stats, .topic-count { min-width: 95px; text-align: center; display: grid; line-height: 1.05; color: #9ca3af; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
.forum-stats strong, .topic-count strong { color: #fff; font-size: 1.35rem; }

.topic-list { display: grid; gap: .85rem; }
.topic-row { display: flex; align-items: center; gap: 1rem; background: rgba(0,0,0,.62); border: 2px solid #2f2f2f; padding: 1rem; }
.topic-row:hover { border-color: #22c55e; background: rgba(0,0,0,.82); }
.topic-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #000; background: #22c55e; color: #000; }
.topic-row h2 { color: #fff; font-weight: 900; font-size: 1.1rem; }
.topic-row p, .post-content small { color: #9ca3af; font-size: .82rem; }
.empty-state { background: rgba(0,0,0,.55); border: 2px dashed #444; padding: 2rem; text-align: center; color: #9ca3af; }

.topic-detail { display: grid; gap: 1rem; }
.post-card { display: grid; grid-template-columns: 170px 1fr; gap: 1.25rem; background: rgba(0,0,0,.65); border: 2px solid #303030; padding: 1.25rem; }
.first-post { border-color: rgba(34,197,94,.45); }
.post-author { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; border-right: 1px solid #333; padding-right: 1rem; }
.post-author img { border: 3px solid #111; background: #222; }
.post-author strong { color: #facc15; }
.post-author span { color: #9ca3af; font-size: .75rem; text-transform: uppercase; font-weight: 800; }
.post-content h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 900; text-transform: uppercase; }
.post-content p { color: #e5e7eb; line-height: 1.8; margin-top: 1rem; white-space: normal; }
.reply-box { background: rgba(255,255,255,.03); border: 2px solid #2f2f2f; padding: 1.25rem; }

@media (max-width: 720px) {
    .forum-topbar, .forum-hero, .forum-category-card, .topic-row { flex-direction: column; align-items: stretch; }
    .forum-nav { justify-content: flex-start; }
    .post-card { grid-template-columns: 1fr; }
    .post-author { border-right: 0; border-bottom: 1px solid #333; padding: 0 0 1rem 0; }
}
