/* ==========================================
   VALENTINE'S DAY THEME
   Custom CSS for Organizr v2
   ========================================== */

/* ==========================================
   FLOATING HEARTS ANIMATION
   ========================================== */
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translateY(-5vh) translateX(0) rotate(2deg) scale(1);
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift)) rotate(var(--rotation)) scale(0.8);
        opacity: 0;
    }
}

/* ==========================================
   HEART BURST ANIMATION (on click)
   ========================================== */
@keyframes heartBurst {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: 
            translate(
                calc(cos(var(--angle)) * var(--distance)),
                calc(sin(var(--angle)) * var(--distance))
            ) 
            rotate(720deg) 
            scale(0);
        opacity: 0;
    }
}

/* ==========================================
   TOGGLE BUTTON
   ========================================== */
#valentines-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1744 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(255, 23, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10001;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#valentines-toggle:hover {
    background: linear-gradient(135deg, #FF1744 0%, #C2185B 100%);
    box-shadow: 
        0 6px 20px rgba(255, 23, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#valentines-toggle:active {
    transform: translateY(0) scale(0.95);
}

#valentines-toggle:focus {
    outline: 2px solid #FF4081;
    outline-offset: 2px;
}

/* ==========================================
   VALENTINE'S DAY PAGE ENHANCEMENTS
   ========================================== */

/* Valentine's glow overlay */
#valentines-glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9997;
    background: 
        radial-gradient(
            ellipse 800px 600px at 15% 20%,
            rgba(255, 107, 157, 0.06) 0%,
            rgba(255, 107, 157, 0.03) 30%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 700px 500px at 85% 80%,
            rgba(255, 64, 129, 0.05) 0%,
            rgba(255, 64, 129, 0.02) 30%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 900px 700px at 50% 50%,
            rgba(255, 23, 68, 0.02) 0%,
            transparent 70%
        );
    opacity: 0.8;
}

/* Romantic vignette effect */
#valentines-vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9996;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 50%,
        rgba(255, 107, 157, 0.04) 100%
    );
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

/* Floating particles overlay */
#valentines-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9995;
    background-image: 
        radial-gradient(circle, rgba(255, 107, 157, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 64, 129, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        background-position: 0 0, 40px 40px;
    }
    100% {
        background-position: 50px 50px, 90px 90px;
    }
}

/* Shimmer effect that sweeps across the page */
#valentines-shimmer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 107, 157, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 107, 157, 0.1) 55%,
        transparent 100%
    );
    animation: shimmerSweep 8s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    45% {
        left: 100%;
        opacity: 1;
    }
    50%, 100% {
        left: 100%;
        opacity: 0;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    #valentines-toggle {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    #valentines-toggle,
    .floating-heart,
    #valentines-glow-overlay,
    #valentines-shimmer,
    #valentines-particles {
        animation: none !important;
        transition: none !important;
    }
    
    @keyframes floatUp {
        0% { opacity: 0; }
        10%, 90% { opacity: 1; }
        100% { opacity: 0; }
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    #valentines-toggle,
    #hearts-container,
    .floating-heart,
    #valentines-glow-overlay,
    #valentines-vignette,
    #valentines-particles,
    #valentines-shimmer {
        display: none !important;
    }
}