/* Jackpot Nova Theme - Cosmic Casino Animations & Overrides */

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

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

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

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

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

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes neon-flicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  55% {
    opacity: 0.9;
  }
  60% {
    opacity: 1;
  }
}

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

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

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

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

.animate-shimmer {
  animation: shimmer 3s linear infinite;
}

.animate-twinkle {
  animation: star-twinkle 2s ease-in-out infinite;
}

.animate-neon-flicker {
  animation: neon-flicker 3s ease-in-out infinite;
}

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

.neon-fuchsia {
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6), 0 0 30px rgba(233, 30, 99, 0.4);
}

.neon-border-gold {
  border: 2px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.3);
}

.neon-border-fuchsia {
  border: 2px solid #ff00ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.6), inset 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Cosmic Background Patterns */
.cosmic-bg {
  background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #0f001f 100%);
  position: relative;
}

.cosmic-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent), radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent), radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  opacity: 0.4;
  animation: star-twinkle 4s ease-in-out infinite;
}

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

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
}

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

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

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

/* Glass Morphism */
.glass-card {
  background: rgba(26, 0, 51, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px 0 rgba(255, 0, 255, 0.2);
}

/* Gradient Overlays */
.gradient-gold-fuchsia {
  background: linear-gradient(135deg, #ffd700 0%, #ff00ff 100%);
}

.gradient-cosmic {
  background: linear-gradient(135deg, #1a0033 0%, #4a0080 50%, #1a0033 100%);
}

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

.btn-cosmic::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cosmic:hover::before {
  left: 100%;
}

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

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

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

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

.prose h3 {
  color: #ff00ff;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
  line-height: 1.4;
}

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

.prose p {
  margin-bottom: 1.25em;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #e0e0e0;
  line-height: 1.75;
}

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

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

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

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

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

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

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

.prose a {
  color: #ff00ff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 255, 0.5);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #ffd700;
  text-decoration-color: rgba(255, 215, 0, 0.8);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

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

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

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

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

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

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

.prose table tr {
  display: table-row;
}

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

.prose td {
  padding: 0.75em;
  border: 1px solid rgba(255, 0, 255, 0.2);
  background: rgba(26, 0, 51, 0.4);
  color: #e0e0e0;
}

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

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

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

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

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

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

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

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

/* Responsive Utilities */
@media (max-width: 1024px) {
  .prose h2 {
    font-size: 1.75rem;
  }

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

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}
