/* Parallax Effect */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

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

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
}

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

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

/* Coin Burst Animation */
.coin-burst {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(185, 28, 28, 0.2) 0%, transparent 60%);
  animation: burst 8s ease-in-out infinite;
}

@keyframes burst {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

/* Metallic Shine Effect */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shine-effect {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shine 3s infinite;
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h1 {
  font-size: 2.25rem;
  color: #ffd700;
}

.prose-custom h2 {
  font-size: 1.875rem;
  color: #f59e0b;
}

.prose-custom h3 {
  font-size: 1.5rem;
  color: #fcd34d;
}

.prose-custom h4 {
  font-size: 1.25rem;
  color: #fcd34d;
}

.prose-custom a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #f59e0b;
}

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

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

.prose-custom strong {
  font-weight: 700;
  color: #ffd700;
}

.prose-custom code {
  background-color: #1f2937;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #fcd34d;
}

.prose-custom blockquote {
  border-left: 4px solid #dc143c;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d1d5db;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(220, 20, 60, 0.3);
  border: 2px solid #dc143c;
}

.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom th,
.prose-custom td {
  padding: 0.75rem;
  border: 1px solid #374151;
  text-align: left;
}

.prose-custom th {
  background-color: #b91c1c;
  color: white;
  font-weight: 700;
}

.prose-custom tr:nth-child(even) {
  background-color: #1f2937;
}

.prose-custom tbody tr:hover {
  background-color: #374151;
  transition: background-color 0.2s ease;
}

/* Responsive Table Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  max-width: 100%;
}

.table-responsive table {
  min-width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #dc143c;
  border-radius: 5px;
}

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

/* Glow Effects */
.glow-crimson {
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spin-animation {
  animation: spin 2s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
  .prose-custom {
    font-size: 1rem;
  }

  .prose-custom h1 {
    font-size: 1.875rem;
  }

  .prose-custom h2 {
    font-size: 1.5rem;
  }

  .prose-custom h3 {
    font-size: 1.25rem;
  }

  .prose-custom img {
    margin: 1.5rem 0;
  }

  .prose-custom th,
  .prose-custom td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}
