/* ==========================================================================
    1. VARIÁVEIS (Design Tokens)
   ========================================================================== */
:root {
    --red-primary: #dc2626;
    --red-hover: #b91c1c;
    --blue-link: #1E90FF;
    /* Azulzão novo */
    --blue-hover: #00BFFF;
    --black: #09090b;
    --zinc-900: #18181b;
    --zinc-800: #27272a;
    --zinc-500: #71717a;
    --white: #ffffff;
    --glass: rgba(0, 0, 0, 0.7);
    --border: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
    2. RESET GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* ==========================================================================
    3. TIPOGRAFIA GERAL
   ========================================================================== */
h1,
h2,
.logo,
.btn-entrar {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
}

/* ==========================================================================
    4. NAVBAR (Cabeçalho) - CAMADA 60
   ========================================================================== */
header {
    position: fixed;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zinc-800);
    z-index: 60;
    /* Acima do menu lateral e conteúdo */
}

.logo {
    font-size: 2.5rem;
    color: var(--red-primary);
    letter-spacing: -1px;
    font-style: italic;
    font-weight: 700;
}

.header-action {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--zinc-800);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--white);
    transition: 0.3s;
}

/* ==========================================================================
    5. MENU LATERAL - CAMADA 50
   ========================================================================== */
#menu-lateral {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--black);
    border-left: 1px solid var(--zinc-800);
    z-index: 50;
    /* Abaixo do Header, mas acima do resto */
    padding-top: 100px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

/* Scrollbar do menu */
#menu-lateral::-webkit-scrollbar {
    width: 8px;
}

#menu-lateral::-webkit-scrollbar-track {
    background: var(--black);
}

#menu-lateral::-webkit-scrollbar-thumb {
    background-color: var(--zinc-800);
    border-radius: 20px;
    border: 2px solid var(--black);
}

#menu-lateral.aberto {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#menu-lateral ul {
    list-style: none;
}

#menu-lateral a {
    text-decoration: none;
    color: var(--zinc-500);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Teko', sans-serif;
    letter-spacing: 2px;
    display: block;
    padding: 15px 30px;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

#menu-lateral a:hover {
    color: var(--white);
    padding-left: 40px;
    border-left: 3px solid var(--red-primary);
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.1), transparent);
}

/* ==========================================================================
    6. HERO SECTION - CAMADAS 1 e 2
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    /* Camada mais baixa */
}

.fundo-inicio {
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.3), rgba(9, 9, 11, 1)), url('imgFundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.conteudo-hero {
    position: relative;
    z-index: 2;
    /* Acima do efeito de fundo */
    max-width: 800px;
    padding: 0 20px;
}

.conteudo-hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin: 20px 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.conteudo-hero h2 {
    color: var(--zinc-500);
    font-size: 2rem;
    letter-spacing: 0.5em;
    font-weight: 700;
}

