/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at center, #0a2e2e 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    /* Slightly larger for easier reading */
}

/* Section Landing / Splash Page */
#landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;

    /* Utilisation de ton image avec un filtre sombre pour le contraste */
    background: linear-gradient(rgba(8, 8, 8, 0.616), rgba(0, 0, 0, 0.329)),
        url('images/bg2.jpg') no-repeat center center;
    background-size: cover;

    color: #fff;
    text-align: center;
    position: relative;
}

/* On s'assure que le contenu est au-dessus du background */
.hero {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Animation subtile pour le background (optionnel pour le look pro) */
@keyframes slow-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

#landing {
    animation: slow-zoom 20s infinite alternate ease-in-out;
}

.lang-buttons {
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    background: #00ff99;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.social-links a {
    color: #aaa;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Comic View */
.comic-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.pages {
    padding-top: 60px;
    /* Espace pour le nav */
    max-width: 800px;
    /* Largeur max pour desktop */
    margin: 0 auto;
}

.pages img {
    display: block;
    width: 100%;
    /* S'adapte à la largeur du cell */
    height: auto;
}


.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
        opacity: 0.4; /* Add this line */
    mix-blend-mode: overlay; /* Makes the lines blend better with the dark background */

}

/* Ajoute ça à ton style actuel */
.reader-body {
    background-color: #000;
}

/* Fond noir pour la lecture */

.back-btn {
    color: #00ff99;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.comic-nav span {
    font-size: 0.9rem;
    color: #888;
    align-self: center;
}

.btn-lang {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 255, 204, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    border-radius: 4px;
}

.btn-lang:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 25px #00ffcc;
    transform: translateY(-2px);
}

/* Libère le scroll uniquement pour les pages de lecture */
.reader-body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    /* Évite que le flexbox de base ne brise le layout vertical */
}

/* Style pour la section de fin du comic */
#end-of-comic {
    color: #ffffff;
    /* Texte blanc par défaut */
}

#end-of-comic h2 {
    color: #00ff99;
    /* Vert néon magitek pour le "To be continued..." */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#end-of-comic p {
    color: #aaa;
    /* Un gris plus doux pour le merci */
    margin-bottom: 2rem;
}

/* --- SECTION DEVLOG --- */
.blog-container {
    padding: 100px 20px;
    /* Espace pour le nav fixe */
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.blog-post {
    background: rgba(0, 255, 153, 0.02);
    padding: 2.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.05);
}

.blog-post .post-date {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff99;
    opacity: 0.6;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-post h2 {
    color: #36a5b3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-size: 2em;
}

.blog-post p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.blog-post strong {
    color: #fff;
    border-bottom: 1px solid #00ff99;
}

h3 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    color: #00ff99;
}

.blog-post section {
    margin-bottom: 2rem;
}

.blog-post ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #ccc;
}

.blog-post li {
    margin-bottom: 0.5rem;
}

/* The main grid container */
/* The Flexbox container */
.asset-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 153, 0.3);
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.asset-box-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers images, regardless of whether there are 2 or 3 */
    gap: 15px;
    /* Spacing between images */
    margin-bottom: 15px;
}


.asset-box-grid img {
    /* The magic is here: the image wants to take 200px as a base, but can grow or shrink */
    flex: 1 1 200px;

    max-width: 364px;
    /* Cap the width to the original size of your render */
    width: 31%;
    /* Allows the image to scale down if the screen is small */
    height: auto;
    /* Keeps the 364x405 ratio intact */

    /* The magitek visual styling */
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 153, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    background-color: rgba(5, 5, 5, 0.8);

    transition: transform 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.asset-box-grid img.full {
    flex: 1 1 100%;
    /* Forces the image to take up the full row */
    max-width: 100%;
    /* Overrides the 364px cap so it can stretch */
    width: 100%;
}

/* Hover effect */
.asset-box-grid img:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 255, 153, 0.8);
    box-shadow: 0 6px 20px rgba(0, 255, 153, 0.3);
    z-index: 2;
}

.caption {
    display: block;
    font-size: 0.85rem;
    color: #00ff99;
    opacity: 0.8;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-box {
    border-left: 4px solid #00ff99;
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 255, 153, 0.1) 0%, rgba(0,0,0,0) 100%);
    margin: 30px 0;
    font-style: italic;
    color: #e0e0e0;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.comic-nav {
    /* Existing code... */
    background: rgba(5, 5, 5, 0.90);
    /* Slightly darker */
    backdrop-filter: blur(8px);
    /* Adds a frosted glass effect */
    border-bottom: 1px solid rgba(0, 255, 153, 0.3);
    /* Magitek green border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.blog-post a {
    color: #36a5b3;
    /* Cyan to match your h2 */
    text-decoration: none;
    border-bottom: 1px dashed #36a5b3;
    transition: all 0.3s ease;
}

.blog-post a:hover {
    color: #00ff99;
    /* Neon green on hover */
    border-bottom: 1px solid #00ff99;
    text-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
}

.blog-post .post-date,
.caption,
.comic-nav span {
    font-family: 'Share Tech Mono', monospace;
}

.asset-box-grid img.full {
    flex: 1 1 100%;
    width: 100%;
    max-height: 600px; /* Limits the height */
    object-fit: cover; /* Crops it neatly if it hits the limit */
    object-position: top; /* Keeps the face visible */
}

/* --- LANDING PAGE TYPOGRAPHY --- */
.hero .glitch-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.hero .sub-title {
    font-family: 'Rajdhani', sans-serif;
    color: #00ff99; /* Magitek Green */
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero .terminal-text {
    font-family: 'Share Tech Mono', monospace;
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* --- CYBERPUNK BUTTONS (Replaces standard .btn) --- */
.btn-cyber {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    margin: 0.5rem;
    color: #00ff99;
    text-decoration: none;
    letter-spacing: 2px;
    background: rgba(0, 255, 153, 0.05);
    border: 1px solid #00ff99;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2), inset 0 0 10px rgba(0, 255, 153, 0.1);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-cyber:hover {
    background: #00ff99;
    color: #000;
    box-shadow: 0 0 20px #00ff99, inset 0 0 15px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

/* --- TERMINAL BUTTON (For Devlog) --- */
.devlog-link-container {
    margin: 3rem 0;
}

.btn-terminal {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: #36a5b3; /* Cyan color matching your devlog headers */
    text-decoration: none;
    padding: 12px 25px;
    border: 1px dashed #36a5b3;
    background: rgba(54, 165, 179, 0.05);
    transition: all 0.3s ease;
}

.btn-terminal:hover {
    color: #00ff99;
    border-color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

/* Blinking cursor effect for the terminal button */
.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}
@keyframes blink-animation {
    to { visibility: hidden; }
}

/* --- FOOTER LINKS --- */
.footer-links {
    margin-top: 2rem;
    font-family: 'Share Tech Mono', monospace;
}

.footer-links a {
    color: #666;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}