/* ---------------------------
    GERAL
----------------------------*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* VIDEO DE FUNDO */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.video-area {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh; /* garante que o vídeo cubra a parte da home */
}

.features-section {
    background: transparent; /* fundo real, separado do vídeo */
    padding: 80px 0;
    position: relative;
    z-index: 5;
}


/* SOBRELAY PARA LEITURA */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: -1;
}


/* ---------------------------
    MENU SUPERIOR
----------------------------*/
#menu {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(4px);

    display: flex;
    align-items: center;

    /* Deixa tudo dentro com espaçamento agradável */
    padding: 0 25px;
    box-sizing: border-box;

    /* Elementos bem distribuídos */
    justify-content: space-between;

    z-index: 10;
}

/* LOGO */
#menu .logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

/* NAV LINKS */
#menu nav {
    display: flex;
    align-items: center;
    gap: 20px; /* espaçamento automático */
}

#menu nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s;
}

#menu nav a:hover {
    color: #ff4040;
}

/* ÍCONE DO MENU */
.menu-icon {
    width: 8px;      /* menor */
    height: 8px;
    margin-right: 6px;
    vertical-align: middle;

    /* mantém as cores originais do ícone */
    filter: none;

    transition: 0.25s ease-in-out;
}

/* Quando passar o mouse no link → ícone brilha vermelho */
#menu nav a:hover .menu-icon {
    filter: drop-shadow(0 0 6px #ff1a1a) brightness(1.8) saturate(2);
}

/* Deixa o link alinhado certinho com ícone + texto */
#menu nav a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BOTÃO DO PAINEL MELHOR POSICIONADO */
.panel-btn {
    background: #ff1a1a;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}

.panel-btn:hover {
    background: #d10000;
}

/* LOGO CENTRAL */
.hero-center {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

.main-logo {
    width: 450px;
    max-width: 80%;
    filter:
        drop-shadow(0 0 6px rgba(255, 0, 0, 0.5))
        drop-shadow(0 0 12px rgba(255, 0, 0, 0.5))
        brightness(1.15);
    transition: filter 0.5s ease-in-out;
}

.main-logo:hover {
    filter:
        drop-shadow(0 0 10px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.4))
        brightness(1.45);
}


/* BOTÃO LATERAL */
.countdown-toggle {
    position: fixed;
    top: 130px;
    left: 0;
    width: 15px;
    height: 30px;
    background: rgba(0,0,0,0.6);
    border-right: 3px solid #ff1a1a;
    color: #ff1a1a;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(3px);
    z-index: 30;
    transition: all 0.3s ease;
}

/* PAINEL RETRÁTIL */
.countdown-banner {
    position: fixed;
    top: 120px;
    left: 0;
    width: 240px;
    background: rgba(0,0,0,0.50);
    padding: 15px 20px;
    border-right: 4px solid #ff1a1a;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(3px);
    z-index: 20;

    transform: translateX(-100%);
    opacity: 0;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* QUANDO ABERTO */
.countdown-banner.retract-open {
    transform: translateX(0);
    opacity: 1;
}

/* QUANDO FECHADO */
.countdown-banner.retract-close {
    transform: translateX(-100%);
    opacity: 0;
}

/* Título */
.countdown-banner h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #ff1a1a;
    text-shadow: 0 0 5px black;
}

/* BLOCO DO COUNTDOWN */
.countdown-box {
    display: flex;
    gap: 10px;
}

.cd-block {
    background: rgba(0,0,0,0.65);
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ff1a1a;
}

.cd-block span {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #ff1a1a;
}

.cd-block p {
    font-size: 12px;
    margin: 2px 0 0;
}

/* MOBILE AJUSTADO */
@media (max-width: 768px) {
    .countdown-toggle {
        top: 100px;
    }

    .countdown-banner {
        top: 100px;
        width: 260px;
    }
}


/* Overlay escuro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Caixa de login */
.login-box {
    background: rgba(0,0,0,0.85);
    border: 1px solid #ff1a1a;
    padding: 30px;
    width: 350px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px #000;
}

/* Título */
.login-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Botão fechar */
.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #ff1a1a;
}

.login-box label {
    font-size: 15px;
}

.login-box input,
.login-box select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #111;
    color: white;
}


/* Caixa de lembrar */
.remember-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    margin: 5px 0 15px;
}


/* Label do remember */
.remember-box label {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

/* Checkbox */
.remember-box input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0;
    cursor: pointer;
}


/* Botão entrar */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #ff1a1a;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.login-btn:hover {
    background: #d10000;
}

