/* Custom animations and overrides */
@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080, 0 0 60px #ff0080;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff, 0 0 90px #00ffff;
    transform: scale(1.05);
  }
}

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

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes flickerNeon {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080;
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 5px #00ffff, 0 0 15px #00ffff;
  }
}

@keyframes spotlightSweep {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Neon carnival base styles */
.neon-glow {
  animation: neonPulse 2s ease-in-out infinite;
}

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

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

.parallax-element {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.neon-text {
  animation: flickerNeon 3s ease-in-out infinite;
}

.spotlight-bg {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: spotlightSweep 4s ease-in-out infinite;
}

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

.prose h1 {
  color: #ffd700;
  text-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  animation: flickerNeon 3s ease-in-out infinite;
}

.prose h2 {
  color: #ff0080;
  text-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #8b00ff;
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.prose li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

.prose ul li::marker {
  color: #00ffff;
}

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

.prose table {
  display: block; /* Make table a block element */
  overflow-x: auto; /* Enable horizontal scrolling */
  width: 100%; /* Ensure it doesn't exceed the viewport */
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(139, 0, 255, 0.1);
  border: 2px solid #8b00ff;
  border-radius: 8px;
}

.prose th, .prose td {
  white-space: nowrap; /* Prevent content from wrapping */
}

.prose table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.prose th {
  background: linear-gradient(45deg, #ff0080, #8b00ff);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid #8b00ff;
  color: #e5e7eb;
}

.prose tr:hover {
  background: rgba(0, 255, 255, 0.1);
}

.prose blockquote {
  border-left: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #f3f4f6;
  border-radius: 0 8px 8px 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  margin: 2rem auto;
  display: block;
}

.prose strong {
  color: #ffd700;
  font-weight: 600;
  text-shadow: 0 0 5px #ffd700;
}

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

.prose a {
  color: #00ffff;
  text-decoration: underline;
  text-decoration-color: #00ffff;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #39ff14;
  text-shadow: 0 0 8px #39ff14;
  text-decoration-color: #39ff14;
}

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

  .prose h1 {
    font-size: 2rem;
  }

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

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

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

  .prose th,
  .prose td {
    padding: 0.75rem;
  }
}

/* Custom neon button styles */
.btn-neon {
  background: linear-gradient(45deg, #ff0080, #8b00ff);
  border: 2px solid #00ffff;
  color: white;
  text-shadow: 0 0 10px #ffffff;
  transition: all 0.3s ease;
}

.btn-neon:hover {
  background: linear-gradient(45deg, #00ffff, #39ff14);
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
  transform: translateY(-2px);
}

/* Grid overlay effect */
.cyber-grid {
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

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

/* 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;
  background: linear-gradient(135deg, #1a0033, #000011, #330066);
  min-height: 100vh;
}

/* Payment method icons */
.payment-icon {
  width: 40px;
  height: 28px;
  background: #2d1b69;
  border: 1px solid #00ffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ffff;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-5px);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #8b00ff;
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #00ffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}
