/* --- RESET & BASE STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

/* NEW: Flex body to keep footer at the bottom */
body {
    background-color: #0a0a0c;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }

:root { --accent-color: #ff3300; --bg-dark: #0a0a0c; --bg-light: #141417; }

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo { font-size: 1.5rem; letter-spacing: 2px; }
.logo strong { color: var(--accent-color); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* --- HERO SECTION (Home Page Only) --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(180deg, rgba(10,10,12,0.2) 0%, var(--bg-dark) 100%), 
                url('https://images.unsplash.com/photo-1514316454349-750a7fd3da3a?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover; background-position: center; background-attachment: fixed; padding: 0 20px;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; color: #aaa; margin-bottom: 2rem; max-width: 600px; margin: 0 auto 2rem auto; }

/* --- BUTTONS --- */
.btn {
    display: inline-block; padding: 14px 32px; background-color: var(--accent-color); color: #fff;
    text-decoration: none; text-transform: uppercase; font-weight: bold; letter-spacing: 1.5px;
    border-radius: 4px; transition: all 0.3s;
}
.btn:hover { background-color: #cc2900; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 51, 0, 0.2); }
.discord-btn { background-color: #5865F2; }
.discord-btn:hover { background-color: #4752C4; box-shadow: 0 10px 20px rgba(88, 101, 242, 0.2); }

/* --- SECTIONS --- */
.section { padding: 120px 5%; text-align: center; }
.section h2 { font-size: 2.5rem; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 1.5px; }
.dark-bg { background-color: var(--bg-light); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.accent-text { color: var(--accent-color); letter-spacing: 2px; margin-bottom: 1rem; }
.game-content p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #aaa; }

/* --- GRID / CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.card {
    background-color: rgba(255, 255, 255, 0.03); padding: 2.5rem; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.4s, border-color 0.4s;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent-color); background-color: rgba(255, 255, 255, 0.05); }
.card h3 { margin-bottom: 1rem; color: #fff; font-size: 1.4rem; }
.card p { color: #999; }

/* --- FOOTER --- */
footer { text-align: center; padding: 3rem; background-color: var(--bg-dark); color: #555; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* --- SCROLL ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }
.grid .card:nth-child(1) { transition-delay: 0.1s; }
.grid .card:nth-child(2) { transition-delay: 0.3s; }
.grid .card:nth-child(3) { transition-delay: 0.5s; }

/* --- FOOTER & FOOTER LINKS --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 5%;
    background-color: var(--bg-dark);
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color); /* Turns red on hover */
}

/* =========================================
   FORUM PAGE STYLES
========================================= */

/* Smaller Hero for Sub-pages */
.hero-small {
    height: 50vh;
    min-height: 400px;
}

/* Forum Layout */
.forum-section {
    padding-top: 60px;
}

.forum-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.forum-category {
    margin-bottom: 4rem;
}

.forum-category h3 {
    color: var(--accent-color);
    border-bottom: 2px solid rgba(255, 51, 0, 0.3);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Individual Forum Rows */
.forum-row {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.forum-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.forum-info h4 {
    margin-bottom: 0.3rem;
}

.forum-info h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.forum-info h4 a:hover {
    color: var(--accent-color);
}

.forum-info p {
    color: #888;
    font-size: 0.95rem;
}

/* Active Status Indicator */
.forum-stats {
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: #00ff66; /* Neon Green */
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

/* --- PORTAL STYLES --- */
.portal-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-dark);
}

.login-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.login-box input {
    padding: 1rem;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* =========================================================
   MOBILE RESPONSIVENESS (PHONES & TABLETS)
========================================================= */

@media screen and (max-width: 768px) {
    /* 1. Navigation Restructuring */
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 2. Hero & Global Spacing */
    .hero h1 {
        font-size: 2rem; /* Shrinks the massive title */
    }
    .hero p {
        font-size: 1rem;
    }
    .dashboard-container, .admin-container {
        padding: 1.5rem 1rem; /* Reduces dead space on sides */
    }
    
    /* 3. Portal / Login Box */
    .login-box {
        padding: 2rem 1.5rem;
        margin: 1rem; /* Prevents it from touching screen edges */
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    /* 4. The Button Stack */
    .button-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .btn, .btn-outline {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* 5. The Admin Tables (The Horizontal Scroll Fix) */
    .admin-section {
        padding: 1rem;
        /* This prevents the table from breaking the phone screen width */
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }
    table {
        /* Forces the table to stay wide. The user will swipe left/right to read it */
        min-width: 600px; 
    }
    
    /* 6. Footer Stacking */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}