/* Custom Animations and Styles */

/* Mystic Pattern Background */
.mystic-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(147, 51, 234, 0.3) 0%, transparent 50%);
  background-size: 100% 100%;
  animation: mysticFloat 20s ease-in-out infinite;
}

@keyframes mysticFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Glow Pulse Animation */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.8), 0 0 60px rgba(168, 85, 247, 0.5);
  }
}

/* Category Button Styles */
.category-btn {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.category-btn:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

/* Game Card Styles */
.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Feature Card Styles */
.feature-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.3), rgba(109, 40, 217, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.5), rgba(109, 40, 217, 0.5));
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

/* Promo Card Styles */
.promo-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.promo-card:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

/* Provider Tag Styles */
.provider-tag {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: rgb(216, 180, 254);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.provider-tag:hover {
  background: rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.6);
  transform: scale(1.05);
}

/* Review Card Styles */
.review-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.3), rgba(109, 40, 217, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.review-card:hover {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(109, 40, 217, 0.4));
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-3px);
}

/* Tournament Card Styles */
.tournament-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tournament-card:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

/* Prose Styling for Readability */
.prose-custom {
  line-height: 1.75;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom ul,
.prose-custom ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: rgb(216, 180, 254);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: rgb(240, 171, 252);
}

/* Hide Scrollbar */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Details Arrow Animation */
details[open] summary svg {
  transform: rotate(180deg);
}

/* Fade Animation for Withdrawal Demo */
#withdrawalDemo {
  transition: opacity 0.3s ease;
}

/* Parallax Elements */
.parallax {
  will-change: transform;
}
