/* Custom animations and overrides */
@keyframes spin-legend {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

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

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

/* Legend's Wheel theme colors and effects */
.legend-wheel-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #1e3a8a 100%);
  position: relative;
}

.legend-wheel-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.sapphire-gold-gradient {
  background: linear-gradient(135deg, #1e40af, #fbbf24, #1e40af);
  background-size: 200% 200%;
  animation: spin-legend 8s ease-in-out infinite;
}

.mythic-glow {
  animation: glow-pulse 3s ease-in-out infinite;
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.rune-text {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: 700;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

.tilt-hover:hover {
  animation: tilt-shake 0.5s ease-in-out;
}

/* Prose styling for readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e2e8f0;
  font-size: 1.1rem;
}

.prose h2 {
  color: #fbbf24;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #60a5fa;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(96, 165, 250, 0.3);
}

.prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #fbbf24;
}

.prose ol li::marker {
  color: #fbbf24;
  font-weight: 600;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(30, 58, 138, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0.5rem;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: rgba(255, 215, 0, 0.1);
}

.prose table th {
  color: #fbbf24;
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  vertical-align: top;
}

.prose table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(30, 58, 138, 0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.prose em {
  color: #60a5fa;
}

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

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

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

  .prose table {
    font-size: 0.9rem;
  }

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

/* Mobile navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 3px solid #fff;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* Game card hover effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Payment method table styling */
.payment-table {
  background: rgba(30, 58, 138, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.payment-table td,
.payment-table th {
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding: 0.75rem;
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

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

body {
  overflow: auto;
}
