/**
 * neon-cyberpunk.css - Estética MS-DOS/terminal para Neon Lights
 * Sobrescreve book.css e globals.css
 */

/* ================================================ */
/* FONTS */
/* ================================================ */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* ================================================ */
/* ANIMATIONS */
/* ================================================ */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    95% { opacity: 0.8; }
    96% { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.2); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.4), 0 0 60px rgba(0, 255, 0, 0.2); }
}

@keyframes textGlitch {
    0% { text-shadow: none; }
    20% { text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff; }
    40% { text-shadow: -2px 0 #ff00ff, 2px 2px 0 #00ffff; }
    60% { text-shadow: 2px 0 #ff00ff, -2px -2px 0 #00ffff; }
    100% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
}

/* ================================================ */
/* BASE - Black background, green text */
/* ================================================ */
body {
    background: #000 !important;
    font-family: 'VT323', monospace !important;
    color: #00ff00 !important;
}

/* Hide starfield */
.starfield {
    display: none !important;
}

/* Scanlines overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: scanlines 10s linear infinite;
}

/* ================================================ */
/* NAV CYBERPUNK */
/* ================================================ */
nav {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 2px solid #00ff00 !important;
    box-shadow: 0 2px 20px rgba(0, 255, 0, 0.3);
}

.logo {
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-size: 1.8rem !important;
}

.logo:hover {
    color: #00ffff !important;
}

.nav-links a {
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
}

.nav-links a::after {
    background: #00ffff !important;
}

.nav-links a:hover {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.language-selector {
    background: rgba(0, 255, 0, 0.1) !important;
    border: 1px solid #00ff00 !important;
}

.lang-btn {
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
    font-size: 1rem !important;
}

.lang-btn.active {
    background: #00ff00 !important;
    color: #000 !important;
}

.lang-btn:hover:not(.active) {
    color: #00ffff !important;
}

/* ================================================ */
/* SIDEBAR CYBERPUNK */
/* ================================================ */
.sidebar {
    background: rgba(0, 0, 0, 0.98) !important;
    border-left: 2px solid #00ff00 !important;
}

.sidebar-toggle {
    background: #000 !important;
    border: 1px solid #00ff00 !important;
    color: #00ff00 !important;
}

.sidebar-panel {
    background: #000 !important;
}

.sidebar-header {
    border-bottom: 1px solid #00ff00 !important;
}

.sidebar-title {
    color: #ffff00 !important;
    font-family: 'VT323', monospace !important;
    text-transform: uppercase;
}

.sidebar-link {
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
}

.sidebar-link:hover {
    color: #00ffff !important;
    background: rgba(0, 255, 0, 0.1) !important;
}

.sidebar-section {
    color: #ff00ff !important;
    font-family: 'VT323', monospace !important;
}

/* ================================================ */
/* BOOK NAV CYBERPUNK */
/* ================================================ */
.book-nav {
    border-bottom: 1px solid #00ff00 !important;
}

.nav-btn {
    color: #00ff00 !important;
    border: 1px solid #00ff00 !important;
    background: transparent !important;
    font-family: 'VT323', monospace !important;
    text-transform: uppercase;
}

.nav-btn:hover:not(:disabled) {
    background: #00ff00 !important;
    color: #000 !important;
}

.nav-btn:disabled {
    color: #006600 !important;
    border-color: #006600 !important;
}

.page-indicator {
    color: #ffff00 !important;
    font-family: 'VT323', monospace !important;
}

/* ================================================ */
/* COVER */
/* ================================================ */
.page-cover {
    text-align: center;
}

.cover-image {
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4), 0 0 60px rgba(0, 255, 0, 0.2) !important;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

/* ================================================ */
/* PREFACE / FOREWORD */
/* ================================================ */
.page-preface {
    text-align: left;
    max-width: 700px;
}

.preface-title {
    font-family: 'VT323', monospace !important;
    font-size: 1.6rem !important;
    color: #ffff00 !important;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.preface-text {
    font-family: 'VT323', monospace !important;
    font-size: 1.2rem !important;
    color: #00ff00 !important;
    line-height: 1.8 !important;
}

.preface-text strong {
    color: #00ffff;
}

/* ================================================ */
/* TOC */
/* ================================================ */
.page-toc {
    text-align: left;
}

.toc-title {
    font-family: 'VT323', monospace !important;
    color: #ffff00 !important;
    text-transform: uppercase;
}

.toc-section-name {
    color: #ff00ff !important;
    font-family: 'VT323', monospace !important;
}

.toc-content a {
    color: #00ff00 !important;
    font-family: 'VT323', monospace !important;
}

.toc-content a:hover {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ================================================ */
/* SECTION */
/* ================================================ */
.page-section {
    text-align: center;
}

.section-title {
    font-family: 'VT323', monospace !important;
    font-size: 1.8rem !important;
    color: #ff00ff !important;
    text-transform: lowercase;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
    border: 1px solid #ff00ff;
    padding: 20px 40px;
    display: inline-block;
}

/* ================================================ */
/* POEM */
/* ================================================ */
.page-poem {
    text-align: left;
    width: 100%;
}

.poem-title {
    font-family: 'VT323', monospace !important;
    font-size: 1.3rem !important;
    color: #ffff00 !important;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
    margin-bottom: 30px !important;
    animation: titleGlitch 4s ease-in-out infinite;
}

@keyframes titleGlitch {
    0%, 90%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
        transform: translate(0);
    }
    91% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
        transform: translate(-2px, 1px);
    }
    92% {
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
        transform: translate(2px, -1px);
    }
    93% {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
        transform: translate(0);
    }
    94% {
        text-shadow: -1px 0 #ff00ff, 1px 0 #00ffff;
        transform: translate(1px, 0);
    }
    95% {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
        transform: translate(0);
    }
}

.poem-text {
    font-family: 'VT323', monospace !important;
    font-size: 1.25rem !important;
    color: #00ff00 !important;
    line-height: 2 !important;
    white-space: pre-wrap;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.typewriter-cursor {
    color: #00ff00;
    font-weight: bold;
}

.typewriter-cursor.blink {
    animation: blink 1s step-end infinite;
}

/* ================================================ */
/* PLACEHOLDER */
/* ================================================ */
.poem-placeholder {
    border: 1px dashed #ff00ff !important;
    background: rgba(255, 0, 255, 0.05) !important;
}

.placeholder-title {
    color: #ff00ff !important;
    font-family: 'VT323', monospace !important;
}

.placeholder-text {
    color: #006600 !important;
    font-family: 'VT323', monospace !important;
}

/* ================================================ */
/* SWIPE INDICATOR */
/* ================================================ */
.swipe-indicator {
    background: rgba(0, 255, 0, 0.9) !important;
    color: #000 !important;
    font-family: 'VT323', monospace !important;
}

/* ================================================ */
/* TERMINAL PAGES */
/* ================================================ */
.page-terminal {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.terminal-content {
    font-family: 'VT323', monospace !important;
    font-size: 1.2rem;
    color: #00ff00;
    line-height: 1.8;
}

.terminal-content .prompt {
    color: #00ff00;
}

.terminal-content .command {
    color: #00ffff;
}

.terminal-content .output {
    color: #00ff00;
    opacity: 0.9;
}

.terminal-content .system {
    color: #ffff00;
}

.terminal-content .error {
    color: #ff0000;
}

.terminal-content .success {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.terminal-content .accent {
    color: #ff00ff;
}

.terminal-content .loading-bar {
    font-family: 'VT323', monospace;
    color: #00ff00;
    margin: 20px 0;
    font-size: 1.3rem;
}

.terminal-content .loading-bar .filled {
    color: #00ffff;
}

.terminal-content .file-list {
    margin: 15px 0;
    padding-left: 0;
}

.terminal-content .file-entry {
    display: block;
    color: #00ff00;
    margin: 5px 0;
}

.terminal-content .file-entry .size {
    color: #006600;
    margin-right: 15px;
}

.terminal-content .file-entry .name {
    color: #00ffff;
}

.terminal-content .blink {
    animation: blink 1s step-end infinite;
}

.terminal-content .glitch {
    animation: textGlitch 0.5s ease-in-out infinite;
}

.terminal-content h2 {
    color: #ffff00;
    font-family: 'VT323', monospace !important;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.terminal-content p {
    margin: 10px 0;
}

.terminal-content .divider {
    border: none;
    border-top: 1px solid #00ff00;
    margin: 20px 0;
    opacity: 0.5;
}

.terminal-content .center {
    text-align: center;
}

.terminal-content .large {
    font-size: 1.8rem;
}

.terminal-content .dim {
    opacity: 0.5;
}

/* ================================================ */
/* FOOTER */
/* ================================================ */
footer {
    background: transparent !important;
    border-top: 1px solid #00ff00 !important;
    color: #006600 !important;
    font-family: 'VT323', monospace !important;
}
