/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 25%, #fd79a8 50%, #e17055 75%, #00b894 100%);
    color: #fff;
    user-select: none;
}

/* LOADER ROMÂNTICO */
.romantic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.romantic-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.heart-loader {
    font-size: 40px;
    color: #ff6b6b;
    animation: heartPulse 1.5s infinite;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
}

.heart-loader.heart2 {
    animation-delay: 0.3s;
}

.heart-loader.heart3 {
    animation-delay: 0.6s;
}

.loader-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.loader-bar {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e, #ffb3b3);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.loader-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    font-style: italic;
}

/* Container Principal */
.container {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Slides - ESTILO REELS */
.slide {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Slide de Introdução */
.slide-intro {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%);
    text-align: center;
}

.slide-intro .content {
    z-index: 2;
    position: relative;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: #fff;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.date {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

/* Slides de Fotos - ESTILO REELS COMPLETO */
.slide-photo {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 25%, #fd79a8 50%, #e17055 75%, #dda0dd 100%);
    padding: 0;
    position: relative;
}

.slide-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 182, 193, 0.3) 0%, 
        rgba(255, 105, 180, 0.2) 25%, 
        rgba(255, 20, 147, 0.3) 50%, 
        rgba(199, 21, 133, 0.2) 75%, 
        rgba(255, 192, 203, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(1.1) contrast(1.05);
}

.photo-container:hover img {
    transform: scale(1.02);
    filter: saturate(1.2) contrast(1.1) brightness(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 60px 30px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* FONTE ESTILO CARTÃO DE CASAMENTO */
.wedding-font {
    font-family: 'Great Vibes', cursive !important;
}

.photo-caption {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: #fff;
    margin-bottom: 1rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.photo-date {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: #ffd700;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: 'Poppins', sans-serif;
}

/* Slide Contador */
.slide-counter {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    text-align: center;
    color: #333;
}

.slide-counter .content {
    z-index: 2;
    position: relative;
}

.counter-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.time-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.time-unit {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
}

.time-unit .number {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #ff6b6b;
    line-height: 1;
}

.time-unit .label {
    font-size: clamp(0.8rem, 3vw, 1rem);
    color: #333;
    font-weight: 500;
    margin-top: 0.5rem;
}

.love-message {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: #333;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
}

/* Corações */
.hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hearts i {
    color: #ff6b6b;
    font-size: clamp(1.5rem, 4vw, 2rem);
    animation: heartbeat 2s ease-in-out infinite;
}

.hearts i:nth-child(2) {
    animation-delay: 0.5s;
}

.hearts i:nth-child(3) {
    animation-delay: 1s;
}

/* SISTEMA DE CORAÇÕES FLUTUANTES EM PRIMEIRO PLANO */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 28px;
    animation: floatUp 10s infinite linear;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.floating-heart.pink {
    color: #ff69b4;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.floating-heart.red {
    color: #ff1744;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.8);
}

.floating-heart.white {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.floating-heart.rose {
    color: #ff6b9d;
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.8);
}

/* Partículas originais */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particles::before,
.particles::after {
    content: '♥';
    position: absolute;
    color: rgba(255,255,255,0.4);
    font-size: 24px;
    animation: float 8s ease-in-out infinite;
}

.particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 4s;
}

/* Indicadores de Progresso */
.progress-indicators {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 5px;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.indicator.active {
    background: #ff6b6b;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.indicator.counter-indicator.active {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Controles de Áudio */
.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.audio-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.audio-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.audio-btn.playing {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

/* Navegação */
.navigation {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão Voltar ao Início */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255,107,107,0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: scale(0);
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.back-to-top:hover {
    background: rgba(255,107,107,1);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .progress-indicators {
        right: 8px;
        gap: 4px;
        padding: 8px 3px;
    }
    
    .indicator {
        width: 5px;
        height: 5px;
    }
    
    .navigation {
        left: 10px;
        gap: 8px;
    }
    
    .nav-btn,
    .audio-btn,
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .audio-controls {
        top: 15px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .time-counter {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .photo-overlay {
        padding: 50px 20px 30px;
    }
    
    .floating-heart {
        font-size: 22px;
    }
    
    .loader-bar {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .time-counter {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-unit {
        padding: 0.8rem;
    }
    
    .floating-heart {
        font-size: 18px;
    }
    
    .photo-overlay {
        padding: 40px 15px 25px;
    }
    
    .loader-bar {
        width: 200px;
    }
    
    .loader-hearts {
        gap: 15px;
    }
    
    .heart-loader {
        font-size: 30px;
    }
} 