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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes treasure-bounce {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(-5deg);
  }
  75% {
    transform: scale(1.05) rotate(5deg);
  }
}

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

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

@keyframes tilt {
  0%,
  100% {
    transform: perspective(1000px) rotateY(0deg);
  }
  50% {
    transform: perspective(1000px) rotateY(10deg);
  }
}

/* Custom Utility Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.animate-treasure-bounce {
  animation: treasure-bounce 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

/* Adventure Theme Patterns */
.treasure-map-bg {
  background-color: #1a1a1a;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(34, 197, 94, 0.05) 35px,
    rgba(34, 197, 94, 0.05) 70px
  );
}

.compass-pattern {
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(34, 197, 94, 0.1) 30%,
    rgba(34, 197, 94, 0.1) 32%,
    transparent 32%
  );
  background-size: 60px 60px;
}

/* Prose Styling */
.prose {
  color: #d1d5db;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #22c55e;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}

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

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

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

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

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

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

.prose a:hover {
  color: #16a34a;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th {
  background: #374151;
  color: #22c55e;
  padding: 0.75em;
  text-align: left;
  font-weight: 600;
}

.prose td {
  border: 1px solid #374151;
  padding: 0.75em;
}

.prose tr:nth-child(even) {
  background: #1f2937;
}

/* Treasure Hunt Theme Elements */
.treasure-chest {
  position: relative;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  border: 3px solid #92400e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.gem-shine {
  position: relative;
  overflow: hidden;
}

.gem-shine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(34, 197, 94, 0.3) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

/* Mobile Menu - Simple */
#mobile-menu.open {
  display: block;
}

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

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* Game Cards Hover Effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jackpot {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
}

.badge-high-rtp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #052e16;
}

.badge-bonus-buy {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

/* Floating Elements */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

/* Provider Cloud */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.provider-tag {
  padding: 0.5rem 1rem;
  background: rgba(55, 65, 81, 0.8);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  color: #d1d5db;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.provider-tag:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
  transform: translateY(-2px);
}
