/* Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.6);
  }
}

@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50px);
  }
}

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

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

.parallax-bg {
  animation: parallax 20s ease-in-out infinite alternate;
}

/* Burger Menu Animation */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.3);
}

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

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

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

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

.prose h4 {
  color: #c0c0c0;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: rgba(192, 192, 192, 0.9);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose a {
  color: #dc143c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: rgba(192, 192, 192, 0.9);
  line-height: 1.7;
}

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #dc143c;
  padding-left: 1.5em;
  margin-top: 2em;
  margin-bottom: 2em;
  color: rgba(192, 192, 192, 0.85);
  background: rgba(45, 27, 78, 0.3);
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  background: rgba(45, 27, 78, 0.3);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
  overflow-x: auto;
}

.prose thead {
  background: rgba(45, 27, 78, 0.6);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #c0c0c0;
  border-bottom: 2px solid rgba(220, 20, 60, 0.3);
  font-size: 0.9375rem;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
  color: rgba(192, 192, 192, 0.9);
  font-size: 0.9375rem;
}

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

.prose tr:hover {
  background: rgba(45, 27, 78, 0.4);
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.75rem;
  border: 2px solid rgba(220, 20, 60, 0.3);
  max-width: 100%;
  height: auto;
}

.prose code {
  background: rgba(45, 27, 78, 0.5);
  color: #dc143c;
  padding: 0.25em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background: rgba(10, 6, 18, 0.8);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 0.5rem;
  padding: 1.5em;
  margin-top: 2em;
  margin-bottom: 2em;
  overflow-x: auto;
}

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

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

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: #dc143c;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid #dc143c;
  outline-offset: 2px;
}
