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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(77, 161, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(77, 161, 255, 0.8);
  }
}

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

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes tilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

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

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

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

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

.animate-bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

/* Gradient & Pattern Backgrounds */
.gradient-gaming {
  background: linear-gradient(135deg, #4da1ff 0%, #3d7fc7 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #4da1ff 0%, #667eea 50%, #764ba2 100%);
}

.pattern-dots {
  background-color: #4da1ff;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-color: #4da1ff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Lootbox Card Effect */
.lootbox-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lootbox-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.lootbox-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Indie Game Buttons */
.indie-btn {
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.indie-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

.indie-btn-primary {
  background: #c93f39;
  color: white;
}

.indie-btn-primary:hover {
  background: #a73530;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

/* Game Badge */
.game-badge {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Prose Styling */
.prose {
  max-width: 65ch;
  color: #1f2937;
  line-height: 1.75;
}

.prose h1 {
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.8em;
  color: #111827;
}

.prose h2 {
  font-size: 1.875em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #111827;
}

.prose h3 {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  color: #1f2937;
}

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

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

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

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

.prose a {
  color: #4da1ff;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #3d7fc7;
}

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

.prose th {
  background-color: #f3f4f6;
  padding: 0.75em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.prose td {
  padding: 0.75em;
  border-bottom: 1px solid #e5e7eb;
}

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

/* Sticky CTA Banner */
.sticky-cta-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .sticky-cta-banner {
    bottom: auto;
    top: 100px;
    left: auto;
    right: 20px;
    transform: none;
  }
}

/* Glowing Effects */
.glow-blue {
  box-shadow: 0 0 20px rgba(77, 161, 255, 0.6);
}

.glow-red {
  box-shadow: 0 0 20px rgba(201, 63, 57, 0.6);
}

/* Carousel Wrapper */
.carousel-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #4da1ff #e5e7eb;
}

.carousel-wrapper::-webkit-scrollbar {
  height: 8px;
}

.carousel-wrapper::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 4px;
}

.carousel-wrapper::-webkit-scrollbar-thumb {
  background: #4da1ff;
  border-radius: 4px;
}

.carousel-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Payment Method Logos */
.payment-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.payment-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Review Card */
.review-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
