/* Lunar Spin Custom Styles */

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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.5);
  }
}

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

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

@keyframes parallax-slow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coin-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

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

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

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

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

.animate-parallax {
  animation: parallax-slow 20s ease-in-out infinite;
}

/* Cosmic Background Effects */
.cosmic-bg {
  position: relative;
  overflow: hidden;
}

.cosmic-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  animation: parallax-slow 25s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Lunar Glow Effect */
.lunar-glow {
  position: relative;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Cosmic Trail */
.cosmic-trail {
  position: relative;
  overflow: hidden;
}

.cosmic-trail::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
  animation: shimmer 2s infinite;
}

/* Star Field Pattern */
.star-field {
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.8), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(6, 182, 212, 0.8), transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(139, 92, 246, 0.6), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
}

/* Prose Styling for Readability */
.prose {
  color: #e2e8f0;
  line-height: 1.75;
  max-width: 100%;
}

/* Enhanced heading styles with proper spacing and glow effects */
.prose h2 {
  color: #f8fafc;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #f1f5f9;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.prose h4 {
  color: #e2e8f0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.5;
}

/* Improved paragraph and text styling for readability */
.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: #cbd5e1;
  line-height: 1.8;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  color: #e2e8f0;
}

/* List styling with proper spacing and bullets */
.prose ul,
.prose ol {
  margin-bottom: 1.75em;
  margin-top: 1em;
  padding-left: 1.75em;
  color: #cbd5e1;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
  line-height: 1.75;
}

.prose li::marker {
  color: #8b5cf6;
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* Enhanced link and emphasis styling */
.prose strong {
  color: #06b6d4;
  font-weight: 600;
}

.prose em {
  color: #a5b4fc;
  font-style: italic;
}

.prose a {
  color: #06b6d4;
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #8b5cf6;
  text-decoration-color: rgba(139, 92, 246, 0.6);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Responsive table styling with proper contrast */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.3) 100%);
}

.prose th {
  background: transparent;
  color: #f8fafc;
  padding: 1em 0.875em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(139, 92, 246, 0.5);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  color: #cbd5e1;
  vertical-align: top;
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.4);
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* Table responsive wrapper with smooth scrolling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* Blockquote styling with lunar theme */
.prose blockquote {
  border-left: 0.25rem solid #8b5cf6;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #a5b4fc;
  background: rgba(139, 92, 246, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Image styling with responsive sizing */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Code and pre styling */
.prose code {
  background: rgba(139, 92, 246, 0.15);
  color: #06b6d4;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(71, 85, 105, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.prose pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
  font-size: 0.875rem;
}

/* Horizontal rule styling */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  margin: 3em 0;
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(109, 40, 217, 0.9) 100%);
  border: 2px solid rgba(6, 182, 212, 0.5);
  position: relative;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: shimmer 3s linear infinite;
}

/* CTA Button Enhancements */
.cta-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.cta-secondary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

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

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.95);
}

/* Numbered Badge */
.numbered-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Payment Icon Styling */
.payment-icon {
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
  transition: filter 0.3s ease;
}

.payment-icon:hover {
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(71, 85, 105, 0.5);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.05);
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}
