/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --highlight: #ff3333;
}

body {
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh; width: 100vw;
    overflow-x: hidden;
    display: flex; justify-content: center; align-items: center; 
}

.screen-content {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%;
}

/* INTRODUÇÃO */
#intro-screen {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 10; transition: opacity 0.8s ease;
}
.content-wrapper { position: relative; z-index: 5; perspective: 1000px; }

/* MODAL */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; }
.modal-content {
    background-color: #1a1a1a; border: 2px solid var(--highlight);
    border-radius: 15px; padding: 30px; text-align: center;
    width: 85%; max-width: 320px;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
    transform: scale(0.5); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.show .modal-content { transform: scale(1); }
.modal-content h3 { color: var(--highlight); margin-top: 0; font-size: 1.4rem; }
.modal-content input { 
    width: 100%; padding: 12px; margin: 15px 0; border-radius: 8px; 
    border: 1px solid #555; background: #333; color: white; 
    text-align: center; outline: none; box-sizing: border-box; 
}
.modal-content button { 
    background-color: var(--highlight); color: white; border: none; 
    padding: 12px 20px; border-radius: 25px; font-weight: bold; 
    cursor: pointer; width: 100%; font-size: 1rem; 
}
#error-msg { display: none; color: #ff4d4d; margin-top: 15px; font-size: 0.9rem; }

/* CARTA */
.letter-container {
    position: relative; cursor: pointer; text-align: center;
    transition: transform 0.6s; transform-style: preserve-3d;
}
.letter-container.animating { animation: quick-pulse 0.5s ease-in-out forwards; }
.envelope-img { width: 260px; max-width: 80vw; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); display: block; }
.click-me-text { margin-top: 20px; color: var(--highlight); font-weight: 600; animation: bounce 2s infinite; }

/* MEMÓRIAS */
#memories-screen {
    width: 100%; min-height: 100vh;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 1s ease; z-index: 20;
}
#memories-screen.visible { opacity: 1; }
.intro-text { text-align: center; margin-bottom: 20px; }
.intro-text h2 { font-family: 'Parisienne', cursive; color: var(--highlight); font-size: 3.2rem; margin: 0; font-weight: normal; }
.love-letter {
    font-family: 'Poppins', sans-serif; font-size: 0.95rem; line-height: 1.7;        
    color: #e0e0e0; text-align: justify;     
    width: 85%; max-width: 600px; margin: 20px auto 50px auto; 
    background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 15px;     
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.swipe-hint { font-size: 0.9rem; color: var(--highlight); margin-bottom: 20px; opacity: 0.8; animation: bounce 2s infinite; }

/* SWIPER */
.swiper { width: 280px; height: 400px; margin-bottom: 20px; }
.swiper-slide { display: flex; align-items: center; justify-content: center; background-color: transparent; }
.polaroid { 
    background: white; padding: 15px 15px 50px 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: rotate(-2deg); 
    width: 100%; height: 100%; box-sizing: border-box; 
    display: flex; flex-direction: column; align-items: center; 
}
.polaroid img { width: 100%; height: 260px; object-fit: cover; border: 1px solid #eee; background: #eee; }
.caption { font-family: 'Parisienne', cursive; color: #222; font-size: 1.3rem; margin-top: 15px; text-align: center; line-height: 1.2; }

#continue-btn-container { display: none; opacity: 0; transition: opacity 1s; margin-top: 10px; }
.continue-btn {
    background-color: var(--highlight); color: white; border: none; padding: 12px 30px; 
    border-radius: 30px; font-size: 1.1rem; font-weight: bold; cursor: pointer; 
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4); animation: bounce 2s infinite;
}

/* --- TELA 3: PLAYER DE MÚSICA COM SCROLL --- */
#music-screen {
    width: 100%; height: 100vh;
    display: none; position: fixed; top: 0; left: 0;
    z-index: 30; background: #111; overflow: hidden;
}
#music-screen.visible { opacity: 1; }

.music-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.bg-blur { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(0.6); transform: scale(1.2); }

/* CONTAINER DE ROLAGEM */
.scroll-container {
    position: relative; z-index: 5; width: 100%; height: 100%;
    overflow-y: auto; scroll-behavior: smooth;
}

/* PARTE 1: O PLAYER */
.player-view {
    min-height: 95vh; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 0; box-sizing: border-box;
}

.music-header { text-align: center; margin-bottom: 20px; }
.music-subtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }

.album-container {
    width: 85%; max-width: 350px; aspect-ratio: 1/1; 
    margin: 10px 0 30px 0; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); overflow: hidden;
}
.main-cover { width: 100%; height: 100%; object-fit: cover; }

