/* Instagram section layout */
#instagram { display: none; }
#instagram #instagramEmbed { max-width: 900px; margin: 0 auto; }
.instagram-media { width: 100% !important; max-width: 900px !important; margin: 0 auto !important; }

/* Lightbox already exists; ensure images/videos in mural clickable */
#livroContainer img { cursor: pointer; }
#livroContainer video { cursor: pointer; }

/* Rodapé FTQuinze */
#rodapeFTQ {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0,0,0,0.5);
    color: #e6b8af; /* será atualizado por JS conforme esquema */
    text-align: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}
#rodapeFTQ a { color: inherit; text-decoration: underline; }
/* Estilos gerais */
body {
    font-family: 'Playfair Display', serif;
    color: #f5f5f5;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Faz a imagem cobrir toda a tela */
    background-attachment: fixed;
}

/* Vídeo de fundo */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.8;
    display: none;
}

/* Cabeçalho */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
    box-sizing: border-box;
    overflow-x: hidden;
    background: none;
}

/* Container interno do header */
.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navegação */
nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

nav ul li {
    margin: 0 15px;
    width: auto;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}

nav ul li a {
    color: #f0d9ff;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

/* Slideshow */
.slideshow {
    width: 85%;
    max-width: 1400px;
    height: 600px;
    margin: 100px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: none;
    transition: opacity 1.5s ease-in-out, transform 0.2s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.slideshow img.active {
    opacity: 1;
}

/* Seções */
section {
    padding: 80px 20px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Google Maps */
#evento iframe,
#evento .map {
    width: 85%;
    max-width: 1400px;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

/* Títulos */
h1.debutante {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #e6b8af;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
}

h2 {
    font-size: 36px;
    color: #e6b8af;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Contador regressivo */
.contador {
    font-size: 48px;
    font-weight: bold;
    padding: 30px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#timer {
    font-size: 60px;
    color: #e6b8af;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Seção de presentes */
#listaPresentes {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#listaPresentes li {
    width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#listaPresentes li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

#listaPresentes li img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#listaPresentes li p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Botão de presente */
.botao-presente {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e6b8af;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.botao-presente:hover {
    background-color: #d4a39a;
}

/* Galeria de Fotos */
#galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#galeria img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    margin: 5px;
    border-radius: 10px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#galeria img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Seção RSVP */
#rsvp form {
    margin-top: 20px;
}

#rsvp label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #ddd;
}

#rsvp input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
}

/* Seção Trilha Sonora */
#trilhaSonora {
    margin-top: 20px;
}

#trilhaSonora audio {
    display: none;
}

#trilhaSonora select {
    padding: 5px;
    margin-left: 10px;
    border-radius: 5px;
}

/* Livro de Visitas */
#livro {
    text-align: left;
}

#livroForm {
    margin-bottom: 20px;
}

#livroForm label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #ddd;
}

#livroForm input[type="text"],
#livroForm textarea,
#livroForm input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

#livroForm textarea {
    height: 120px;
    resize: vertical;
}

#livroContainer .mensagem {
    padding: 12px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 14px;
}

#livroContainer .mensagem img,
#livroContainer .mensagem video {
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#livroContainer .mensagem strong {
    color: #e6b8af;
    margin-right: 5px;
}

/* Quiz */
#quiz {
    margin-top: 20px;
}

#quizContainer {
    margin: 10px 0;
}

#quiz button {
    margin: 0 10px;
}

/* Botões gerais */
button {
    padding: 10px 20px;
    background-color: #e6b8af;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d4a39a;
}

.botao-presente.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Animações de rolagem */
.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox.active {
    display: flex;
}

#lightbox img,
#lightbox video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    h1.debutante {
        font-size: 48px;
    }

    h2 {
        font-size: 28px;
    }

    .slideshow {
        margin-top: 160px;
        height: 400px;
        width: 90%;
    }

    section {
        padding: 60px 15px;
        margin: 30px auto;
        width: 90%;
    }

    #evento iframe,
    #evento .map {
        width: 90%;
        height: 300px;
    }

    #listaPresentes li {
        width: 45%;
    }

    #galeria img {
        width: 150px;
        height: 150px;
    }

    #timer {
        font-size: 48px;
    }

    .contador {
        font-size: 36px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-items: center;
        align-items: center;
        padding: 5px 0;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 16px;
        padding: 5px 10px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    h1.debutante {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .slideshow {
        margin-top: 140px;
        height: 300px;
        width: 95%;
    }

    section {
        padding: 40px 10px;
        margin: 20px auto;
        width: 95%;
    }

    #evento iframe,
    #evento .map {
        width: 95%;
        height: 250px;
    }

    #listaPresentes li {
        width: 100%;
    }

    #galeria img {
        width: 120px;
        height: 120px;
    }

    #timer {
        font-size: 36px;
    }

    .contador {
        font-size: 24px;
    }

    nav ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px 0;
    }

    nav ul li {
        margin: 4px 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* Estilos para RSVP */
.rsvp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rsvp-options {
    text-align: center;
    margin-bottom: 30px;
}

.rsvp-type-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.rsvp-type-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    background: rgba(255, 182, 193, 0.1);
    color: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.rsvp-type-btn:hover {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 182, 193, 0.8);
}

.rsvp-type-btn.active {
    background: rgba(255, 182, 193, 0.4);
    border-color: #ffb6c1;
    font-weight: bold;
}

.rsvp-form {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.rsvp-form.active {
    display: block;
}

.rsvp-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #f5f5f5;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f5f5f5;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group select {
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
}

.form-group select option {
    background: rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffb6c1;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.6);
}

.pessoas-container {
    margin: 25px 0;
}

.pessoas-container h4 {
    color: #f5f5f5;
    margin-bottom: 15px;
    text-align: center;
}

.pessoa-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.pessoa-item input,
.pessoa-item select {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
}

.pessoa-item select {
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
}

.pessoa-item select option {
    background: rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    padding: 10px;
}

.remover-pessoa {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remover-pessoa:hover {
    background: #ff5252;
}

.btn-adicionar {
    width: 100%;
    padding: 12px;
    background: rgba(255, 182, 193, 0.3);
    color: #f5f5f5;
    border: 2px dashed rgba(255, 182, 193, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-adicionar:hover {
    background: rgba(255, 182, 193, 0.5);
    border-color: rgba(255, 182, 193, 0.8);
}

.rsvp-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.rsvp-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    body {
        background-size: cover; /* Faz a imagem cobrir toda a tela */
        background-position: center;
        background-attachment: scroll; /* Melhor performance em mobile */
    }
    
    .rsvp-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pessoa-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .pessoa-item input,
    .pessoa-item select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover; /* Faz a imagem cobrir toda a tela */
        background-position: center;
        background-attachment: scroll; /* Melhor performance em mobile */
    }
    
    .rsvp-container {
        padding: 10px;
    }
    
    .rsvp-form {
        padding: 20px;
    }
}