/* Custom animations and overrides */

/* Parallax Animation */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}

/* Marquee Animation */
.marquee-container {
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

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

/* Floating Elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
  animation-delay: 2s;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 50, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 50, 153, 0.8);
  }
}

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

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 50, 153, 0.1);
}

.game-card:hover {
  border-color: rgba(255, 50, 153, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Prose Styling for Readability */

.prose {
  color: #e5e7eb;
  line-height: 1.6;
  background: rgba(36, 34, 45, 0.95);
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18), 0 1.5px 6px 0 rgba(255,50,153,0.08);
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ff3299;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.1;
}

.prose h2 {
  font-size: 1.875em;
  line-height: 1.2;
}

.prose h3 {
  font-size: 1.5em;
  line-height: 1.3;
}

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

.prose li {
  margin: 0.5em 0;
}

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

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

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

.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose th {
  background-color: rgba(255, 50, 153, 0.1);
  font-weight: 600;
  color: #ff3299;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }

  .game-card {
    margin-bottom: 1rem;
  }

  .prose {
    font-size: 16px;
  }

  .prose h1 {
    font-size: 1.875em;
  }

  .prose h2 {
    font-size: 1.5em;
  }
}

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

::-webkit-scrollbar-track {
  background: #24222d;
}

::-webkit-scrollbar-thumb {
  background: #ff3299;
  border-radius: 4px;
}

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

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

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth Transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
