/* Glory Pulse Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 191, 0, 0.4), 0 0 40px rgba(255, 191, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.6), 0 0 60px rgba(255, 191, 0, 0.3);
  }
}

@keyframes spin-reel {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes golden-trail {
  0% {
    transform: translateX(-100%) scaleX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) scaleX(1);
    opacity: 0;
  }
}

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

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

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

@keyframes energy-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.8;
  }
}

/* Utility Classes */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.spin-reel {
  animation: spin-reel 3s linear infinite;
  transform-style: preserve-3d;
}

.golden-trail {
  position: relative;
  overflow: hidden;
}

.golden-trail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: golden-trail 3s ease-in-out infinite;
}

.scatter-burst {
  animation: scatter-burst 1.5s ease-out infinite;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

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

.energy-ring {
  animation: energy-ring 2s ease-in-out infinite;
}

/* Gradient Overlays */
.gradient-amber-sapphire {
  background: linear-gradient(135deg, #1e3a8a 0%, #0c1e47 50%, #92400e 100%);
}

.gradient-glow {
  background: radial-gradient(circle at center, rgba(255, 191, 0, 0.15) 0%, transparent 70%);
}

/* Glass Morphism */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Text */
.neon-text {
  text-shadow: 0 0 10px rgba(255, 191, 0, 0.8), 0 0 20px rgba(255, 191, 0, 0.6), 0 0 30px rgba(255, 191, 0, 0.4);
}

.neon-text-blue {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
}

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

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

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

/* Enhanced Prose Styling for Markdown Content with Relative Units */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 100%;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
}

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

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

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

.prose p {
  margin-bottom: 1.5em;
  font-size: 1em;
  line-height: 1.75;
}

.prose p:first-of-type {
  font-size: 1.0625em;
  line-height: 1.8;
}

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

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
}

.prose li::marker {
  color: #fbbf24;
}

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #93c5fd;
  text-decoration-color: rgba(147, 197, 253, 0.8);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375em;
  background: rgba(12, 30, 71, 0.4);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: rgba(255, 191, 0, 0.15);
}

.prose th {
  color: #ffd700;
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 191, 0, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

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

.prose blockquote {
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(255, 191, 0, 0.05);
  padding: 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

.prose code {
  background: rgba(255, 191, 0, 0.1);
  color: #fcd34d;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background: rgba(12, 30, 71, 0.6);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(255, 191, 0, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(255, 191, 0, 0.2);
  margin: 2.5em 0;
}

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

  .prose table {
    font-size: 0.875em;
  }

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

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

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

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

/* Mobile Menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Bonus Badge Styling */
.bonus-badge {
  position: relative;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 191, 0, 0.3);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

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

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

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

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