/* ==========================================================================
   BALA GANESH YOUTH - FESTIVE & ATMOSPHERIC ANIMATIONS
   Floating Petals, Temple Diya Glows, and Divine Aura Breathing
   ========================================================================== */

/* Auspicious Traditional Toran Garland Top Accent */
.toran-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #D4AF37 0px,
    #D4AF37 25px,
    #991B1B 25px,
    #991B1B 50px,
    #EA580C 50px,
    #EA580C 75px,
    #059669 75px,
    #059669 100px
  );
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

/* Diya Flame Flicker Animation */
@keyframes flameFlicker {
  0%, 100% {
    transform: scale(1) rotate(-0.5deg);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  }
  25% {
    transform: scale(1.06) rotate(1deg);
    filter: drop-shadow(0 0 12px rgba(234, 88, 12, 0.95));
  }
  50% {
    transform: scale(0.96) rotate(-1deg);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7));
  }
  75% {
    transform: scale(1.04) rotate(0.5deg);
    filter: drop-shadow(0 0 11px rgba(245, 158, 11, 0.9));
  }
}

.animated-diya {
  animation: flameFlicker 2.8s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Divine Aura Breathing Pulse */
@keyframes divineAuraBreath {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
    filter: blur(8px);
  }
  100% {
    transform: scale(1.06);
    opacity: 0.9;
    filter: blur(14px);
  }
}

/* Rotating Decorative Halo Ring */
@keyframes rotateSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating Flower Petals Animation */
.floating-petals-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.marigold-petal-particle {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url('../images/marigold-petal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: petalFall 14s linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(-40px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(80px);
    opacity: 0;
  }
}

/* Gentle Floating Light Particles */
.golden-sparkle-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FDE68A;
  box-shadow: 0 0 8px #F59E0B;
  opacity: 0;
  animation: sparkleRise 10s ease-in-out infinite;
}

@keyframes sparkleRise {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-50px) scale(1.2);
    opacity: 0;
  }
}

/* Gold Shimmer Sweep for Button */
@keyframes goldButtonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-enter-ceremony::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: goldButtonShimmer 3.5s infinite;
}

/* Gentle Temple Bell Sway */
@keyframes bellSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-4deg);
  }
}

.deity-hanging-bell {
  animation: bellSway 4.5s ease-in-out infinite;
  transform-origin: top center;
}

.deity-hanging-bell.deity-bell-right {
  animation-delay: -2.2s;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animated-diya,
  .vinayaka-halo-radiance,
  .vinayaka-halo-ring,
  .marigold-petal-particle,
  .golden-sparkle-particle,
  .deity-hanging-bell,
  .btn-enter-ceremony::before {
    animation: none !important;
  }
}
