/* =========================================
   1. RESET E BASE (DARK MODE TÉCNICO)
   ========================================= */
:root {
    --bg-color: #050505;       /* Preto Fosco */
    --card-bg: #0e0e0e;        /* Card Escuro */
    --highlight: #00ff88;      /* Verde Neon (Detalhes) */
    --accent: #7000ff;         /* Roxo Nexus */
    --orange-gold: #ff8c00;    /* Laranja Bônus */
    --text-main: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* =========================================
   2. SPLASH SCREEN (INTRODUÇÃO)
   ========================================= */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background-color: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}

/* VÍDEO TELA CHEIA (SEM BORDAS) */
#splash-screen video {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Cobre tudo, sem sobras */
    border-radius: 0;  /* Canto quadrado */
    box-shadow: none;
}

.fade-out { opacity: 0; transition: opacity 0.8s ease-out; pointer-events: none; }
/* =========================================
   3. HEADER E LOGO (1.6rem)
   ========================================= */
header {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 5, 0.9); /* Fundo semi-transparente para leitura */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
}

/* LOGO EM TEXTO (PEDIDO DO DIRETOR: 1.6rem) */
.text-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem; /* Tamanho exato solicitado */
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}

.member-link {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    color: #888; text-decoration: none; border: 1px solid #333;
    padding: 6px 10px; border-radius: 4px; background: rgba(0,0,0,0.5);
    transition: all 0.3s;
}
.member-link:hover { border-color: #fff; color: #fff; }

/* =========================================
   4. STATUS E TEXTO TÉCNICO
   ========================================= */
#app-content { padding-top: 90px; }
.hidden { display: none; } .visible { display: block; animation: fadeIn 1s; }

.status-bar {
    display: flex; justify-content: center; gap: 15px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #555;
    margin-bottom: 15px;
}
.dot.online { display: inline-block; width: 6px; height: 6px; background: var(--highlight); border-radius: 50%; margin-right: 5px; box-shadow: 0 0 5px var(--highlight); }
.highlight { color: #fff; font-weight: bold; }

/* TEXTO TÉCNICO (AGORA ACIMA DOS VÍDEOS) */
.instruction-text { text-align: center; margin-bottom: 20px; padding: 0 20px; }
.instruction-text p { font-size: 0.9rem; letter-spacing: 0.5px; color: #aaa; line-height: 1.4; max-width: 500px; margin: 0 auto; }

/* =========================================
   5. ÁREA DE MÍDIA (HÍBRIDO: CARROSSEL vs GRADE)
   ========================================= */
.media-section { position: relative; width: 100%; margin: 0 auto 10px; }

/* MODO MOBILE (CARROSSEL) */
.carousel-container { position: relative; width: 100%; height: 65vh; max-height: 550px; }
.slider-wrapper { width: 100%; height: 100%; position: relative; }

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 10px;
}
.slide.active { opacity: 1; pointer-events: all; z-index: 5; }

/* Wrapper do Vídeo */
.video-wrapper {
    position: relative; width: 100%; height: 90%;
    background: #000; border-radius: 8px; overflow: hidden;
    border: 1px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.poster-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.video-wrapper video { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; opacity: 0; background: #000;
}
/* Play Icon */
.play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 4rem; color: rgba(255,255,255,0.9); z-index: 10;
    text-shadow: 0 0 20px rgba(0,0,0,0.8); cursor: pointer;
}
.play-icon:active { transform: translate(-50%, -50%) scale(0.9); }

/* Play State */
.video-wrapper.playing .poster-img, .video-wrapper.playing .play-icon { display: none; }
.video-wrapper.playing video { opacity: 1; }

.slide-label {
    margin-top: 10px; font-family: 'JetBrains Mono'; color: #fff;
    background: #111; padding: 5px 15px; border-radius: 4px; border: 1px solid #333;
    font-size: 0.75rem; text-transform: uppercase;
}

/* Setas Nav */
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.5rem; padding: 15px 10px; cursor: pointer;
    z-index: 20; border-radius: 5px;
}
.prev-btn { left: 10px; display: none; }
.next-btn { right: 10px; }

/* MODO DESKTOP (GRADE/GRID) */
@media (min-width: 1024px) {
    .carousel-container { height: auto; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .slider-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .slide { position: relative; opacity: 1 !important; pointer-events: all !important; display: block; padding: 0; width: auto; height: auto; }
    .video-wrapper { height: 280px; /* Mais alto no PC */ border: 1px solid #333; }
    .play-icon { font-size: 3rem; }
    .nav-btn { display: none !important; }
}

/* =========================================
   6. CTA (BOTÃO DE TESTE)
   ========================================= */
.cta-section { text-align: center; padding: 10px 20px 30px; }

/* Botão Teste (Logo abaixo dos vídeos) */
.btn-test-main {
    display: inline-block; width: 100%; max-width: 320px;
    background: transparent; color: #fff;
    border: 1px solid #444; /* Borda cinza técnica */
    text-decoration: none; padding: 15px; border-radius: 6px;
    font-weight: 600; letter-spacing: 1px; font-size: 0.9rem;
    transition: all 0.3s;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
}
.btn-test-main:hover { border-color: var(--highlight); color: var(--highlight); }

/* =========================================
   7. FIDELIDADE (BOTÃO LARANJÃO)
   ========================================= */
.fidelidade-section { padding: 20px; display: flex; justify-content: center; }
.fidelidade-box {
    background: #0e0e0e; border: 1px solid #222;
    padding: 25px; border-radius: 10px; text-align: center; width: 100%; max-width: 400px;
}
.fidelidade-box h4 { color: var(--orange-gold); margin-bottom: 5px; font-size: 0.75rem; font-family: 'JetBrains Mono'; letter-spacing: 1px; }
.fidelidade-box p { color: #888; font-size: 0.9rem; margin-bottom: 20px; }

/* BOTÃO LARANJA (PEDIDO DO DIRETOR) */
.btn-bonus-orange {
    display: block; width: 100%;
    background: linear-gradient(45deg, #ff8c00, #ff4500); /* Gradiente Laranja/Vermelho */
    color: #fff; text-decoration: none;
    font-weight: 900; font-size: 0.9rem; text-transform: uppercase;
    padding: 15px; border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4); /* Sombra laranja */
    transition: transform 0.2s;
}
.btn-bonus-orange:active { transform: scale(0.98); }

/* =========================================
   8. FORMULÁRIO E RODAPÉ
   ========================================= */
.form-section { padding: 40px 20px 60px; display: flex; justify-content: center; }
.form-container { width: 100%; max-width: 450px; text-align: center; }

/* Título com espaçamento */
.form-title {
    color: #fff; margin-bottom: 25px;
    font-size: 1.3rem; font-family: 'Inter'; font-weight: 800;
    letter-spacing: 4px; /* Espaço aberto */
}

.form-container input { width: 100%; background: #0a0a0a; border: 1px solid #222; color: #fff; padding: 15px; margin-bottom: 12px; border-radius: 4px; }
.form-container input:focus { border-color: var(--orange-gold); }
.form-container button { width: 100%; background: #fff; color: #000; font-weight: 800; padding: 15px; border: none; border-radius: 4px; cursor: pointer; }

footer { text-align: center; padding: 30px 20px; border-top: 1px solid #111; margin-top: 20px; background: #020202; }
.legal-links { color: #444; font-size: 0.65rem; margin-bottom: 10px; cursor: default; }
.legal-links span { margin: 0 3px; }
.copyright { color: #333; font-size: 0.6rem; font-family: 'JetBrains Mono'; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }