/* animations.css - Online Adventure Forum */

/* Magical Particles Effect */
.magical-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: rgba(243, 156, 18, 0.6);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: float 5s ease-in-out infinite, glow 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px 2px rgba(243, 156, 18, 0.3);
  }
  50% {
    box-shadow: 0 0 8px 3px rgba(243, 156, 18, 0.5);
  }
}

/* Header Animations */
header h1 {
  animation: magicPulse 3s ease-in-out infinite;
}

@keyframes magicPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.6),
      0 0 30px rgba(243, 156, 18, 0.3);
  }
}

/* Nav Link Hover Animation */
nav a::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-color);
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

nav a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Topic Hover Effects */
.topic::after {
  content: "→";
  position: absolute;
  right: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.topic:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

/* Button Animations */
.button {
  position: relative;
  overflow: hidden;
}

/* Floating Discord Icons */
.sdiscord img {
  animation: float-icon 6s ease-in-out infinite;
}

@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Magical Particle Generator Script */
