/* Neon Pulse Animation */
@keyframes neon-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 0 60px rgba(236, 72, 153, 0.5);
  }
}

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

/* Gradient Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Parallax Background */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

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

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

.provider-tag {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  border-color: rgba(236, 72, 153, 0.6);
  transform: translateY(-2px);
}

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

.game-card:hover {
  transform: translateY(-8px);
}

/* Prose Styling for Readability */
.prose-custom {
  line-height: 1.75;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.prose-custom a:hover {
  text-decoration: underline;
}

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

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow,
    transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Details/Summary Styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  margin-bottom: 1rem;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid rgba(6, 182, 212, 0.5);
  outline-offset: 2px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }

  .provider-tag {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Adding comprehensive prose styling for markdown content */
.prose {
  max-width: 100%;
  color: #e2e8f0;
  line-height: 1.75;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #06b6d4;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.prose h2:first-child {
  margin-top: 0;
}

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

.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #cbd5e1;
}

.prose a {
  color: #06b6d4;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.prose a:hover {
  color: #ec4899;
  border-bottom-color: #ec4899;
}

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

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

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

.prose li {
  margin-bottom: 0.75em;
  padding-left: 0.5em;
  color: #cbd5e1;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.prose thead {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(236, 72, 153, 0.2));
  border-bottom: 2px solid rgba(6, 182, 212, 0.5);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #06b6d4;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  color: #cbd5e1;
}

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

.prose tbody tr:hover {
  background-color: rgba(6, 182, 212, 0.05);
}

.prose blockquote {
  margin: 2em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #ec4899;
  background: rgba(236, 72, 153, 0.1);
  font-style: italic;
  color: #e2e8f0;
}

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

.prose code {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
}

/* Responsive table wrapper for prose */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

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

  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.5em;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

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