/* --- ESTILO DA NAVBAR (MADEIRA) --- */
.pt-navbar {
    background-color: #2b1b17;
    background-image: url("https://www.transparenttextures.com/patterns/dark-wood.png");
    background-repeat: repeat;
    border-top: 3px solid #3d2b1f;
    border-bottom: 4px solid #000;
    box-shadow:
        inset 0px 0px 15px rgba(0, 0, 0, 0.8),
        0px 5px 15px rgba(0, 0, 0, 0.5);
    padding: 0;
    font-family: "Arial", sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- LOGO ARREDONDADA --- */
.brand-logo {
    max-height: 105px;
    border-radius: 5%;
    border: 2px solid #e5a00d;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* --- LINKS E ÍCONES --- */
.nav-link {
    color: #e5a00d !important;
    text-shadow: 2px 2px 2px #000;
    padding: 25px 15px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.3);
}

.material-icons {
    font-size: 20px;
    color: #ff9900;
}

.nav-link:hover .material-icons {
    color: #fff;
    filter: drop-shadow(0 0 5px #ff9900);
}

.nav-item {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.3);
}

/* --- BOTÕES ESPECIAIS --- */

/* Estilo para o Nome do Usuário Logado */
.user-name {
    color: #e5a00d;
    margin-right: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-link {
    color: #fff !important;
    padding: 25px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.auth-link:hover {
    background: #7a1515;
    text-decoration: none;
}

.auth-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.5);
    /* Fundo escurecido para destacar os botões */
    border-left: 3px solid #3d2b1f;
    /* Divisória imitando madeira entalhada */
    height: 100%;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

/* Botão Login - Estilo "Rubi" */
.btn-login {
    background: linear-gradient(180deg, #961a1a 0%, #5e1010 100%);
    box-shadow:
        0 4px 0 #3a0a0a,
        0 5px 10px rgba(0, 0, 0, 0.5);
}

.btn-login:hover {
    background: linear-gradient(180deg, #b31e1e 0%, #7a1515 100%);
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #3a0a0a,
        0 3px 6px rgba(0, 0, 0, 0.6);
}

/* Botão Register - Estilo "Aço/Ferro" */
.btn-register {
    background: linear-gradient(180deg, #555 0%, #222 100%);
    box-shadow:
        0 4px 0 #111,
        0 5px 10px rgba(0, 0, 0, 0.5);
}

.btn-register:hover {
    background: linear-gradient(180deg, #666 0%, #333 100%);
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #111,
        0 3px 6px rgba(0, 0, 0, 0.6);
}

/* Badge do Nome do Usuário */
.user-badge {
    background: rgba(229, 160, 13, 0.15);
    border: 1px solid #e5a00d;
    padding: 6px 15px;
    border-radius: 20px;
    color: #e5a00d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px #000;
}

/* FOOTER */

.pt-footer {
    background-color: #000;
    padding: 50px 0 40px 0;
    position: relative;
    overflow: hidden;
}

/* NÉVOA NATIVA (Sem imagens externas) */
.footer-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Criando várias camadas de gradientes para simular fumaça */
    background:
        radial-gradient(
            circle at 50% 120%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%
        ),
        radial-gradient(
            circle at 20% 100%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 100%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        );
}

/* Elementos de fumaça animados */
.footer-fog::before,
.footer-fog::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -10%;
    width: 120%;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    filter: blur(40px);
    border-radius: 100%;
    animation: fogPulse 8s ease-in-out infinite alternate;
}

.footer-fog::after {
    bottom: -20px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes fogPulse {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2) translateX(20px);
        opacity: 0.6;
    }
}

/* O body precisa ser relativo para que o absolute dos personagens se baseie nele */
body {
    position: relative;
    overflow-x: hidden;
}

/* Estilo para os personagens */
.footer-person {
    position: absolute;
    /* Fixa na posição do documento, não da tela */
    bottom: 0;
    /* Alinha ao fundo do footer */
    z-index: 100;
    /* Superior ao main (z-index: 1) */
    pointer-events: none;
    /* Permite clicar no que estiver atrás deles */
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
    transition: transform 0.3s ease;
}

.person-left {
    left: 0;
    /* Se quiser que ele suba um pouco sobre o main, use um valor negativo no bottom */
    bottom: 20px;
}

.person-right {
    right: 0;
    bottom: 20px;
}

/* Garante que o main não cubra os personagens */
main {
    position: relative;
    z-index: 1;
}

.pt-footer {
    position: relative;
    z-index: 5;
    /* Footer abaixo dos personagens, mas acima do fundo */
}

@media (max-width: 992px) {
    .footer-person {
        max-height: 300px;
    }
}
