/* Shadow Glow Effect */
.shadow-glow {
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3), 0 0 40px rgba(245, 158, 11, 0.2);
}

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

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

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

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

.game-card {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.2);
}

/* Parallax Effect */
.parallax-element {
  transition: transform 0.3s ease-out;
}

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

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

/* Prose Styling for Markdown Content */
.prose {
  color: #374151;
  max-width: 100%;
}

.prose h2 {
  color: #1e40af;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
}

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

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

.prose a {
  color: #1e40af;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #1e3a8a;
}

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

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

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

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

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

.prose li::marker {
  color: #1e40af;
}

.prose blockquote {
  font-style: italic;
  border-left: 4px solid #f59e0b;
  padding-left: 1.5em;
  margin-top: 2em;
  margin-bottom: 2em;
  color: #6b7280;
  background: #eff6ff;
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

.prose thead {
  background: #1e40af;
  color: white;
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid #dbeafe;
  color: #4b5563;
}

.prose tbody tr:nth-child(even) {
  background: #eff6ff;
}

.prose tbody tr:hover {
  background: #dbeafe;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prose code {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: #1e3a8a;
  color: white;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose pre code {
  background: transparent;
  color: white;
  padding: 0;
}

.prose hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.75rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose {
    font-size: 1rem;
  }
}

/* Ensure proper spacing in prose */
.prose > * + * {
  margin-top: 0;
}

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

/* Accessibility improvements */
.prose a:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.prose table {
  overflow-x: auto;
}

/* Ensure readability - no dark on dark or light on light */
.prose-sapphire {
  --tw-prose-body: #4b5563;
  --tw-prose-headings: #1e40af;
  --tw-prose-links: #1e40af;
  --tw-prose-bold: #1f2937;
  --tw-prose-counters: #1e40af;
  --tw-prose-bullets: #1e40af;
  --tw-prose-quotes: #6b7280;
  --tw-prose-code: #1e40af;
}
