/* Effet CRT et animations */
@keyframes flicker {
    0% { opacity: 0.95; }
    5% { opacity: 0.85; }
    10% { opacity: 0.95; }
    15% { opacity: 0.9; }
    20% { opacity: 0.95; }
    25% { opacity: 0.85; }
    30% { opacity: 0.95; }
    35% { opacity: 0.9; }
    40% { opacity: 0.95; }
    45% { opacity: 0.85; }
    50% { opacity: 0.95; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes textShadow {
    0% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    5% { text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    10% { text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    15% { text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    20% { text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    25% { text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    30% { text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    35% { text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    40% { text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    45% { text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    50% { text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

/* Styles de base */
body {
    margin: 0;
    padding: 20px;
    background-color: #05020f;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    font-size: 12px;
}

/* Effet d'écran CRT */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* Effet de scanline */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 212, 0.089);
    animation: scanline 6s linear infinite;
    z-index: 2;
}

/* Titre principal */
h1 {
    color: #ffffff;
    text-align: center;
    font-size: 1.8em;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ffffff;
}

/* Conteneur principal */
.terminal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(43, 43, 43, 0.9);
    border: 1px solid #7a7a7a;
    box-shadow: 0 0 20px rgba(83, 83, 83, 0.89);
}

/* Boîte d'information */
.info-box {
    border: 1px solid #464646;
    padding: 15px;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: inset 0 0 10px #474747;
}

/* Bouton de connexion */
#login-button {
    background: #000;
    color: #ffffff;
    border: 1px solid #a8a8a8;
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 0 10px #696969;
    position: relative;
    overflow: hidden;
}

#login-button:hover {
    background-color: rgba(32, 32, 32, 0.9);
    box-shadow: 0 0 20px #ffffff;
    text-shadow: 0 0 5px #585858;
}

#login-button:active {
    background: #000000;
}

/* Messages d'état */
#loading, #error-message {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #000000;
    background-color: rgba(56, 56, 56, 0.9);
}

#error-message {
    color: #ff0000;
    border-color: #5f5f5f;
    display: none;
}

/* Conteneur des cartes blog */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Carte blog */
.blog-card {
    border: 1px solid #7c7c7c;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: inset 0 0 10px #5f5f5f;
}

/* Liens */
a {
    color: #01ebfc;
    text-decoration: none;
    border-bottom: 1px solid #494949;
}

a:hover {
    color: #ffffff;
    border-color: #e2e2e2;
    text-shadow: 0 0 5px #5c5c5c;
}

/* Animation d'explosion */
.explosion-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255,87,34,1) 0%, rgba(255,193,7,0.8) 30%, rgba(0,0,0,0.7) 70%);
    animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.shockwave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 9998;
    animation: shockwave 1s ease-out forwards;
}

@keyframes shockwave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300vw;
        height: 300vw;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    .terminal-container {
        padding: 10px;
    }

    #login-button {
        padding: 10px 20px;
        font-size: 1em;
    }

/* Terminal prompt et output */
.terminal-prompt {
    color: #ffffff;
    margin: 15px 0;
    font-size: 1em;
}

.terminal-output {
    margin-left: 20px;
}

.terminal-output p {
    margin: 8px 0;
    line-height: 1.6;
}

.command {
    color: #ffffff;
}

.response {
    color: #15ff00;
    margin-left: 15px;
}

/* ASCII Art */
.ascii-art {
    font-family: monospace;
    white-space: pre;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    font-size: 0.7em;
    line-height: 1.2;
}