/* style3.css - NEON BLUE TERMINAL THEME */
:root {
    /* Nuova Paletta Colori Blu */
    --bg-black: #000105;           /* Nero con una punta di blu profondo */
    --neon-blue: #00d9ff;          /* Ciano/Blu elettrico principale */
    --dim-blue: #002c33;           /* Blu scuro per bordi e sfondi */
    --glow-blue: rgba(0, 217, 255, 0.3); /* Bagliore azzurro trasparente */
    --text-dark-blue: #00667a;     /* Blu spento per testi secondari */
}

body {
    background-color: var(--bg-black);
    color: var(--neon-blue);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Applichiamo un leggero bagliore globale a tutto il testo */
    text-shadow: 0 0 5px var(--glow-blue);
    
}



#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Lo mette dietro tutto il contenuto blu */
    background-color: #000105; /* Il vero colore di sfondo è qui */
}

/* Container Minimale */
.minimal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2; /* Sopra il canvas */
    
}

/* Navigazione Superiore Blu */
.terminal-nav {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 10px;
    font-size: 0.8em;
}

.nav-btn {
    color: var(--neon-blue);
    text-decoration: none;
    border: 1px solid var(--neon-blue);
    padding: 2px 8px;
    transition: 0.3s;
    background: transparent;
}

.nav-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 10px var(--neon-blue);
}

.location-tag {
    color: var(--text-dark-blue);
}

/* Titolo Centrale */
.glitch-title {
    font-size: 2.5em;
    text-align: center;
    margin: 50px 0;
    text-shadow: 0 0 15px var(--neon-blue);
    letter-spacing: 5px;
}

/* Blocco Dati Azzurro */
.data-block {
    background: rgba(0, 10, 20, 0.6); /* Sfondo scuro semi-trasparente */
    border: 1px solid var(--dim-blue);
    padding: 30px;
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.typewriter {
    color: var(--neon-blue);
}

.separator {
    height: 1px;
    background: var(--neon-blue);
    margin: 20px 0;
    width: 100px; /* Più lungo */
    box-shadow: 0 0 5px var(--neon-blue);
}

.secret-content strong {
    color: #fff; /* Bianco per enfasi */
    text-shadow: 0 0 5px #fff;
}

.footer-status {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-dark-blue);
    
    /* MODIFICHE PER RENDERLO PIÙ STRETTO */
    background: rgba(0, 5, 20, 0.6); /* Leggermente più opaco per contrasto */
    backdrop-filter: blur(8px);       /* Sfocatura più intensa */
    
    padding: 8px 20px;               /* Spazio interno: sopra/sotto e lati */
    width: fit-content;               /* Fondamentale: si stringe attorno al testo */
    margin: 20px auto;                /* Centra il contenitore orizzontalmente */
    
    border: 1px solid var(--dim-blue); /* Un bordino sottile lo definisce meglio */
    border-radius: 4px;               /* Angoli leggermente smussati in stile tech */
    
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Ombra esterna per profondità */
    
    position: relative;
    z-index: 10;
}

.blink-green { 
    color: #fff; /* Cambiamolo in bianco o un azzurro molto chiaro */
    font-weight: bold;
    text-shadow: 
        0 0 5px var(--neon-blue), 
        0 0 10px var(--neon-blue), 
        0 0 20px var(--neon-blue); /* Triplo bagliore per "staccare" */
    animation: blinkerBlue 1.5s linear infinite;
}

@keyframes blinkerBlue {
    50% { opacity: 0; }
}

/* Nuove Scanlines più sottili per il blu */
body::after {
    content: " ";
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 20, 40, 0.15) 50%);
    background-size: 100% 3px;
    z-index: 1000;
    pointer-events: none;
    
    
}

/* Sezione Blog Database */
.blog-database {
    margin-top: 50px;
}

.section-label {
    font-size: 1.1em;
    color: var(--neon-blue); /* Usiamo il blu neon acceso invece del blu scuro */
    margin-bottom: 25px;
    letter-spacing: 4px;
    border-left: 4px solid var(--neon-blue);
    padding-left: 15px;
    text-transform: uppercase;
    
    /* Aggiungiamo un'ombra per distaccarla dalla pioggia sullo sfondo */
    text-shadow: 0 0 8px var(--neon-blue); 
    font-weight: bold;
    opacity: 1; /* Assicuriamoci che non sia trasparente */
}

.log-entry {
    background: rgba(0, 20, 40, 0.4);
    border: 1px dashed var(--dim-blue);
    margin-bottom: 30px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.log-entry:hover {
    border-style: solid;
    border-color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 15px var(--glow-blue);
}

.log-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;
    color: var(--neon-blue);
    border-bottom: 1px solid var(--dim-blue);
    padding-bottom: 5px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.log-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    text-transform: uppercase;
    color: #fff; /* Bianco per contrasto */
}

.log-content p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--neon-blue);
}

.log-footer {
    font-size: 0.6em;
    color: var(--text-dark-blue);
    text-align: right;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Effetto scorrimento per la sezione blog */
.blog-database {
    max-height: 600px; /* Se diventa troppo lungo, puoi scorrere */
    overflow-y: auto;
    padding-right: 10px;
}

/* Personalizzazione scrollbar in stile tech */
.blog-database::-webkit-scrollbar {
    width: 5px;
}
.blog-database::-webkit-scrollbar-thumb {
    background: var(--dim-blue);
}
.blog-database::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000; /* Sopra tutto */
}

.login-box {
    text-align: center;
    border: 2px solid var(--neon-blue);
    padding: 40px;
    background: rgba(0, 10, 20, 0.9);
    box-shadow: 0 0 30px var(--glow-blue);
}

#passkey-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 1.5em;
    text-align: center;
    outline: none;
    width: 100%;
    margin-top: 10px;
}

.blink-blue {
    animation: blinkerBlue 1s linear infinite;
}

/* Animazione di scuotimento per password errata */
.shake {
    animation: shakeAnim 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeAnim {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Animazione di emergenza per espulsione sistema */
.flash-red {
    animation: flashRed 0.5s infinite;
}

@keyframes flashRed {
    0% { background-color: #aa0000; }
    50% { background-color: #000000; }
    100% { background-color: #aa0000; }
}

/* Stile per la login box durante l'allarme */
.login-box h2 style {
    text-shadow: 0 0 20px #ff0000;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    animation: scan 2s linear infinite;
    z-index: 20001;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}


.static-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Generiamo un rumore granulare bianco/nero con i gradienti */
    background: 
        repeating-conic-gradient(#000 0.0001%, #eee 0.0002%, #555 0.0003%, #fff 0.0004%);
    background-size: 100px 100px;
    opacity: 0.12; /* Intensità del disturbo */
    pointer-events: none;
    display: none; 
    z-index: 20005;
    /* Animazione per far "muovere" la neve */
    animation: noise-move 0.2s steps(4) infinite;
}

@keyframes noise-move {
    0% { background-position: 0 0; }
    25% { background-position: 10px 10px; }
    50% { background-position: -5px 20px; }
    75% { background-position: 25px -10px; }
    100% { background-position: 0 0; }
}