/**
 * Valentine Effects - Frontend Styles
 */

.valentine-effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: var(--valentine-z-index, 9999);
}

.valentine-heart {
    position: absolute;
    opacity: 0.8;
    animation: valentine-fall linear infinite, valentine-sway ease-in-out infinite;
    will-change: transform;
}

.valentine-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 105, 180, 0.8);
    animation: valentine-sparkle-anim 2s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes valentine-fall {
    0% {
        transform: translateY(-100px);
    }
    100% {
        transform: translateY(calc(100vh + 100px));
    }
}

@keyframes valentine-sway {
    0%, 100% {
        margin-left: 0;
    }
    50% {
        margin-left: var(--valentine-sway, 30px);
    }
}

@keyframes valentine-sparkle-anim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .valentine-heart {
        opacity: 0.7;
    }
    
    .valentine-sparkle {
        width: 3px;
        height: 3px;
        box-shadow: 0 0 4px 1px rgba(255, 105, 180, 0.7);
    }
}

/* Tablet optimizations */
@media (min-width: 481px) and (max-width: 768px) {
    .valentine-heart {
        opacity: 0.75;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .valentine-heart,
    .valentine-sparkle {
        animation: none;
        opacity: 0.5;
    }
}
