/* ============================================
   MOONPRISM EFFECTS - Particles, Sparkles, Trails
   ============================================ */

/* ============================================
   PARTICLES CONTAINER
   ============================================ */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 1;
}

/* Heart Particles */
.particle-heart {
    color: #ff75cc;
    font-size: 16px;
    opacity: 0.9;
    animation: particleFall var(--fall-duration, 12s) linear forwards;
}
.particle-heart::before { content: '♥'; }

/* Star Particles */
.particle-star {
    color: #F9A8D4;
    font-size: 14px;
    opacity: 0.9;
    animation: particleFall var(--fall-duration, 10s) linear forwards;
}
.particle-star::before { content: '✦'; }

/* 4-Point Star */
.particle-star4 {
    color: #B0E0E6;
    font-size: 18px;
    opacity: 0.9;
    animation: particleFallSway var(--fall-duration, 14s) linear forwards;
}
.particle-star4::before { content: '✧'; }

/* Snow Particles */
.particle-snow {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
    animation: particleFallSway var(--fall-duration, 15s) linear forwards;
}

/* Sparkle Particles */
.particle-sparkle {
    color: #FFD700;
    font-size: 18px;
    opacity: 0.9;
    animation: particleFallSparkle var(--fall-duration, 8s) linear forwards;
}
.particle-sparkle::before { content: '✨'; }

@keyframes particleFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes particleFallSway {
    0% { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 0; }
    5% { opacity: 1; }
    25% { transform: translateY(25vh) translateX(30px) rotate(90deg); }
    50% { transform: translateY(50vh) translateX(-20px) rotate(180deg); }
    75% { transform: translateY(75vh) translateX(25px) rotate(270deg); }
    95% { opacity: 0.7; }
    100% { transform: translateY(100vh) translateX(0) rotate(360deg); opacity: 0; }
}

@keyframes particleFallSparkle {
    0% { transform: translateY(-20px) scale(0.5); opacity: 0; }
    10% { opacity: 1; transform: translateY(10vh) scale(1); }
    50% { opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { transform: translateY(100vh) scale(0.3); opacity: 0; }
}

/* ============================================
   CURSOR TRAIL
   ============================================ */
.trail-element {
    position: fixed;
    pointer-events: none;
    z-index: 999996;
    animation: trailFade 0.6s ease-out forwards;
}

.trail-sparkle {
    font-size: 18px;
    color: var(--mp-soft-pink);
}

.trail-heart {
    font-size: 14px;
    color: var(--mp-hot-pink);
}
.trail-heart::before { content: '♥'; }

.trail-star {
    font-size: 12px;
    color: var(--mp-icy-blue);
}
.trail-star::before { content: '✦'; }

.trail-dot {
    width: 6px;
    height: 6px;
    background: var(--mp-soft-pink);
    border-radius: 50%;
}

@keyframes trailFade {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(0.3) rotate(180deg) translateY(-20px); }
}

/* ============================================
   SPARKLE ON HOVER
   ============================================ */
.sparkle-burst {
    position: fixed;
    pointer-events: none;
    z-index: 999995;
    font-size: 20px;
    animation: sparkleBurst 0.8s ease-out forwards;
}

@keyframes sparkleBurst {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    30% { opacity: 1; transform: scale(1.2) rotate(90deg); }
    100% { opacity: 0; transform: scale(0) rotate(180deg); }
}

/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-soft { box-shadow: 0 0 30px rgba(255,117,204,0.3); }
.glow-medium { box-shadow: 0 0 40px rgba(255,117,204,0.5); }
.glow-strong { box-shadow: 0 0 60px rgba(255,117,204,0.7), 0 0 100px rgba(249,168,212,0.4); }

.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--mp-soft-pink); }
    50% { box-shadow: 0 0 50px var(--mp-soft-pink), 0 0 80px var(--mp-bubblegum); }
}

.text-glow-pulse { animation: textGlowPulse 2.5s ease-in-out infinite; }
@keyframes textGlowPulse {
    0%, 100% { text-shadow: 0 0 10px var(--mp-soft-pink); }
    50% { text-shadow: 0 0 30px var(--mp-soft-pink), 0 0 50px var(--mp-bubblegum); }
}

/* ============================================
   SHIMMER & SHINE
   ============================================ */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmerMove 3s infinite;
}
@keyframes shimmerMove {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ============================================
   OVERLAY EFFECTS
   ============================================ */
.overlay-reveal {
    position: relative;
    overflow: hidden;
}
.overlay-reveal .overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.overlay-reveal:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MEDIA BACKGROUNDS
   ============================================ */
.bg-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.bg-video-container video,
.bg-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-gif {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Audio indicator */
.audio-bg-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}
.audio-bg-indicator button {
    background: var(--mp-soft-pink);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}
