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

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

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

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

@keyframes scatter-burst {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

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

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

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

.spin-reel {
  animation: spin-reel 3s linear infinite;
}

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

.golden-trail {
  animation: golden-trail 3s 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 Layers */
.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

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

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

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

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

.prose h2:first-child {
  margin-top: 0;
}

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

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

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

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
  max-width: 100%;
}

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

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

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

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

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

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

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

.prose a {
  color: #1e90ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
  color: #ffd700;
  text-decoration-color: #ffd700;
}

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

.prose table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  overflow-x: auto;
  display: block;
}

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

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

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(30, 144, 255, 0.2);
  color: #e0e0e0;
  vertical-align: top;
}

.prose tbody tr:nth-child(even) {
  background: rgba(15, 82, 186, 0.05);
}

.prose tbody tr:hover {
  background: rgba(15, 82, 186, 0.1);
  transition: background 0.2s ease;
}

.prose blockquote {
  border-left: 4px solid #ff9500;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #d0d0d0;
  background: rgba(255, 149, 0, 0.05);
  padding: 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

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

.prose hr {
  border: none;
  border-top: 2px solid rgba(255, 149, 0, 0.3);
  margin: 3em 0;
}

.prose code {
  background: rgba(30, 144, 255, 0.1);
  color: #1e90ff;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

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

.prose pre code {
  background: none;
  padding: 0;
  color: #e0e0e0;
  font-size: 0.875rem;
}

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

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

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

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

  .prose blockquote {
    padding: 0.75em 1em;
    margin: 1.5em 0;
  }
}

/* Ensure tables are scrollable on mobile */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.prose .table-responsive table {
  display: table;
  margin: 0;
  border: none;
}

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

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

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

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

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

/* Energy Ring Effect */
.energy-ring {
  position: relative;
}

.energy-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #ff9500, #1e90ff, #ffd700, #0f52ba);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-reel 4s linear infinite;
}

/* Glow Text */
.glow-text {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 149, 0, 0.3);
}

/* 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, 215, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

/* Floating Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  animation: float-up 4s ease-in infinite;
}

.particle:nth-child(2) {
  animation-delay: 0.5s;
  background: #ff9500;
}

.particle:nth-child(3) {
  animation-delay: 1s;
  background: #1e90ff;
}

.particle:nth-child(4) {
  animation-delay: 1.5s;
  background: #ffd700;
}

.particle:nth-child(5) {
  animation-delay: 2s;
  background: #ff9500;
}

/* Mobile Menu Overlay */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
  opacity: 0;
}

/* Badge Styles */
.bonus-badge {
  background: linear-gradient(135deg, #ff9500 0%, #ffd700 100%);
  position: relative;
  overflow: hidden;
}

.bonus-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: golden-trail 3s ease-in-out infinite;
}
