/* Custom Keyframe Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

/* Apply Animations */
.floating-hero {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-tilt {
  animation: tilt 4s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Plinko-inspired Pattern Background */
body {
  background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Prose Styling for Readability */
.prose {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 2.25em;
}

.prose h2 {
  font-size: 1.875em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #93c5fd;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose code {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin: 1.5em 0;
}

/* Custom Shadow Effects */
.shadow-glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.shadow-glow-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.shadow-glow-yellow {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Pulsating Colors for CTAs */
@keyframes pulsate-colors {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bg-gradient-animated {
  background-size: 200% 200%;
  animation: pulsate-colors 3s ease infinite;
}

/* Mobile Menu Transitions */
#mobile-menu {
  transition: opacity 0.3s ease-in-out;
}

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

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

/* Hover Effects for Game Cards */
.group:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Glass Morphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Parallax Sections */
@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

.parallax-element {
  animation: parallax 2s ease-in-out infinite alternate;
}

/* Custom Button Hover Effects */
button,
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

button::before,
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before,
.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Responsive Font Scaling */
@media (max-width: 768px) {
  .prose {
    font-size: 0.95rem;
  }

  .prose h1 {
    font-size: 1.875rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }
}
