/* --- CORES E RESET --- */
:root {
    --vermelho: #ff0000;
    --preto: #000000;
    --card: #161616;
    --texto: #eee;
}

body { 
    margin: 0; 
    background: var(--preto); 
    color: var(--texto); 
    font-family: sans-serif; 
}

/* --- SIDEBAR --- */
.sidebar { 
    width: 280px; height: 100vh; background: #0a0a0a; 
    border-right: 2px solid var(--vermelho); position: fixed; 
    overflow-y: auto; z-index: 10; 
}
.sidebar h2 { 
    text-transform: uppercase; 
    letter-spacing: 2px;
    text-align: center;
    padding: 20px 0;
}
.master-btn { 
    width: 100%; padding: 15px; text-align: left; background: none; 
    border: none; color: #fff; font-weight: bold; cursor: pointer; 
    border-bottom: 1px solid #1a1a1a; display: flex; justify-content: space-between;
    text-transform: uppercase;
}
.sub-list { display: none; background: #050505; }
.sub-item { 
    display: block; padding: 10px 20px 10px 35px; color: #888; 
    text-decoration: none; font-size: 0.85rem;
    text-transform: uppercase;
}
.sub-item.active { color: #fff; border-left: 2px solid var(--vermelho); background: #111; }
.show { display: block !important; }

/* --- CONTEÚDO E HEADER --- */
.main-content { margin-left: 280px; flex: 1; padding: 20px; }

.header-detalhes { text-align: center; margin-bottom: 50px; padding-top: 20px; }

.header-master {
    color: var(--vermelho);
    font-size: 2.8rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}
.header-subtitulo {
    color: #888;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 300;
    margin: 5px 0 0 0;
    letter-spacing: 4px;
}

/* --- TÓPICOS --- */
.titulo-topico {
    color: #fff;
    background: linear-gradient(90deg, #300, transparent);
    padding: 10px 20px;
    border-left: 4px solid var(--vermelho);
    text-transform: uppercase;
    margin: 40px 0 20px 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* --- GRID E GALERIA --- */
.galeria { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    max-width: 1600px; 
    margin: auto; 
}

.item-galeria { 
    cursor: pointer; 
    transition: 0.2s; 
    background: var(--card); 
    border-radius: 4px; 
    overflow: hidden; 
    height: auto; 
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.item-galeria:hover { transform: translateY(-5px); }

.item-galeria img, .item-galeria video { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block;
}

/* Estilo do texto do card na Home */
.card-info { padding: 15px; background: #111; border-top: 1px solid #222; }
.card-master { color: var(--vermelho); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; }
.card-sub { color: #fff; font-size: 1rem; text-transform: uppercase; line-height: 1.2; }

/* --- BOTÃO VOLTAR FLUTUANTE --- */
.btn-voltar-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--vermelho);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    z-index: 999;
    transition: 0.3s;
}
.btn-voltar-flutuante:hover {
    transform: scale(1.1);
    background: #cc0000;
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); display: none; align-items: center; 
    justify-content: center; z-index: 9999;
}
#lb-body { max-width: 85%; max-height: 90%; display: flex; justify-content: center; }
#lb-body img, #lb-body video { max-width: 100%; max-height: 90vh; object-fit: contain; }
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); color: #fff; border: none; 
    font-size: 50px; padding: 20px; cursor: pointer; z-index: 10000;
}
.close-lb { position: absolute; top: 20px; right: 30px; font-size: 40px; cursor: pointer; color: white; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .galeria { grid-template-columns: 1fr; } 
    .item-galeria img, .item-galeria video { height: auto; }
    .header-master { font-size: 1.8rem; }
    .btn-voltar-flutuante { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}


/* --- TELA DE VERIFICAÇÃO (INDEX) --- */
.v-body {
    background: radial-gradient(circle, #1a0000 0%, #000 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v-container {
    max-width: 500px;
    width: 90%;
    animation: fadeIn 0.8s ease-out;
}

.v-box {
    background: rgba(10, 10, 10, 0.95);
    padding: 50px 30px;
    border: 2px solid var(--vermelho);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.v-icon { font-size: 50px; margin-bottom: 20px; }

.v-title {
    color: var(--vermelho);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 900;
}

.v-text { color: #888; margin-bottom: 5px; }
.v-question { color: #eee; font-size: 1.1rem; margin-bottom: 30px; }

.v-btn {
    background: var(--vermelho);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    letter-spacing: 1px;
}

.v-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.v-exit {
    display: block;
    margin-top: 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.v-exit:hover { color: #888; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos específicos para facilitar a visualização no admin */
.admin-box { background: #111; padding: 20px; border: 1px solid #333; border-radius: 8px; margin-bottom: 30px; }
.admin-table { width: 100%; border-collapse: collapse; background: #080808; }
.admin-table td { padding: 12px; border-bottom: 1px solid #222; }
.topico-item { background: #1a1a1a; padding: 15px; border-left: 5px solid red; margin-bottom: 15px; }
.thumb-admin { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #333; }
input, select { background: #000; color: #fff; border: 1px solid #444; padding: 8px; }
button { cursor: pointer; border: none; padding: 10px 15px; font-weight: bold; border-radius: 4px; }