/* Serpent Glow Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes serpentGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.5), 0 0 60px rgba(234, 179, 8, 0.3);
  }
}

@keyframes scaleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

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

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.4), 0 0 80px rgba(234, 179, 8, 0.2);
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(5px);
  }
  75% {
    transform: translateY(15px) translateX(-5px);
  }
}

/* Utility Classes */
.serpent-glow {
  animation: serpentGlow 3s ease-in-out infinite;
}

.scale-float {
  animation: scaleFloat 4s ease-in-out infinite;
}

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

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

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

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

/* Serpent Scale Pattern */
.serpent-scales {
  background-image: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px;
}

/* Neon Border Effect */
.neon-border {
  position: relative;
  border: 2px solid rgba(16, 185, 129, 0.5);
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #10b981, #eab308, #10b981);
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
  opacity: 0.3;
  z-index: -1;
  border-radius: inherit;
}

/* Obsidian Gradient */
.obsidian-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.obsidian-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Gold Shimmer Text */
.gold-shimmer {
  background: linear-gradient(90deg, #eab308 0%, #fbbf24 50%, #eab308 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Emerald Glow Button */
.emerald-glow-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.emerald-glow-btn:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.7);
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(234, 179, 8, 0.2) 100%);
  border: 2px solid rgba(16, 185, 129, 0.5);
  backdrop-filter: blur(10px);
}

/* Step Number Badge */
.step-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Game Card Hover Effect */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

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

.faq-question:hover {
  color: #10b981;
}

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

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

/* Payment Icon Styling */
.payment-icon {
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.payment-icon:hover {
  filter: grayscale(0%) brightness(1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.95);
}

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

/* Enhanced Prose Styling for Markdown Content Readability */
.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.75;
  font-size: 1rem;
}

.prose h2 {
  color: #10b981;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: #34d399;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1.6em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #6ee7b7;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
}

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

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

.prose a {
  color: #10b981;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  font-weight: 500;
}

.prose a:hover {
  color: #34d399;
  text-decoration-color: rgba(52, 211, 153, 0.6);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  color: #d1d5db;
}

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

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

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

.prose li::marker {
  color: #10b981;
}

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

.prose blockquote {
  font-style: italic;
  color: #9ca3af;
  border-left: 0.25rem solid #10b981;
  padding-left: 1em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  background: rgba(16, 185, 129, 0.05);
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  border-radius: 0 0.375rem 0.375rem 0;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.prose figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose figcaption {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.75em;
  text-align: center;
  font-style: italic;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  border-bottom: 2px solid rgba(16, 185, 129, 0.4);
}

.prose th {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #d1d5db;
  background: rgba(10, 10, 10, 0.5);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  transition: background-color 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(16, 185, 129, 0.05);
}

.prose tbody tr:hover {
  background: rgba(16, 185, 129, 0.1);
}

.prose code {
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.prose pre {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

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

.prose hr {
  border: none;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }

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

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

  .prose h4 {
    font-size: 1.125rem;
  }

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

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

@media (min-width: 1024px) {
  .prose {
    font-size: 1.0625rem;
  }

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

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