/* --- CONFIGURAÇÕES GERAIS E EFEITO CRT --- */
body {
    background-color: #050b07;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.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%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

.terminal-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* --- TELA DE LOGIN DE ENFEITE --- */
.access-trigger-input {
    display: none;
}

.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #030704;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-box {
    background-color: rgba(0, 20, 5, 0.95);
    border: 2px solid #00ff66;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.2);
    text-align: center;
    z-index: 5001;
}

/* INSÍGNIA IMPERIAL ATRÁS DA CAIXA */
.imperial-aquila {
    position: absolute;
    width: 70%;
    max-width: 800px;
    color: rgba(0, 255, 102, 0.05); /* Brilho verde bem sutil ao fundo */
    z-index: 4999;
    pointer-events: none;
}

.security-alert {
    color: #ff3333;
    font-weight: bold;
    margin-bottom: 20px;
    animation: blink 0.6s infinite alternate;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #00ff66;
}

.input-group input {
    width: 100%;
    background-color: #071208;
    border: 1px solid #00ff66;
    padding: 12px;
    color: #00ff66;
    font-family: monospace;
    box-sizing: border-box;
}

.btn-login-submit {
    display: block;
    background-color: #00ff66;
    color: #050b07;
    padding: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 30px;
    text-align: center;
}

/* --- CONTROLE DE LIBERAÇÃO VIA CSS --- */
.main-repo-content {
    opacity: 0.1;
    pointer-events: none;
    filter: blur(4px);
    transition: all 0.6s ease;
}

.access-trigger-input:checked ~ .login-overlay {
    opacity: 0;
    visibility: hidden;
}

.access-trigger-input:checked ~ .main-repo-content {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
}

/* --- ESTRUTURA DO REPOSITÓRIO --- */
.repo-header {
    border-bottom: 2px double #00ff66;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.security-badge {
    background-color: #00441b;
    color: #00ff66;
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    border: 1px solid #00ff66;
    margin-bottom: 15px;
}

.repo-header h1 { margin: 0; font-size: 2.5rem; text-transform: uppercase; }
.repo-header .subtitle { font-size: 0.85rem; color: rgba(0, 255, 102, 0.7); }
.terminal-status { font-size: 0.8rem; margin-top: 10px; }

.repo-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.repo-card {
    display: flex;
    align-items: center;
    background-color: rgba(0, 20, 5, 0.6);
    border: 1px solid #00ff66;
    text-decoration: none;
    color: #00ff66;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-icon {
    font-size: 3rem;
    font-weight: bold;
    padding: 40px;
    background-color: rgba(0, 255, 102, 0.05);
    border-right: 1px dashed #00ff66;
    transition: all 0.3s ease;
}

.card-content { padding: 25px; flex-grow: 1; }
.card-content h2 { margin: 0 0 10px 0; text-transform: uppercase; }
.card-content .description { color: rgba(0, 255, 102, 0.8); font-size: 0.95rem; }
.card-footer { display: flex; justify-content: space-between; margin-top: 15px; font-size: 0.8rem; }

/* --- LINHAS DE ENERGIA HORIZONTAIS --- */
.energy-line-top, .energy-line-bottom {
    position: absolute;
    left: -100%;
    width: 100%;
    height: 2px;
    transition: left 0.5s ease-in-out;
}
.energy-line-top { top: 0; }
.energy-line-bottom { bottom: 0; }

/* INTERAÇÃO CARD 1: ULTRAMARINES (DOURADO) */
.card-ultramarines .energy-line-top, .card-ultramarines .energy-line-bottom {
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}
.card-ultramarines:hover {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3) !important;
    color: #ffcc00 !important;
}
.card-ultramarines:hover .card-icon { color: #ffcc00 !important; border-right-color: #ffcc00 !important; }

/* INTERAÇÃO CARD 2: NECRONS (VERDE) */
.card-necrons .energy-line-top, .card-necrons .energy-line-bottom {
    background: linear-gradient(90deg, transparent, #00ff66, transparent);
}
.card-necrons:hover {
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

/* GATILHO DE MOVIMENTO DAS LINHAS NO HOVER */
.repo-card:hover .energy-line-top { left: 100%; }
.repo-card:hover .energy-line-bottom { left: 100%; transition-delay: 0.1s; }

/* --- ELEMENTOS DE ANIMAÇÃO --- */
.status-dot { width: 8px; height: 8px; background-color: #00ff66; border-radius: 50%; display: inline-block; margin-right: 5px; }
.pulsing { animation: pulse 1s infinite alternate; }

.terminal-footer { margin-top: 60px; border-top: 1px solid #00ff66; padding-top: 20px; font-size: 0.8rem; }
.loading-bar-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.loading-bar { border: 1px solid #00ff66; height: 12px; flex-grow: 1; padding: 1px; }
.loading-progress { background-color: #00ff66; height: 100%; width: 45%; }

@keyframes blink { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pulse { 0% { opacity: 0.3; } 100% { opacity: 1; } }
