/* ============================================
   NEON BULLION CUSTOM STYLES
   Keyframes, Animations & Prose Overrides
   ============================================ */

/* === KEYFRAME ANIMATIONS === */

@keyframes neon-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00d9ff;
  }
  50% {
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff, 0 0 20px #00d9ff;
  }
}

@keyframes gold-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow-border {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(255, 184, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 60px rgba(255, 184, 0, 0.5);
  }
}

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

/* === UTILITY CLASSES === */

.neon-text-cyan {
  color: #00ffff;
  animation: neon-pulse 2s ease-in-out infinite;
}

.neon-text-gold {
  color: #ffb800;
  text-shadow: 0 0 10px #ffb800, 0 0 20px #ffa500, 0 0 30px #ffa500;
}

.gold-gradient {
  background: linear-gradient(135deg, #ffb800 0%, #ffa500 50%, #ffd700 100%);
  background-size: 200% 200%;
  animation: gold-shimmer 3s linear infinite;
}

.glow-border-animated {
  animation: glow-border 2s ease-in-out infinite;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

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

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.spin-decoration {
  animation: spin-slow 20s linear infinite;
}

.scatter-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffb800 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: scatter-burst 1.5s ease-out infinite;
}

/* === TABLE RESPONSIVE WRAPPER === */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

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

/* === PROSE STYLING FOR READABILITY === */

.prose {
  color: #e5e5e5;
  line-height: 1.75;
  max-width: 100%;
  width: 100%;
}

.prose p {
  margin-bottom: 1.25em;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h2 {
  color: #ffb800;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}

.prose h3 {
  color: #00ffff;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

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

.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 1.75em;
}

.prose li {
  margin-bottom: 0.75em;
  line-height: 1.7;
  color: #e5e5e5;
}

.prose ul li::marker {
  color: #00ffff;
}

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

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

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

.prose a {
  color: #00ffff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
  word-wrap: break-word;
}

.prose a:hover {
  color: #ffb800;
  text-decoration-color: rgba(255, 184, 0, 0.5);
  text-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}

/* Enhanced table styling with responsive behavior */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose thead {
  display: table-header-group;
}

.prose tbody {
  display: table-row-group;
}

.prose th {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #ffb800;
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 255, 0.2);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 26, 26, 0.5);
  color: #e5e5e5;
}

.prose tr:hover td {
  background: rgba(0, 255, 255, 0.05);
}

.prose blockquote {
  border-left: 0.25em solid #00ffff;
  padding-left: 1.25em;
  margin: 1.5em 0;
  font-style: italic;
  color: #b8b8b8;
  background: rgba(0, 255, 255, 0.03);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.prose code {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  word-wrap: break-word;
}

.prose pre {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* Image styling for markdown content */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.2);
}

.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, #ffb800, transparent);
  margin: 2.5em 0;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }

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

  .prose table {
    font-size: 0.8125rem;
  }

  .prose th,
  .prose td {
    padding: 0.625em 0.75em;
  }
}

/* === CUSTOM SCROLLBAR === */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffb800 0%, #00ffff 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffa500 0%, #00d9ff 100%);
}

/* === SMOOTH SCROLL === */

html {
  scroll-behavior: smooth;
}

/* === NEON BORDER UTILITIES === */

.neon-border-cyan {
  border: 2px solid #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.neon-border-gold {
  border: 2px solid #ffb800;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.5), inset 0 0 10px rgba(255, 184, 0, 0.2);
}

/* === BACKDROP BLUR UTILITIES === */

.backdrop-blur-neon {
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.85);
}

/* === BUTTON HOVER EFFECTS === */

.btn-neon-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.btn-neon-hover:hover::before {
  width: 300px;
  height: 300px;
}

/* === GAME CARD EFFECTS === */

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 184, 0, 0.2);
}
