/* Animations & Keyframes */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 2rem rgba(212, 175, 55, 0.6);
  }
}

.glow-box {
  animation: glow 3s ease-in-out infinite;
}

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

.game-card {
  animation: float 3s ease-in-out infinite;
}

.game-card:nth-child(2) {
  animation-delay: 0.3s;
}

.game-card:nth-child(3) {
  animation-delay: 0.6s;
}

.game-card:nth-child(4) {
  animation-delay: 0.9s;
}

.game-card:nth-child(5) {
  animation-delay: 1.2s;
}

.game-card:nth-child(6) {
  animation-delay: 1.5s;
}

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

/* Prose Styling */
.prose {
  color: #e5e7eb;
  max-width: 100%;
}

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

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

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

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

.prose a {
  color: #e6c866;
  text-decoration: underline;
  text-decoration-color: rgba(230, 200, 102, 0.3);
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #d4af37;
  text-decoration-color: rgba(212, 175, 55, 0.8);
}

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

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

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

.prose li::marker {
  color: #d4af37;
}

.prose blockquote {
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #e5e7eb;
  background: rgba(212, 175, 55, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.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 {
  background: #1e2f4a;
  border-bottom: 0.125rem solid #d4af37;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #e6c866;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.1);
  color: #d1d5db;
}

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

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 0.125rem solid rgba(212, 175, 55, 0.2);
}

.prose code {
  background: #1e2f4a;
  color: #e6c866;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #152238;
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

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

.prose hr {
  border: none;
  border-top: 0.0625rem solid rgba(212, 175, 55, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Mobile Typography Adjustments */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose p {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Ensure readable contrast */
.prose ::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}
