/* ==========================================
   DIA DOS NAMORADOS - SCROLL CONTÍNUO V3.2
   CSS LIMPO - SEM ESTILOS DE TOAST DE MÚSICA
   ========================================== */

:root {
    --bg: #0a0a1a;
    --bg-alt: #12122a;
    --pink: #FFB6C1;
    --pink-bold: #FF69B4;
    --pink-dark: #C2185B;
    --gold: #FFD700;
    --white: #FFFAFA;
    --text: #FFFFFF;
    --text-secondary: #E0E0E0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
    --shadow-pink: 0 0 30px rgba(255, 105, 180, 0.3);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ========== BOTÃO MÚSICA FLUTUANTE ========== */
.music-float {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.music-float:active {
    transform: scale(0.9);
}

.music-float.playing {
    background: linear-gradient(135deg, var(--pink-bold), var(--pink-dark));
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(255,105,180,0.4); }
    50% { box-shadow: 0 5px 35px rgba(255,105,180,0.8), 0 0 60px rgba(255,215,0,0.3); }
}

/* ========== LOADING ========== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-heart {
    width: 80px;
    height: 80px;
    animation: heartbeat 0.8s ease-in-out infinite;
}

.loading-text {
    color: var(--pink);
    font-family: var(--font-display);
    margin-top: 20px;
    font-size: 1.1rem;
}

.loading-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 25px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-bold), var(--gold));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-bold), var(--gold));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ========== NAVEGAÇÃO FLUTUANTE ========== */
.nav-floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    padding: 8px 12px;
    border-radius: 30px;
    z-index: 999;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-floating.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.active {
    background: var(--pink-bold);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,105,180,0.4);
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    position: relative;
}

/* ========== SECTIONS ========== */
.section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: var(--shadow-gold);
}

/* ========== REVELAÇÃO POR SCROLL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HERO ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, var(--bg) 100%);
    padding-top: 60px;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-photo-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-gold);
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.3rem;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(255,105,180,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--pink);
    margin-bottom: 40px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    animation: bounce 2s ease-in-out infinite;
}

#heartsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== TIMELINE ========== */
.timeline-section {
    background: var(--bg-alt);
}

.timeline {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--pink-bold), var(--gold), var(--pink-bold));
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item.reveal {
    transition-delay: var(--delay, 0s);
}

.timeline-dot {
    position: absolute;
    left: -31px;
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 2px solid var(--pink-bold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
}

.timeline-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    transition: transform 0.3s;
}

.timeline-card:hover {
    transform: translateY(-3px);
}

.timeline-card-img {
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.timeline-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.timeline-card-img:active img {
    transform: scale(1.05);
}

.timeline-card-body {
    padding: 16px;
}

.timeline-card-body h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.timeline-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--pink);
    font-style: italic;
}

/* ========== GALLERY ========== */
.gallery-section {
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.gallery-item:active {
    transform: scale(0.95);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,105,180,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:active .gallery-overlay {
    opacity: 1;
}

/* ========== LETTER ========== */
.letter-section {
    background: var(--bg-alt);
}

.letter-container {
    max-width: 450px;
    margin: 0 auto;
}

.letter-paper {
    background: linear-gradient(135deg, #252545, #1a1a35);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 25px;
    position: relative;
    min-height: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.letter-seal {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--pink-bold), var(--pink-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(255,105,180,0.4);
}

.letter-content {
    font-family: var(--font-script);
    font-size: 1.2rem;
    line-height: 1.8;
    min-height: 200px;
    white-space: pre-wrap;
    text-align: center;
    margin-top: 10px;
}

.letter-reveal-btn {
    display: block;
    margin: 20px auto 0;
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.letter-reveal-btn:active {
    background: var(--pink-bold);
    color: white;
}

/* ========== COUNTER ========== */
.counter-section {
    background: var(--bg);
}

.counter-milestone {
    text-align: center;
    color: var(--pink);
    font-family: var(--font-script);
    font-size: 1.1rem;
    margin-bottom: 25px;
    min-height: 30px;
}

.counter-widget {
    max-width: 350px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.counter-main {
    margin-bottom: 25px;
}

.counter-days {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: var(--shadow-gold);
    display: block;
    line-height: 1;
}

.counter-days-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.counter-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.counter-item {
    text-align: center;
}

.counter-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink);
    display: block;
}

.counter-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.counter-message {
    text-align: center;
    color: var(--pink);
    font-family: var(--font-script);
    font-size: 1.1rem;
    margin-top: 25px;
}

/* ========== REASONS ========== */
.reasons-section {
    background: var(--bg-alt);
}

.reasons-container {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    min-height: 380px;
}

.reason-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
    pointer-events: none;
}

.reason-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.reason-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid var(--gold);
}

.reason-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.reason-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.reason-card h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.reason-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reasons-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.reason-prev, .reason-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.reason-prev:active, .reason-next:active {
    background: var(--pink-bold);
}

.reason-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== FINALE ========== */
.finale-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a3e, var(--bg));
    text-align: center;
}

#finaleCanvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.finale-content {
    z-index: 2;
    max-width: 350px;
}

.finale-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: var(--shadow-gold);
}

.finale-message {
    font-family: var(--font-script);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.finale-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-finale {
    padding: 14px 25px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.btn-finale.primary {
    background: linear-gradient(135deg, var(--pink-bold), var(--pink-dark));
    color: white;
    box-shadow: var(--shadow-pink);
}

.btn-finale.secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-finale.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--text-secondary);
}

.btn-finale:active {
    transform: scale(0.95);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
}

.lightbox-counter {
    position: absolute;
    top: 25px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ========== TOAST (APENAS COMPARTILHAR) ========== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 3000;
    transition: transform 0.3s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 360px) {
    .hero-title { font-size: 1.9rem; }
    .hero-photo-frame { width: 150px; height: 150px; }
    .counter-days { font-size: 3.5rem; }
    .section { padding: 60px 15px; }
    .nav-btn { width: 30px; height: 30px; font-size: 0.85rem; }
    .timeline-card-img { height: 140px; }
    .reason-img { width: 80px; height: 80px; }
    .music-float { width: 38px; height: 38px; font-size: 1rem; top: 15px; right: 15px; }
}

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); max-width: 600px; }
    .timeline, .letter-container, .counter-widget, .reasons-container { max-width: 500px; }
    .section { padding: 100px 40px; }
}