/* Texto Andando */
.track-info-full {
    display: flex; justify-content: space-between; align-items: center;
    width: 85%; max-width: 350px; margin-bottom: 20px; overflow: hidden;
}
.info-text { text-align: left; flex: 1; min-width: 0; margin-right: 15px; overflow: hidden; }
.info-text h3 {
    font-size: 1.5rem; color: white; margin: 0; font-weight: 700;
    font-family: 'Poppins', sans-serif; white-space: nowrap; display: inline-block;
    animation: marquee 10s linear infinite;
}
.info-text p {
    font-size: 1.1rem; color: rgba(255, 255, 255, 0.7); margin: 5px 0 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.like-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); flex-shrink: 0; }

@keyframes marquee {
    0% { transform: translateX(0%); } 20% { transform: translateX(0%); } 100% { transform: translateX(-100%); }
}

.progress-container.full-width { width: 85%; max-width: 350px; margin-bottom: 20px; }
#seek-slider {
    -webkit-appearance: none; width: 100%; height: 5px;
    background: rgba(255, 255, 255, 0.2); border-radius: 5px; outline: none; cursor: pointer;
}
#seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 15px; height: 15px;
    background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.time-info { display: flex; justify-content: space-between; color: #b3b3b3; font-size: 0.75rem; margin-top: 8px; font-weight: 500; }

.controls.full-controls {
    display: flex; justify-content: space-between; align-items: center;
    width: 80%; max-width: 300px; margin-bottom: 30px;
}
.play-btn-large {
    width: 75px; height: 75px; border-radius: 50%; background: white; border: none;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.play-btn-large:active { transform: scale(0.9); }
.control-btn.medium { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.control-btn.medium svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }

.scroll-hint { 
    text-align: center; color: white; opacity: 0.8; 
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    font-size: 0.9rem; font-weight: 600; margin-top: 10px; animation: bounce 2s infinite;
}

/* PARTE 2: CARD SOBRE O CASAL */
.about-section {
    width: 100%; display: flex; justify-content: center;
    padding-top: 20px; padding-bottom: 20px;
}
.spotify-about-card {
    background-color: #1e1e1e; width: 85%; max-width: 350px;
    border-radius: 15px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; align-items: flex-start;
}
.card-header { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 15px; }
.card-image-container { width: 100%; height: 250px; border-radius: 10px; overflow: hidden; margin-bottom: 15px; }
.couple-photo { width: 100%; height: 100%; object-fit: cover; }
.card-info { margin-bottom: 20px; width: 100%; }
.couple-names { font-size: 1.5rem; font-weight: 700; color: white; margin: 0; font-family: 'Poppins', sans-serif; }
.since-date { font-size: 0.9rem; color: #b3b3b3; margin: 5px 0 0 0; }

.timer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: 100%; }
.time-box {
    display: flex; flex-direction: column; align-items: flex-start; 
    background: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 8px;
}
.time-value { font-size: 1.2rem; font-weight: 700; color: white; }
.time-label { font-size: 0.7rem; color: #b3b3b3; text-transform: capitalize; }

/* PARTE 3: CARD MENSAGEM (AZUL) */
.lyrics-section { width: 100%; display: flex; justify-content: center; padding-bottom: 20px; }
.lyrics-card {
    background-color: #A0C3D2; /* Azul */
    width: 85%; max-width: 350px; border-radius: 15px; padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: #1a1a1a;
}
.lyrics-header { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; opacity: 0.7; margin-bottom: 15px; }
.lyrics-preview { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 30px; color: #000; }
.show-lyrics-btn {
    background: white; color: black; border: none; padding: 12px 25px;
    border-radius: 30px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.2s;
}
.show-lyrics-btn:active { transform: scale(0.95); }

/* OVERLAY MENSAGEM */
#lyrics-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #A0C3D2; z-index: 50;
    display: flex; justify-content: center; align-items: flex-start;
    overflow-y: auto; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#lyrics-overlay.active { transform: translateY(0); }
.lyrics-content { width: 85%; max-width: 500px; padding: 60px 20px 100px 20px; color: #000; }
.lyrics-content h2 { font-family: 'Parisienne', cursive; font-size: 2.5rem; margin-bottom: 30px; text-align: center; }
.lyrics-content p { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 500; line-height: 1.6; white-space: pre-line; }
.close-lyrics-btn {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: white; color: black; border: none; width: 60px; height: 60px;
    border-radius: 50%; font-weight: bold; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center;
}

/* ANIMAÇÕES */
.heart-fall { position: fixed; top: -60px; height: auto; animation: fall linear infinite; z-index: 1; pointer-events: none; opacity: 0.9; }
@keyframes fall { to { transform: translateY(110vh) rotate(45deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes quick-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.shake { animation: shake 0.5s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }