/* Global Romantic Styling */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    padding-bottom: 180px; /* Space for fixed music player */
}

/* Main content container */
#main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    padding-bottom: 40px; /* Extra space at bottom */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Floating Hearts Animation */
.heart {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 107, 157, 0.6);
    animation: floatUp 4s ease-in-out infinite;
    pointer-events: none;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-card-locked {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    box-shadow: 0 8px 32px 0 rgba(255, 107, 157, 0.2);
}

/* Navigation Buttons */
.day-nav-btn {
    background: linear-gradient(135deg, #FFE5EC 0%, #FFB3C6 100%);
    color: #C44569;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.day-nav-btn.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    color: white;
    transform: scale(1.05);
}

.day-nav-btn.locked {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.day-nav-btn.locked::before {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    opacity: 0.6;
}

.day-nav-btn.locked:hover {
    background: linear-gradient(135deg, #FFE5EC 0%, #e0e0e0 100%);
    color: #C44569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* Photo Gallery Effects */
.photo-container {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.photo-frame {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05) translateZ(20px);
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.photo-frame.beat-pulse {
    animation: beatSync 0.3s ease-in-out;
}

/* Music Player Styling */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.7);
}

.play-button.playing {
    animation: pulseHeart 1.5s ease-in-out infinite;
}

/* Countdown Timer Styling */
.countdown-display {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 2rem 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: #FF6B9D;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C44569;
    font-weight: 600;
}

/* Lock Icon Animation */
.lock-icon {
    font-size: 4rem;
    color: #FF6B9D;
    animation: pulseHeart 1.5s ease-in-out infinite;
}

/* Proposal Buttons */
.proposal-btn {
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.proposal-btn-yes {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    color: white;
}

.proposal-btn-yes:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.proposal-btn-always {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.proposal-btn-always:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* Rose Petals */
.rose-petal {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(196, 69, 105, 0.4);
}

.rose-petal:hover {
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 10px 25px rgba(196, 69, 105, 0.6);
}

.rose-petal.revealed {
    opacity: 0.3;
    transform: rotate(45deg) scale(0.8);
}

/* Chocolate Box */
.chocolate-piece {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chocolate-piece:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.6);
}

.chocolate-piece.opened {
    opacity: 0.5;
    transform: scale(0.9);
}

/* Teddy Animation */
.teddy-bear {
    font-size: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.teddy-bear:hover {
    transform: scale(1.1) rotate(5deg);
}

.teddy-bear.hugging {
    animation: hug 1s ease-in-out;
}

@keyframes hug {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

/* Promise Book */
.book-page {
    background: linear-gradient(135deg, #FFF5E1 0%, #FFE4B5 100%);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 400px;
    position: relative;
}

.page-flip-btn {
    position: absolute;
    bottom: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #E6E6FA 0%, #D8BFD8 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-flip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(230, 230, 250, 0.5);
}

/* Kiss Mark */
.kiss-mark {
    font-size: 60px;
    color: #FF69B4;
    opacity: 0;
    position: absolute;
    animation: kissFloat 3s ease-out forwards;
}

@keyframes kissFloat {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) rotate(360deg) scale(2);
    }
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-number {
        font-size: 3rem;
    }
    
    .proposal-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .photo-frame {
        padding: 8px;
    }
    
    .music-player {
        bottom: 20px;
        right: 20px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Loading Animation */
.loading-hearts {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.loading-heart {
    animation: pulseHeart 1.5s ease-in-out infinite;
    font-size: 2rem;
}

.loading-heart:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-heart:nth-child(3) {
    animation-delay: 0.4s;
}

/* Success Message */
/* Proposal Section */
#proposal-section {
    position: relative;
    z-index: 10;
    margin-bottom: 40px; /* Space from music player */
}

.success-message {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    animation: fadeIn 1s ease-in forwards;
    position: relative;
    z-index: 10;
    margin-bottom: 40px; /* Space from music player */
}

/* Romantic Message Box */
.romantic-message {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    color: #C44569;
    line-height: 1.6;
    animation: fadeIn 2s ease-in forwards;
}

/* Petals Falling Effect */
.falling-petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #FF6B9D;
    border-radius: 50% 50% 50% 0;
    animation: petalFall 5s ease-in infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.5;
    }
}

/* Interactive Elements Glow */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.8),
                0 0 60px rgba(255, 107, 157, 0.6),
                0 0 90px rgba(255, 107, 157, 0.4);
}

/* ==================== SPOTIFY MUSIC PLAYER ==================== */

/* Player Container */
.spotify-player-container {
    position: fixed;
    bottom: 35px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 20px 20px;
    pointer-events: none;
}

.spotify-player {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.spotify-player:hover {
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
}

/* Now Playing Section */
.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFB3C6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #C44569;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transition: transform 0.3s ease;
}

.album-art:hover {
    transform: scale(1.05) rotate(3deg);
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 16px;
    font-weight: 600;
    color: #C44569;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playback Controls */
.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFB3C6 100%);
    color: #C44569;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, #FFB3C6 0%, #FF8FAB 100%);
}

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

.control-btn.play-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.control-btn.play-btn:hover {
    background: linear-gradient(135deg, #FF8FAB 0%, #FF6B9D 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.6);
    transform: scale(1.15);
}

/* Progress Bar */
.progress-container {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(200, 200, 200, 0.4);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    user-select: none;
}

.progress-bar:hover {
    background: rgba(200, 200, 200, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF1493 0%, #FF6B9D 50%, #C44569 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.6),
                0 0 20px rgba(255, 20, 147, 0.4),
                0 0 30px rgba(255, 20, 147, 0.2);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    border-radius: 0 4px 4px 0;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Responsive Design for Music Player */
@media (max-width: 768px) {
    .spotify-player-container {
        padding: 0 12px 12px;
    }
    
    .spotify-player {
        padding: 12px 16px;
        border-radius: 20px;
    }
    
    .album-art {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .track-name {
        font-size: 14px;
    }
    
    .artist-name {
        font-size: 12px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .control-btn.play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Animation for player appear */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotify-player-container {
    animation: slideUpFade 0.6s ease-out;
}

/* Pulsing animation when playing */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 107, 157, 0.7);
    }
}

.control-btn.play-btn.playing {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Playback Mode Indicator */
.playback-mode {
    text-align: center;
    font-size: 11px;
    color: #FF8FAB;
    padding: 4px 8px;
    background: rgba(255, 143, 171, 0.1);
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.playback-mode i {
    font-size: 10px;
}

/* Photo Gallery Interactive Styles */
.photo-container {
    transition: all 0.3s ease;
}

.photo-container:hover {
    transform: scale(1.05) !important;
    z-index: 10;
    cursor: pointer;
}

.photo-container:hover .photo-frame {
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.5),
                0 0 0 3px rgba(255, 107, 157, 0.3);
}

.photo-container.removing {
    pointer-events: none;
}

/* Sparkle Float Animation */
@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}

/* Proposal Section Animation */
.proposal-section-appear {
    animation: proposalAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes proposalAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Footer Styles */
footer {
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(255, 107, 157, 0.1);
}

footer p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

footer .fa-heart {
    animation: pulseHeart 1.5s ease-in-out infinite;
    display: inline-block;
}
