/**
 * Holiday Animations CSS
 * Fun Easter eggs for key dates and holidays
 */

/* Container for all holiday animations */
.holiday-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* ============================================
   VALENTINE'S DAY - FLOWING HEARTS
   ============================================ */
.holiday-heart {
    position: absolute;
    bottom: -50px;
    font-size: 30px;
    animation: floatUpHeart 10s ease-in-out forwards;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.6));
}

@keyframes floatUpHeart {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift, 0)) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   NEW YEAR - CONFETTI
   ============================================ */
.holiday-confetti {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    animation: confettiFall 4s linear forwards;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) rotate(720deg);
        opacity: 0.5;
    }
}

/* ============================================
   HALLOWEEN - SPOOKY ELEMENTS
   ============================================ */
.holiday-halloween-element {
    position: absolute;
    bottom: -50px;
    font-size: 35px;
    animation: floatUpSpooky 15s ease-in-out forwards;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
}

@keyframes floatUpSpooky {
    0% {
        transform: translateY(0) translateX(-20px) rotate(-10deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60vh) translateX(20px) rotate(10deg);
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(-20px) rotate(-10deg);
        opacity: 0;
    }
}

/* ============================================
   CHRISTMAS - SNOWFLAKES
   ============================================ */
.holiday-snowflake {
    position: absolute;
    top: -50px;
    font-size: 25px;
    animation: snowFall 12s linear forwards;
    opacity: 0.8;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes snowFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) translateX(var(--drift, 0)) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   JULY 4TH - FIREWORKS
   ============================================ */
.holiday-firework {
    position: absolute;
    font-size: 40px;
    animation: fireworkBurst 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fireworkBurst {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        filter: brightness(2) drop-shadow(0 0 20px currentColor);
    }
    100% {
        transform: scale(3);
        opacity: 0;
        filter: brightness(1) drop-shadow(0 0 10px currentColor);
    }
}

/* ============================================
   ST. PATRICK'S DAY - SHAMROCKS
   ============================================ */
.holiday-shamrock {
    position: absolute;
    bottom: -50px;
    font-size: 30px;
    animation: floatUpShamrock 12s ease-in-out forwards;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.5));
}

@keyframes floatUpShamrock {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(-60vh) translateX(var(--drift, 0)) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift, 0)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.holiday-heart,
.holiday-confetti,
.holiday-halloween-element,
.holiday-snowflake,
.holiday-firework,
.holiday-shamrock {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   REDUCED MOTION ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .holiday-animation-container {
        display: none;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .holiday-heart,
    .holiday-halloween-element,
    .holiday-snowflake,
    .holiday-shamrock {
        font-size: 20px !important;
    }
    
    .holiday-firework {
        font-size: 25px !important;
    }
    
    /* Reduce particle count on mobile by hiding some */
    .holiday-heart:nth-child(n+8),
    .holiday-snowflake:nth-child(n+10),
    .holiday-confetti:nth-child(n+25) {
        display: none;
    }
}