.conteudo-hero p {
    color: var(--zinc-500);
    margin-top: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ==========================================================================
    7. MODAIS - CAMADA 100 (TOPO ABSOLUTO)
   ========================================================================== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    /* O modal deve estar acima de tudo */
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: var(--zinc-900);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--zinc-800);
    border-radius: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-box input {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    background: var(--black);
    border: 1px solid var(--zinc-800);
    color: white;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.modal-box input:focus {
    border-color: var(--red-primary);
}

.btn-entrar,
.btn-signin {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: var(--red-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-entrar:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
}

.btn-signin {
    background-color: transparent;
    border: 1px solid var(--zinc-800);
    margin-top: 10px;
}

.btn-signin:hover {
    border-color: var(--white);
    background: transparent;
    box-shadow: none;
}

.btn-google {
    width: 100%;
    background: var(--white);
    color: var(--black);
    padding: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.link-esqueci-senha {
    text-align: right;
    margin-bottom: 15px;
    margin-top: 5px;
}

.link-esqueci-senha a {
    color: var(--zinc-500);
    font-size: 0.8rem;
    text-decoration: none;
}

.link-esqueci-senha a:hover {
    color: var(--white);
}

/* ==========================================================================
    8. ESTRUTURA GERAL DE PÁGINAS
   ========================================================================== */
.page-content {
    padding: 150px 5% 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-content h1::before {
    content: '';
    display: block;
    width: 5px;
    height: 50px;
    background-color: var(--red-primary);
}

/* ==========================================================================
    9. COMPONENTES VISUAIS
   ========================================================================== */
.titulo-sessao h2 {
    border-bottom: 1px solid var(--zinc-800);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2rem;
}

@keyframes pulsoGamer {
    0% {
        opacity: 0.3;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--red-primary);
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.98);
    }
}

.loading-msg {
    text-align: center;
    color: var(--white);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 40px;
    animation: pulsoGamer 1.5s infinite ease-in-out;
}

/* ==========================================================================
    10. PÁGINA: QUEM SOMOS
   ========================================================================== */
.fundo-QSomos {
    background-color: var(--black) !important;
    background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('logo-praise-rock-transparente.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 800px;
}

.fundo-QSomos .page-content h1 {
    color: var(--red-primary);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1), -1px -1px 0px rgba(0, 0, 0, 1), 1px -1px 0px rgba(0, 0, 0, 1);
}

.fundo-QSomos .page-content h2,
.fundo-QSomos .page-content p {
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1), -1px -1px 0px rgba(0, 0, 0, 1), 1px -1px 0px rgba(0, 0, 0, 1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-content h2,
.page-content h3 {
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--zinc-500);
}

/* ==========================================================================
    11. PÁGINA: CONTATOS
   ========================================================================== */
.fundo-contatos {
    background-color: var(--black);
    background-image: url(logo-praise-rock-transparente.png);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 400px;
    background-attachment: fixed;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background-color: var(--zinc-900);
    border: 1px solid var(--zinc-800);
    color: var(--white);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.contact-form .btn-entrar {
    margin-top: 10px;
    width: 100%;
}

/* ==========================================================================
    12. PÁGINA: FÓRUM
   ========================================================================== */
.fundo-forum {
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.5), rgba(9, 9, 11, 0.7)), url('ImgShow.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.fundo-forum .page-content h2,
.fundo-forum .page-content p {
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1), -1px -1px 0px rgba(0, 0, 0, 1), 1px -1px 0px rgba(0, 0, 0, 1);
}

.forum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nova-postagem {
    background: var(--zinc-900);
    border: 1px solid var(--zinc-800);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cabecalho-post {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--red-primary);
}

.nova-postagem textarea {
    width: 100%;
    background-color: var(--black);
    border: 1px solid var(--zinc-800);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 100px;
}

.nova-postagem textarea:focus {
    border-color: var(--red-primary);
}

.botoes-post {
    text-align: right;
    margin-top: 15px;
}

.btn-publicar {
    background-color: transparent;
    border: 2px solid var(--red-primary);
    color: var(--white);
    padding: 10px 40px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-publicar:hover {
    background-color: var(--red-primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.post-card {
    background: rgba(24, 24, 27, 0.6);
    border-left: 4px solid var(--red-primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--zinc-500);
}

.post-autor {
    color: var(--red-primary);
    font-weight: bold;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
}

.box-aviso {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    border: 1px solid var(--zinc-800);
    margin-bottom: 40px;
}

.box-aviso h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.box-aviso p {
    color: var(--zinc-500);
    margin-bottom: 20px;
}

.btn-login-destaque {
    background-color: var(--red-primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login-destaque:hover {
    background-color: var(--red-hover);
    transform: scale(1.05);
}

/* ==========================================================================
    13. PÁGINA: EVENTOS (e Campos Admin)
   ========================================================================== */
#area-criar-evento {
    display: none;
    border-color: var(--red-primary);
}

.titulo-admin {
    color: var(--white);
}

.form-evento {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-evento {
    padding: 10px;
    background: var(--black);
    border: 1px solid var(--zinc-800);
    color: var(--white);
    border-radius: 8px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-evento:focus {
    border-color: var(--red-primary);
}

.textarea-evento {
    min-height: 80px;
    resize: vertical;
}

#lista-eventos {
    padding: 0;
}

/* ==========================================================================
    14. PÁGINA: VÍDEOS (Galeria Grid)
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-card {
    background: var(--zinc-900);
    border: 1px solid var(--zinc-800);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.video-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-title {
    color: var(--white);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.btn-delete-video {
    background: var(--red-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.btn-delete-video:hover {
    background: var(--red-hover);
}

/* ==========================================================================
    15. RESPONSIVIDADE (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .fundo-contatos {
        background-position: center bottom;
        background-size: 200px;
    }

    .conteudo-hero h1 {
        font-size: 3.5rem;
    }

    .page-content h1 {
        font-size: 3rem;
    }

    .modal-box {
        width: 90%;
    }
}

/* ==========================================================================
    16. FOOTER & LINKS - CAMADA 10 (Base Segura)
   ========================================================================== */

footer {
    background-color: var(--black);
    border-top: 2px solid var(--red-primary);
    text-align: center;
    padding: 40px 5%;

    /* ORGANIZAÇÃO DE CAMADAS */
    position: relative;
    z-index: 10;
    /* Alta o suficiente para funcionar o clique, baixa para não cobrir menus */
}

.copyright {
    color: var(--zinc-500);
}

/* ESTILO DO LINK KODEX (Azulzão) */
#link-kodex {
    color: var(--blue-link);
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

#link-kodex:hover {
    color: var(--blue-hover);
    text-shadow: 0 0 15px var(--blue-link);
    letter-spacing: 1px;
}

/* ==========================================================================
    17. Estilo link KODEX
   ========================================================================== */
/* Animação Loop Infinito */
@keyframes kodexPulse {
    0% {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 0 5px #ff073a, 0 0 10px rgba(255, 7, 58, 0.5);
    }
    50% {
        color: #fff;
        text-shadow: 0 0 10px #ff073a, 0 0 20px #ff073a, 0 0 40px #ff073a, 0 0 80px #ff073a;
    }
    100% {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 0 5px #ff073a, 0 0 10px rgba(255, 7, 58, 0.5);
    }
}



/* Estilo do Link KODEX */
#link-kodex {
    text-decoration: none !important;
    font-weight: bold;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    cursor: pointer !important;
    display: inline-block;
    animation: kodexPulse 1.5s infinite ease-in-out;
}

#link-kodex:hover {
    animation: none;
    color: #fff !important;
    text-shadow: 0 0 10px #00BFFF,
        0 0 30px #1E90FF,
        0 0 50px #fff;
    transition: 0.2s;
}