/* Snowflake Animation */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5em;
  animation: fall linear infinite;
}

.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 10s;
  animation-delay: 0s;
}

.snowflake:nth-child(2) {
  left: 30%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 2em;
}

.snowflake:nth-child(3) {
  left: 50%;
  animation-duration: 14s;
  animation-delay: 4s;
}

.snowflake:nth-child(4) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 1.8em;
}

.snowflake:nth-child(5) {
  left: 90%;
  animation-duration: 13s;
  animation-delay: 3s;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Floating Hero Animation */
.floating-hero {
  animation: float 6s ease-in-out infinite;
}

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

/* Pulsating Glow for CTA */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(252, 38, 91, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(252, 38, 91, 0.8), 0 0 60px rgba(252, 38, 91, 0.4);
  }
}

/* Marquee Animation for Game Providers */
.providers-marquee {
  overflow: hidden;
  position: relative;
}

.providers-marquee .flex {
  display: flex;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

.providers-marquee .flex::after {
  content: attr(data-clone);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Clone for seamless loop */
.providers-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
}

/* Custom Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

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

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  font-weight: bold;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom h1 {
  font-size: 2.25rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
}

.prose-custom h3 {
  font-size: 1.5rem;
}

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

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

.prose-custom a {
  color: #fc265b;
  text-decoration: underline;
}

.prose-custom a:hover {
  color: #ff4d7d;
}

.prose-custom strong {
  font-weight: 700;
  color: #ffffff;
}

.prose-custom code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-custom blockquote {
  border-left: 4px solid #fc265b;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Hover Effects */
@media (hover: hover) {
  .hover\:scale-105:hover {
    transform: scale(1.05);
  }
}

/* Gradient Animations */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

/* Winter Theme Enhancements */
body {
  background-image: radial-gradient(circle at 20% 50%, rgba(45, 66, 99, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(252, 38, 91, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .snowflake {
    font-size: 1em;
  }
}
