/* aa-particles.css - Campaign Particle Effects
 * Part of WrittenExpressions Design System
 * 
 * Dependencies: aa-variables.css
 * 
 * Purpose: Animated particle effects for seasonal campaigns
 * - Falling hearts (Valentine's, romantic occasions)
 * - Falling snowflakes (Winter, Christmas)
 * - Rising confetti (Celebrations, sales)
 * 
 * Used on: Home, Products (when campaign is active)
 */

/* =============================================================================
   PARTICLE CONTAINER
   ============================================================================= */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* =============================================================================
   HEARTS PARTICLE EFFECT
   ============================================================================= */

.particle-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: fall-heart linear infinite; /* Infinite loop - each heart continuously falls */
    pointer-events: none;
}

.particle-heart::before {
    content: "\2764\FE0F"; /* Red heart emoji */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

@keyframes fall-heart {
    0% {
        top: 0%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        transform: translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

/* =============================================================================
   SNOWFLAKES PARTICLE EFFECT
   ============================================================================= */

.particle-snowflake {
    position: absolute;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fall-snowflake linear infinite; /* Infinite loop - each snowflake continuously falls */
    pointer-events: none;
}

.particle-snowflake::before {
    content: "\2744\FE0F"; /* Snowflake emoji */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

@keyframes fall-snowflake {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        top: 110%;
        transform: translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

/* =============================================================================
   CONFETTI PARTICLE EFFECT
   ============================================================================= */

.particle-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: rise-confetti linear infinite; /* Infinite loop - each confetti continuously rises */
    pointer-events: none;
}

@keyframes rise-confetti {
    0% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        transform: translateX(var(--drift)) rotate(720deg);
        opacity: 0;
    }
}

/* =============================================================================
   CLOVERS PARTICLE EFFECT (St. Patrick's Day)
   ============================================================================= */

.particle-clover {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.85;
    animation: fall-clover linear infinite;
    pointer-events: none;
}

.particle-clover::before {
    content: "\1F340"; /* Four-leaf clover emoji 🍀 */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

@keyframes fall-clover {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        top: 110%;
        transform: translateX(var(--drift)) rotate(540deg);
        opacity: 0;
    }
}

/* =============================================================================
   INTENSITY VARIATIONS
   ============================================================================= */

/* Intensity affects particle count only - duration is set inline per particle */
/* This allows for natural speed variation between individual particles */

/* =============================================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .particles-container {
        display: none;
    }
}
