/* Animations and Keyframes */
@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

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

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

.parallax-text {
  animation: parallax 3s ease-in-out infinite alternate;
}

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

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

.marquee-content {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

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

.game-card {
  flex-shrink: 0;
  width: 280px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: rgba(220, 38, 38, 0.6);
  transform: translateY(-5px);
}

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

.table-responsive table {
  min-width: 600px;
  width: 100%;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #94A3B8;
  max-width: 100%;
  line-height: 1.6;
}

.prose h2 {
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 2px solid #DC2626;
  padding-bottom: 0.5em;
}

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

.prose h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.7;
  color: #CBD5E1;
}

.prose a {
  color: #DC2626;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #EF4444;
}

.prose strong {
  color: #ffffff;
  font-weight: 700;
}

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

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

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

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

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: #CBD5E1;
}

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

.prose blockquote {
  border-left: 4px solid #DC2626;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #94A3B8;
  background: rgba(91, 33, 182, 0.1);
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  border-radius: 0.25rem;
}

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

.prose thead {
  background: rgba(220, 38, 38, 0.8);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid #DC2626;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
}

.prose tbody tr:hover {
  background: rgba(91, 33, 182, 0.1);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.prose code {
  background: rgba(91, 33, 182, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #F1F5F9;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

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

.prose hr {
  border: none;
  border-top: 2px solid rgba(220, 38, 38, 0.3);
  margin-top: 2em;
  margin-bottom: 2em;
}

/* 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.8125rem;
  }

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #5B21B6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #DC2626;
}
