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

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

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

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

.game-card {
  min-width: 200px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(203, 213, 225, 0.1);
}

/* Parallax Effect */
.parallax-layer {
  animation: parallax 20s ease-in-out infinite;
}

@keyframes parallax {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2rem) scale(1.05);
  }
}

/* Mobile Menu */
.mobile-menu {
  z-index: 40;
  pointer-events: none;
}

.mobile-menu.active {
  display: block;
  pointer-events: all;
}

.mobile-menu-content {
  background: #0f172a;
  height: 100%;
  overflow-y: auto;
}

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

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

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

/* Details/Summary Styling */
details summary {
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

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

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #cbd5e1;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

/* Prose Styling for Markdown Content */
.prose {
  color: #cbd5e1;
  line-height: 1.7;
}

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

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

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

.prose p {
  margin-bottom: 1.25rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.prose a {
  color: #94a3b8;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.3);
  text-underline-offset: 0.25rem;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #cbd5e1;
  text-decoration-color: #cbd5e1;
}

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

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

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

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

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

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

.prose li::marker {
  color: #94a3b8;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 0.5rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: rgba(71, 85, 105, 0.3);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(203, 213, 225, 0.2);
}

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

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

.prose tr:hover {
  background: rgba(71, 85, 105, 0.1);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 0.25rem solid #475569;
  color: #94a3b8;
  font-style: italic;
  background: rgba(71, 85, 105, 0.1);
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  border-radius: 0.25rem;
}

.prose blockquote p {
  margin-bottom: 0;
}

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

.prose code {
  background: rgba(71, 85, 105, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e2e8f0;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

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

.prose hr {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: none;
  border-top: 1px solid rgba(71, 85, 105, 0.3);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

/* Additional Utility Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
details:focus {
  outline: 2px solid #cbd5e1;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .prose {
    color: #000;
  }
  
  .prose h2,
  .prose h3,
  .prose h4 {
    color: #000;
  }
  
  .prose a {
    color: #000;
    text-decoration: underline;
  }
}
