/* * RFOF-NETWORK INDUSTRIAL FUSION STYLE - V01 FINAL
 * Synchronisiert auf 12-Tabellen-Kohärenz & PZQQET-Axiome
 * Adaptive Responsivity: Mobile / Tablet / Desktop
 */

/* <------------------ [SEKTOR 0: SYSTEM-VARIABLEN] ------------------> */
:root {
    --primary-color: #00ff41;   /* PZQQET GRÜN (Basis) */
    --primary-glow: rgba(0, 255, 65, 0.3);
    --bg-color: #050a14;        /* Deep Space Blue */
    --panel-color: rgba(10, 20, 40, 0.9);
    --text-color: #e2e8f0;
    --border-dim: rgba(255, 255, 255, 0.1);
    --satoramy-gold: #ffd700;   /* LEVEL 42 ACCENT */
    --alert-red: #ff4444;
    --prai-cyan: #00f2ff;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MORPHING: Zustands-Steuerung */
body.state-secure { 
    --primary-color: #00d4ff; 
    --primary-glow: rgba(0, 212, 255, 0.4);
}

body.gold-mode { 
    --primary-color: var(--satoramy-gold); 
    --primary-glow: rgba(255, 215, 0, 0.3);
}

/* <------------------ [SEKTOR 1: FOUNDATION] ------------------> */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace; /* Industrieller Terminal-Look */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* <------------------ [SEKTOR 2: RESPONSIVE ENGINE] ------------------> */
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* DESKTOP VIEW (Monitor) */
@media (min-width: 1024px) {
    main { padding: 40px; }
    .tab-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}

/* TABLET VIEW */
@media (max-width: 1023px) and (min-width: 768px) {
    main { padding: 30px; }
    .tab-content { display: block; }
}

/* MOBILE VIEW (Smartphone) */
@media (max-width: 767px) {
    body { font-size: 14px; }
    header { padding: 10px 15px !important; flex-direction: column; gap: 10px; text-align: center; }
    
    #footer-nav {
        grid-template-columns: repeat(4, 1fr);
        height: 70px;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .nav-btn { font-size: 10px !important; padding: 10px 2px !important; }
    .auth-container { width: 95% !important; padding: 20px !important; }
    #s1-t9-mining-val { font-size: 1.2rem !important; }
}

/* <------------------ [SEKTOR 3: UI COMPONENTS] ------------------> */

/* Terminal Containers */
.v2-injector {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dim);
    padding: 25px;
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px; /* Platz für Mobile-Nav */
}

/* Navigation */
#footer-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-color);
    backdrop-filter: blur(15px);
    display: flex;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.5;
    transition: var(--transition);
}

.nav-btn.active {
    opacity: 1;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

/* Auth / Modal */
#auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.auth-container {
    background: #0a0f1d;
    padding: 40px;
    border: 1px solid var(--primary-color);
    width: 380px;
    text-align: center;
    box-shadow: 0 0 40px var(--primary-glow);
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #000;
    border: 1px solid var(--border-dim);
    color: var(--primary-color);
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* <------------------ [SEKTOR 7: EXIT OVERLAY] ------------------> */
.logout-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--alert-red);
    border: 5px solid var(--alert-red);
}

#logout-timer { font-size: 6rem; font-weight: bold; }

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    font-size: 0.55rem;
    background: #000;
    opacity: 0.4;
    text-align: center;
    line-height: 25px;
    z-index: 500;
}
