/* ============================================================
   THE MIGHTY JOSHUA - MASTER STYLESHEET
   Consolidated Fix: Wizard Containment + Responsive Navigation
   ============================================================ */
/* --- 1. HEADER & BRANDING --- */
.header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    border-bottom: var(--border-style);
    background: transparent !important;
}
.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}
.wizard-logo {
    /* STRICT CONTAINMENT: Prevents the massive image blowout */
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    clip-path: circle(50%);
    border: 2px solid var(--primary-green);
    box-shadow: var(--neon-glow);
    margin-bottom: 15px;
    display: block;
}
.header-main h1 {
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(9, 245, 48, 0.8), 0 0 30px rgba(9, 245, 48, 0.3);
    letter-spacing: 12px;
    text-transform: uppercase;
    margin: 0;
}
/* --- 2. DESKTOP NAVIGATION --- */
.nav-links {
    display: flex; /* Fixes the "Blob" by aligning links in a row */
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
    width: 100%;
    flex-wrap: wrap;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 1px solid transparent;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-green);
    border: var(--border-style);
    text-shadow: var(--neon-glow);
    box-shadow: inset 0 0 10px rgba(9, 245, 48, 0.2);
}
/* Hidden elements for Desktop */
.menu-toggle, .hamburger-icon {
    display: none;
}
/* --- 3. THE TERMINAL FRAME (GTX 1070 STRENGTH) --- */
.terminal-main-frame {
    height: calc(100vh - 410px); /* Adjusted for larger header area */
    display: flex;
    padding: 10px 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    overflow: hidden; 
}
.ai-terminal-box {
    width: 100%;
    display: flex;
    padding: 25px 40px !important;
    margin: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    border: var(--border-style);
    box-shadow: var(--neon-glow);
    border-radius: 4px;
    overflow: hidden; 
}
#ai-response-area {
    flex: 1;
    overflow-y: auto; 
    padding: 0px;
    display: flex;
    flex-direction: column; 
    gap: 12px;
    scroll-behavior: smooth;
}
.query-sticky-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: #000;
    border-top: var(--border-style);
    flex-shrink: 0; 
}
#ai-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary-green);
    outline: none;
    font-family: var(--crt-font);
    font-size: 1.1rem;
}
/* TIGHTENED AUTH FORMS OVERRIDE */
.terminal-main-frame.auth-view {
    height: auto; /* Allow the form to define its own space */
    min-height: calc(100vh - 400px); 
    padding-top: 10px; /* Reduced top gap from header */
}
.ai-terminal-box.auth-box {
    max-width: 450px !important; /* Slightly narrower for a sharper look */
    padding: 15px 35px !important; /* Reduced padding for tighter fit */
    margin-top: 0 !important;
}
.auth-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
}
.auth-box p {
    margin-bottom: 20px;
    line-height: 1.4;
}
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Consistent spacing between inputs */
}
/* --- 4. RESPONSIVE MOBILE OVERRIDE (THE GEMINI SHIFT) --- */
@media (max-width: 768px) {
    /* Icon placement */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1100;
        cursor: pointer;
    }
    .bar {
        width: 25px;
        height: 3px;
        background-color: var(--primary-green);
        box-shadow: 0 0 5px var(--primary-green);
    }
    /* Side-menu transformation */
    .nav-links {
        display: none; 
        position: fixed;
        top: 0;
        left: -100%; 
        width: 260px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 20px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        border-right: 2px solid var(--primary-green);
    }
    /* Mobile Toggle Logic */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
        left: 0;
    }
    /* Scaling for smaller Viewports */
    .header-main h1 {
        font-size: 1.8rem !important;
        letter-spacing: 3px !important;
        margin-left: 30px;
    }
    .wizard-logo {
        width: 100px !important;
        height: 100px !important;
        margin-left: 30px;
    }
    /* Pinned Bottom Terminal */
    .terminal-main-frame {
        position: fixed;
        bottom: 0;
        height: 60vh;
        width: 100%;
        left: 0;
        padding: 0;
    }
    .query-sticky-footer {
        flex-direction: row; /* Keeping it tight for thumb access */
        padding: 10px;
    }
}
/* Scrollbar Styling */
#ai-response-area::-webkit-scrollbar { width: 6px; }
#ai-response-area::-webkit-scrollbar-thumb { background: var(--primary-green); }