/* Custom animations and overrides */
body,
html {
  overflow: auto;
}

/* Coin fountain animation */
.coin-fountain {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.coin-fountain::before,
.coin-fountain::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  animation: coinFountain 2s infinite ease-out;
}

.coin-fountain::before {
  left: 20px;
  animation-delay: 0s;
}

.coin-fountain::after {
  right: 20px;
  animation-delay: 0.5s;
}

@keyframes coinFountain {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-60px) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120px) scale(0.8);
    opacity: 0;
  }
}

/* Bonus badge pulse animation */
.bonus-badge {
  animation: bonusPulse 3s infinite ease-in-out;
}

@keyframes bonusPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.8);
  }
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Parallax scrolling effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Prose styling for markdown content */
.prose {
  color: #374151;
  max-width: none;
}

.prose h2 {
  color: #1f2937;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.prose p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose thead {
  border-bottom: 1px solid #d1d5db;
}

.prose thead th {
  color: #374151;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75rem;
}

.prose tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.prose tbody td {
  padding: 0.75rem;
  vertical-align: top;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #374151;
  border-left: 0.25rem solid #d1d5db;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.75;
  }

  .prose h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .prose table {
    font-size: 0.75rem;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
}

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s
    ease;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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