/* =============================================== */
/* Estilos Base e ESTADO DE BLOQUEIO INICIAL       */
/* =============================================== */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #10101c;
    --accent-color: #d1b4b4;
    --text-color: #EAEAEA;
    --bg-color: #0A0A14;
    --hero-title-color: #FFFACD;
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(10, 10, 20, 0.6), rgba(10, 10, 20, 0.6)), url('assets/images/saturno.png');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
}
h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.4rem; }
p { font-size: 1.1rem; }

/* LÓGICA DE BLOQUEIO INICIAL */
body.locked {
    overflow: hidden;
}
body.locked .hero,
body.locked main,
body.locked footer {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease-in-out;
}
.hero, main, footer {
    transition: filter 0.5s ease-in-out;
}

/* =============================================== */
/* Estilos do Modal de Senha                       */
/* =============================================== */
.password-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 20, 0.5); 
    display: flex; justify-content: center; align-items: center; 
    z-index: 2000; opacity: 1; 
    transition: opacity 0.5s ease-out;
}
.password-overlay.fade-out { 
    opacity: 0; 
    pointer-events: none; 
}
.password-modal {
    background-color: rgba(20, 20, 30, 0.8); 
    padding: 30px 40px;
    border-radius: 10px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.password-modal.shake { 
    animation: shake 0.5s ease-in-out; 
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}
.password-modal h2 { color: var(--hero-title-color); margin-bottom: 10px; }
.password-modal p { margin-bottom: 20px; font-size: 1rem; }
#password-form input {
    width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    background-color: rgba(0,0,0,0.3);
    color: white; font-size: 1.2rem; text-align: center;
}
#password-form button {
    width: 100%; padding: 12px; border: none; border-radius: 5px;
    background-color: var(--accent-color); 
    color: var(--secondary-color);
    font-weight: bold; cursor: pointer; 
    transition: background-color 0.3s ease;
}
#password-form button:hover { background-color: #b99a9a; }
.error-message {
    color: #ff8a8a; font-size: 0.9rem !important; margin-top: 10px;
    visibility: hidden; opacity: 0; 
    transition: opacity 0.3s ease;
}
.error-message.visible { visibility: visible; opacity: 1; }

/* =============================================== */
/* Seções Principais (Hero, Main)                  */
/* =============================================== */
.hero {
    position: relative; color: var(--text-color); height: 90vh;
    display: flex; justify-content: center; align-items: center;
    text-align: center; padding: 0 20px; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -5%; left: -5%;
    width: 110%; height: 110%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/fundo.png');
    background-size: cover; background-position: center;
    filter: blur(0.5px); z-index: -1;
}
.hero h1 {
    color: var(--hero-title-color);
    text-shadow: 0 0 8px rgba(255, 250, 205, 0.7), 0 0 12px rgba(240, 230, 140, 0.5);
}
.hero-content .date { font-style: italic; font-size: 1.1rem; margin-top: 1rem; }

main { padding-top: 40px; }
main section {
    padding: 50px 20px; 
    max-width: 1100px; 
    margin: 0 auto 40px auto;
    background-color: rgba(10, 10, 20, 0.65);
    backdrop-filter: blur(5px); 
    border-radius: 25px;
}

/* =============================================== */
/* Galeria de Imagens e Vídeos                     */
/* =============================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.gallery-grid img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}
.video-container {
    position: relative; padding-bottom: 177.77%;
    height: 0; overflow: hidden; width: 100%; max-width: 360px;
    margin: 0 auto; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 3px solid rgba(255, 255, 255, 0.1); 
    background-color: #000;
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* style.css (Adição) */

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* =============================================== */
/* Estilos do Lightbox (Álbum Interativo)          */
/* =============================================== */
.lightbox {
    position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; pointer-events: none; 
    transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    border-radius: 5px; 
    transition: transform 0.3s ease; 
    transform: scale(0.8);
}
.lightbox.active .lightbox-content { transform: scale(1); }
.close-button {
    position: absolute; top: 20px; right: 35px; color: #fff;
    font-size: 40px; font-weight: bold; cursor: pointer;
    transition: color 0.3s ease;
}
.close-button:hover { color: var(--accent-color); }
.prev-button, .next-button {
    cursor: pointer; position: absolute; top: 50%;
    transform: translateY(-50%); width: auto; padding: 16px;
    color: white; font-weight: bold; font-size: 24px;
    transition: background-color 0.3s ease; 
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.prev-button { left: 10px; border-radius: 3px 0 0 3px; }
.next-button { right: 10px; }
.prev-button:hover, .next-button:hover { background-color: rgba(255, 255, 255, 0.2); }

/* =============================================== */
/* Seções Finais e Responsividade                  */
/* =============================================== */
.message { text-align: center; font-style: italic; font-size: 1.2rem; }
footer { 
    text-align: center; padding: 20px; 
    background-color: var(--secondary-color); 
    color: var(--text-color); margin-top: 0; 
}

@media (min-width: 768px) {
    body { background-attachment: fixed; }
    h1 { font-size: 3.5rem; }
    .gallery-grid { 
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
        gap: 15px; 
    }
}

/* ============================================================= */
/* AJUSTE DE NITIDEZ PARA A SEÇÃO DE VÍDEOS                      */
/* ============================================================= */
main section.video-section {
    backdrop-filter: blur(1px);
    background-color: rgba(10, 10, 20, 0.8);
}

