/* Halo Rush Theme - Custom Animations & Overrides */

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

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2), 0 0 60px rgba(245, 158, 11, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 60px rgba(245, 158, 11, 0.4), 0 0 90px rgba(245, 158, 11, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes coin-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

@keyframes radiant-slide {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Utility Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(252, 211, 77, 0.3) 50%, transparent 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

/* Golden Glow Effects */
.halo-glow {
  position: relative;
}

.halo-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #f59e0b, #fcd34d, #fef3c7, #fcd34d, #f59e0b);
  background-size: 300% 300%;
  animation: radiant-slide 3s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Radiant Gradient Backgrounds */
.radiant-bg {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  background-size: 200% 200%;
  animation: radiant-slide 8s ease infinite;
}

.golden-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 50%, #fef3c7 100%);
}

.amber-glow {
  background: radial-gradient(circle at center, #fef3c7 0%, #fcd34d 40%, #f59e0b 100%);
}

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

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  will-change: transform;
}

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

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

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

.prose h2 {
  color: #fcd34d;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #fef3c7;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #fef3c7;
  font-weight: 600;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  max-width: 75ch;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  color: #fef3c7;
}

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

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #f59e0b;
}

.prose ol li::marker {
  color: #f59e0b;
  font-weight: 600;
}

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

.prose a {
  color: #fcd34d;
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.125em;
  transition: color 0.2s ease;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
}

.prose th {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.prose td {
  padding: 0.75em 1em;
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #e5e7eb;
}

.prose tr:nth-child(even) {
  background: rgba(245, 158, 11, 0.05);
}

.prose blockquote {
  border-left: 0.25em solid #f59e0b;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.05);
  padding: 1em 1.5em;
  border-radius: 0.25rem;
}

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

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

.table-responsive table {
  margin: 0;
}

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

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

::-webkit-scrollbar-track {
  background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b, #fcd34d);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

/* Coin Burst Effect */
.coin-burst {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fcd34d, #f59e0b);
  border-radius: 50%;
  animation: coin-burst 1.5s ease-out infinite;
  pointer-events: none;
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  backdrop-filter: blur(10px);
  background: rgba(30, 27, 75, 0.95);
}

/* Badge Glow */
.badge-glow {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3), inset 0 0 20px rgba(252, 211, 77, 0.2);
}

/* Game Card Hover Effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }

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

  .prose p {
    font-size: 1rem;
  }
}
