/* ========================================
   Neon Pulse Theme - Custom Styles
   ======================================== */

/* Particle Canvas */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 25rem;
}

#burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

#burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

/* Neon Text Effects */
.neon-text {
  text-shadow: 0 0 0.5rem rgba(6, 255, 165, 0.8),
               0 0 1rem rgba(6, 255, 165, 0.6),
               0 0 2rem rgba(6, 255, 165, 0.4);
  animation: neonPulse 2s ease-in-out infinite;
}

.neon-text-hero {
  text-shadow: 0 0 0.75rem rgba(6, 255, 165, 0.9),
               0 0 1.5rem rgba(6, 255, 165, 0.7),
               0 0 3rem rgba(6, 255, 165, 0.5),
               0 0 4rem rgba(131, 56, 236, 0.3);
  animation: neonPulseHero 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 0 0.5rem rgba(6, 255, 165, 0.8),
                 0 0 1rem rgba(6, 255, 165, 0.6),
                 0 0 2rem rgba(6, 255, 165, 0.4);
  }
  50% {
    text-shadow: 0 0 0.75rem rgba(6, 255, 165, 1),
                 0 0 1.5rem rgba(6, 255, 165, 0.8),
                 0 0 3rem rgba(6, 255, 165, 0.6);
  }
}

@keyframes neonPulseHero {
  0%, 100% {
    text-shadow: 0 0 0.75rem rgba(6, 255, 165, 0.9),
                 0 0 1.5rem rgba(6, 255, 165, 0.7),
                 0 0 3rem rgba(6, 255, 165, 0.5),
                 0 0 4rem rgba(131, 56, 236, 0.3);
  }
  50% {
    text-shadow: 0 0 1rem rgba(6, 255, 165, 1),
                 0 0 2rem rgba(6, 255, 165, 0.9),
                 0 0 4rem rgba(6, 255, 165, 0.7),
                 0 0 6rem rgba(131, 56, 236, 0.5);
  }
}

/* Shadow Effects */
.shadow-neon {
  box-shadow: 0 0 1rem rgba(6, 255, 165, 0.3);
}

.shadow-neon-strong {
  box-shadow: 0 0 1.5rem rgba(6, 255, 165, 0.5),
              0 0 3rem rgba(131, 56, 236, 0.3);
}

.hover\:shadow-neon:hover {
  box-shadow: 0 0 1rem rgba(6, 255, 165, 0.5),
              0 0 2rem rgba(6, 255, 165, 0.3);
}

/* Button Styles */
.btn-neon {
  background: linear-gradient(135deg, #06ffa5 0%, #3a86ff 100%);
  color: #0a0a0a;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 1rem rgba(6, 255, 165, 0.4);
}

.btn-neon:hover {
  box-shadow: 0 0 1.5rem rgba(6, 255, 165, 0.7),
              0 0 3rem rgba(6, 255, 165, 0.5);
  transform: translateY(-0.125rem);
}

.btn-primary {
  background: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 1rem rgba(255, 0, 110, 0.5);
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  box-shadow: 0 0 1.5rem rgba(255, 0, 110, 0.8),
              0 0 3rem rgba(255, 0, 110, 0.6);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  background: transparent;
  color: #06ffa5;
  border: 0.125rem solid #06ffa5;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(6, 255, 165, 0.1);
  box-shadow: 0 0 1rem rgba(6, 255, 165, 0.5);
  transform: translateY(-0.125rem);
}

/* Bonus Badge Animation */
.bonus-badge {
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

/* Game Card Hover Effect */
.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

/* Step Badge Glow */
.step-badge {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0.5rem rgba(6, 255, 165, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 1.5rem rgba(6, 255, 165, 0.8));
  }
}

/* Parallax Section */
.parallax-section {
  position: relative;
}

.parallax-section img {
  transition: transform 0.1s ease-out;
}

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

.table-responsive table {
  min-width: 37.5rem;
}

/* Provider Tag Hover */
.provider-tag {
  transition: all 0.3s ease;
}

.provider-tag:hover {
  transform: translateY(-0.25rem);
}

/* Promo Card */
.promo-card {
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.5rem);
}

/* FAQ Item Hover */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateX(0.5rem);
}

/* Nav Link Hover Effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(90deg, #06ffa5, #3a86ff);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Review Block */
.review-block {
  transition: all 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 0 2rem rgba(6, 255, 165, 0.2);
}

/* ========================================
   Prose Styling for Markdown Content
   ======================================== */

.prose {
  color: #e5e7eb;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #06ffa5;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 0.5rem rgba(6, 255, 165, 0.4);
}

.prose h3 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: #8338ec;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  color: #ff006e;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

/* Paragraphs */
.prose p {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.7;
  margin-bottom: 1.5em;
  color: #d1d5db;
}

/* Links */
.prose a {
  color: #3a86ff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #06ffa5;
  text-shadow: 0 0 0.5rem rgba(6, 255, 165, 0.5);
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  color: #d1d5db;
}

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

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

.prose li {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.7;
  margin-bottom: 0.75em;
}

.prose li::marker {
  color: #06ffa5;
}

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

/* Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  border: 0.0625rem solid #374151;
  border-radius: 0.5rem;
}

.prose thead {
  background-color: #1f2937;
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: #06ffa5;
  border-bottom: 0.125rem solid #374151;
}

.prose td {
  padding: 0.75rem 1rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: #d1d5db;
  border-bottom: 0.0625rem solid #374151;
}

.prose tbody tr:hover {
  background-color: #1f2937;
}

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

/* Blockquotes */
.prose blockquote {
  margin-top: 2em;
  margin-bottom: 2em;
  padding-left: 1.5em;
  border-left: 0.25rem solid #06ffa5;
  font-style: italic;
  color: #9ca3af;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

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

/* Strong & Emphasis */
.prose strong {
  font-weight: 700;
  color: #f3f4f6;
}

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

/* Code */
.prose code {
  background-color: #1f2937;
  color: #06ffa5;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 0.0625rem solid #374151;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 0.125rem solid #374151;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 0.0625rem solid #374151;
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    margin-top: 1.5em;
  }
  
  .prose h3 {
    margin-top: 1.25em;
  }
  
  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

/* Ensure readability - no dark text on dark bg */
.prose * {
  color: inherit;
}

.prose p,
.prose li,
.prose td {
  color: #d1d5db;
}

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

/* Accessibility improvements */
*:focus-visible {
  outline: 0.125rem solid #06ffa5;
  outline-offset: 0.125rem;
}
