/* Custom CSS for Monoplay Casino Hugo Theme */
/* Neon Flux Theme - Futuristic Casino Design */

/* Root Variables */
:root {
  --neon-magenta: #ff00ff;
  --neon-cyan: #00ffff;
  --neon-purple: #8b00ff;
  --glass-black: #0a0a0a;
  --glass-dark: #1a1a1a;
}

/* Global Styles */
html {
  overflow: auto;
}

body {
  overflow: auto;
  background: linear-gradient(135deg, var(--glass-black) 0%, #0d0d0d 50%, var(--glass-black) 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* Neon Glow Effects */
.neon-glow {
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.2), 0 0 60px rgba(255, 0, 255, 0.1);
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.2), 0 0 60px rgba(255, 0, 255, 0.1);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.3), 0 0 90px rgba(255, 0, 255, 0.2);
  }
}

/* Pulse Animation for CTA Buttons */
.pulse-animation {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

/* Parallax Effect for Hero Section */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Game Card Hover Effects */
.game-card {
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.game-card:hover::before {
  left: 100%;
}

/* Floating Animation for Icons */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

/* Tilt Effect for Cards */
.tilt-card {
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Marquee Animation for Provider Names */
.marquee {
  animation: marquee 20s linear infinite;
}

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

/* Neon Border Animation */
.neon-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--glass-dark), var(--glass-dark)) padding-box,
    linear-gradient(45deg, var(--neon-magenta), var(--neon-cyan)) border-box;
}

.neon-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon-magenta), var(--neon-cyan));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neon-border:hover::before {
  opacity: 1;
}

/* Glitch Effect for Special Text */
.glitch {
  position: relative;
  color: white;
  font-weight: bold;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--neon-magenta);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--neon-cyan);
  z-index: -2;
}

@keyframes glitch-1 {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  15%,
  49% {
    transform: translate(-2px, -1px);
  }
}

@keyframes glitch-2 {
  0%,
  20%,
  21%,
  62%,
  63%,
  99%,
  100% {
    transform: translate(0);
  }
  21%,
  62% {
    transform: translate(2px, 1px);
  }
}

/* Particle Effect Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: particle-float 10s infinite linear;
  opacity: 0.6;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(100px);
    opacity: 0;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  .text-balance {
    text-wrap: balance;
  }

  .text-pretty {
    text-wrap: pretty;
  }
}

/* Prose Styling for Content Pages */
.prose {
  color: #e5e7eb;
  line-height: 1.6;
}

.prose h2 {
  color: var(--neon-cyan);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: white;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--neon-magenta);
}

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

.prose li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose blockquote {
  border-left: 4px solid var(--neon-cyan);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(0, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
}

.prose code {
  background: var(--glass-dark);
  color: var(--neon-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: var(--glass-dark);
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--glass-dark);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.prose th {
  background: rgba(0, 255, 255, 0.1);
  color: var(--neon-cyan);
  font-weight: 600;
}

.prose td {
  color: #d1d5db;
}

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

::-webkit-scrollbar-track {
  background: var(--glass-black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-magenta), var(--neon-cyan));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--neon-cyan), var(--neon-magenta));
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 255, 255, 0.2);
  border-top: 4px solid var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
  .mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* High Performance Animations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .neon-glow,
  .pulse-animation,
  .float-animation {
    animation: none !important;
    box-shadow: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