/* user-box quando logado */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}
.menu-user {
    color: #fff;
    font-weight: bold;
    padding-right: 6px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* botões do user box */
.dash-btn, .logout-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    transition: .15s;
}
.dash-btn:hover { background: rgba(255,255,255,0.03); color: #ffd26a; border-color: rgba(255,210,106,0.25); }
.logout-btn:hover { background: rgba(255,255,255,0.03); color: #ff8080; border-color: rgba(255,120,120,0.25); }

/* ---------------------------
   DASHBOARD SUPER MODERNO
----------------------------*/

.dashboard-box {
    background: rgba(0,0,0,0.88);
    border: 1px solid #ff1a1a;
    padding: 30px;
    width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    animation: dashOpen .3s ease;
}

@keyframes dashOpen {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.dashboard-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #ff1a1a;
}

/* ABAS */
.dash-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.dash-tab {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: .2s;
}

.dash-tab.active,
.dash-tab:hover {
    background: #ff1a1a;
    border-color: #ff1a1a;
}

/* CONTEÚDO DAS ABAS */
.dash-content {
    margin-top: 10px;
}

.dash-tab-content {
    display: none;
}

.dash-tab-content.active {
    display: block;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* SEÇÕES INTERNAS */
.dash-section {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.dash-section h3 {
    color: #ffd26a;
    margin-bottom: 10px;
}

.coins-btn {
    margin-top: 10px;
    background: #ffd26a;
    color: black;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.coins-btn:hover {
    background: #ffbf3e;
}
/* GRID DE PERSONAGENS */
.chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* CARD DO PERSONAGEM */
.char-card {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: .2s;
}

.char-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: #ff1a1a;
}

.char-card h4 {
    font-size: 18px;
    color: #ffd26a;
    margin-bottom: 10px;
}

/* LABELS */
.ok { color: #4dff4d; font-weight: bold; }
.no { color: #ff4d4d; font-weight: bold; }
.hero { color: #6ecbff; font-weight: bold; text-shadow: 0 0 5px #0099ff; }


.login-error {
    background: #ff3d3d;
    padding: 10px;
    color: white;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align:center;
}

.login-success {
    background: #4cff4c;
    padding: 10px;
    color: #000;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align:center;
}


.login-success {
    background: #4CFF4C;
    padding: 10px;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {opacity: 0.6;}
    100% {opacity: 1;}
}
/* CONTAINER DO FORMULÁRIO */
.security-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LABELS */
.security-form label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #ffd26a;
}

/* INPUTS */
.security-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.45);
    color: #fff;
    transition: .2s;
}

.security-form input[type="password"]:focus {
    border-color: #ffd26a;
    background: rgba(255,255,255,0.08);
}

/* CHECKBOX */
.security-form .checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.security-form .checkbox-line label {
    margin: 0;
    font-weight: normal;
}

/* BOTÃO */
.security-form .login-btn {
    margin-top: 10px;
    background: #ff1a1a;
    border-radius: 8px;
    padding: 12px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.security-form .login-btn:hover {
    background: #c40000;
}

/* MENSAGENS */
.login-error,
.login-success {
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 5px;
    animation: fadeIn .3s;
}

.login-error {
    background: rgba(255, 60, 60, 0.25);
    color: #ff4c4c;
    border: 1px solid rgba(255, 50, 50, 0.5);
}

.login-success {
    background: rgba(60, 255, 90, 0.25);
    color: #4cff4c;
    border: 1px solid rgba(60, 255, 90, 0.5);
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------
    RESPONSIVIDADE
----------------------------*/
@media (max-width: 700px) {
    #menu {
        flex-direction: column;
        height: auto;
        padding-bottom: 10px;
    }

    nav {
        margin-top: 10px;
    }

    .countdown-box {
        flex-direction: column;
    }

    .content {
        margin-top: 230px;
    }
}

/* ===================================================  
   FEATURE SECTION (TRÊS PERSONAGENS)
=================================================== */
.features-section {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    color: white;
    position: relative;
    z-index: 5;
}

.features-title {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px black;
}

/* GRID DOS CARDS */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 10px 20px;
}

/* CARD INDIVIDUAL */
.feature-card {
    width: 320px;
    background: rgba(0,0,0,0.55);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #ff1a1a;
    box-shadow: 0 0 20px #ff1a1a55;
}

/* TÍTULO DO CARD */
.feature-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 0 0 8px black;
}

/* IMAGEM DO PERSONAGEM */
.feature-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
/* DOWNLOAD MODAL */
.download-box {
    background: rgba(0,0,0,0.90);
    border: 1px solid #ff1a1a;
    padding: 30px;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px #000;
}

.download-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff1a1a;
}

/* CONTENT */
.download-section {
    background: rgba(255,255,255,0.04);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.download-section h3 {
    color: #ffd26a;
    margin-bottom: 8px;
}

.download-section p {
    color: #fff;
    margin-bottom: 12px;
}

/* BUTTONS */
.download-btn {
    display: block;
    background: #ff1a1a;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.download-btn:hover {
    background: #cc0000;
}
