/* Custom animations and styling for GoKong Casino */

/* Keyframe animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-20px) rotateY(5deg);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
  }
}

@keyframes tiltHover {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Kong character animation */
.kong-character {
  animation: parallaxFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 20px rgba(147, 51, 234, 0.3));
}

/* Marquee animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

/* 3D card effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  animation: tiltHover 0.3s ease forwards;
}

/* Glowing buttons */
.glow-button {
  animation: pulseGlow 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

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

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

::-webkit-scrollbar-track {
  background: #e5e7eb; /* light gray */
}

::-webkit-scrollbar-thumb {
  background: #c4b5fd; /* lighter purple */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a78bfa; /* even lighter purple */
}

/* Prose styling for content readability */
.prose {
  max-width: none;
}

.prose h2 {
  color: #6366f1; /* indigo-500 */
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

/* Island menu styling */
.island-menu {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85); /* light background */
  border: 1px solid #c4b5fd; /* lighter border */
}

/* Fade in animation for sections */
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .kong-character {
    animation-duration: 4s;
  }
}

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

/* Custom gradient backgrounds */
.gradient-emerald {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%); /* light greens */
}

.gradient-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 50%, #a78bfa 100%); /* light purples */
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.game-card:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Bonus calculator styling */
.calculator-input {
  background: #f3f4f6; /* light gray */
  border: 1px solid #c4b5fd;
  color: #374151; /* gray-700 */
  transition: border-color 0.3s ease;
}

.calculator-input:focus {
  border-color: #9333ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}
