/* =============================================
   SuperQuantum Play - Custom CSS
   Quantum waves, neon grids, sci-fi interface
   ============================================= */

/* CSS Variables */
:root {
  --quantum-dark: #0a0e17;
  --quantum-deeper: #050810;
  --neon-cyan: #00f0ff;
  --neon-purple: #b347ff;
  --neon-pink: #ff2d92;
  --neon-green: #39ff14;
  --grid-color: rgba(0, 240, 255, 0.08);
  --text-light: #e8f0ff;
  --text-muted: #8b9cc7;
  --glass-bg: rgba(10, 14, 23, 0.85);
  --glass-border: rgba(0, 240, 255, 0.2);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--quantum-dark);
  color: var(--text-light);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Quantum Grid Background */
.quantum-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 4rem 4rem;
  animation: gridPulse 8s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes neonGlow {
  0%, 100% { 
    box-shadow: 0 0 0.5rem var(--neon-cyan), 
                0 0 1rem var(--neon-cyan),
                inset 0 0 0.5rem rgba(0, 240, 255, 0.1);
  }
  50% { 
    box-shadow: 0 0 1rem var(--neon-cyan), 
                0 0 2rem var(--neon-cyan),
                0 0 3rem var(--neon-purple),
                inset 0 0 1rem rgba(0, 240, 255, 0.2);
  }
}

@keyframes quantumFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-1rem) rotate(1deg); }
  66% { transform: translateY(0.5rem) rotate(-1deg); }
}

@keyframes waveFlow {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-2%) scaleY(1.05); }
  100% { transform: translateX(0) scaleY(1); }
}

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

@keyframes textGlitch {
  0%, 100% { 
    text-shadow: 0.05rem 0 var(--neon-pink), -0.05rem 0 var(--neon-cyan);
  }
  25% { 
    text-shadow: -0.05rem 0 var(--neon-pink), 0.05rem 0 var(--neon-cyan);
  }
  50% { 
    text-shadow: 0.1rem 0 var(--neon-pink), -0.1rem 0 var(--neon-cyan);
  }
  75% { 
    text-shadow: 0 0.05rem var(--neon-pink), 0 -0.05rem var(--neon-cyan);
  }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes parallaxSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5rem); }
}

@keyframes parallaxMedium {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5rem); }
}

/* Parallax Elements */
.parallax-slow {
  animation: parallaxSlow 12s ease-in-out infinite;
}

.parallax-medium {
  animation: parallaxMedium 8s ease-in-out infinite;
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

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

/* Neon Button Styles */
.btn-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(179, 71, 255, 0.1));
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: neonGlow 3s ease-in-out infinite;
}

.btn-neon:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--quantum-dark);
  transform: translateY(-0.25rem);
}

.btn-neon-secondary {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  animation: none;
  box-shadow: 0 0 0.5rem rgba(179, 71, 255, 0.3);
}

.btn-neon-secondary:hover {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: var(--neon-purple);
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Navigation Styles */
.nav-quantum {
  background: rgba(5, 8, 16, 0.95);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  background: var(--quantum-deeper);
  border-top: 1px solid var(--glass-border);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.7) 0%,
    rgba(10, 14, 23, 0.85) 50%,
    var(--quantum-dark) 100%
  );
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text-light), var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlitch 5s ease-in-out infinite;
}

/* Bonus Badge */
.bonus-badge {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(179, 71, 255, 0.15));
  border: 2px solid var(--neon-cyan);
  animation: neonGlow 4s ease-in-out infinite;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  border: 1px solid var(--neon-purple);
  opacity: 0.5;
  animation: pulseRing 2s ease-out infinite;
}

/* Quantum Wave Decoration */
.quantum-wave {
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2rem,
    rgba(0, 240, 255, 0.03) 2rem,
    rgba(0, 240, 255, 0.03) 4rem
  );
  animation: waveFlow 15s ease-in-out infinite;
}

/* Game Cards */
.game-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 1rem 3rem rgba(0, 240, 255, 0.2);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

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

/* Step Badges */
.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--quantum-dark);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

/* Tables */
.quantum-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: separate;
  border-spacing: 0;
}

.quantum-table th,
.quantum-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.quantum-table th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quantum-table tr:hover td {
  background: rgba(0, 240, 255, 0.05);
}

/* Provider Cloud */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: scale(1.05);
}

/* Promo Cards */
.promo-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.9), rgba(20, 28, 46, 0.9));
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
}

.promo-card:hover {
  border-color: var(--neon-purple);
  transform: translateX(0.5rem);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
  background: var(--glass-bg);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--neon-cyan);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--neon-cyan);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.footer-quantum {
  background: var(--quantum-deeper);
  border-top: 1px solid var(--glass-border);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-cyan);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  font-weight: 900;
  font-size: 1rem;
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
}

.section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), transparent);
}

/* Utility Classes */
.text-neon-cyan { color: var(--neon-cyan); }
.text-neon-purple { color: var(--neon-purple); }
.text-neon-pink { color: var(--neon-pink); }
.text-muted { color: var(--text-muted); }

.bg-quantum-dark { background-color: var(--quantum-dark); }
.bg-quantum-deeper { background-color: var(--quantum-deeper); }

.border-neon { border-color: var(--neon-cyan); }

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* SVG Decorations */
.svg-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--quantum-deeper);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* =============================================
   PROSE STYLING - Markdown Content
   ============================================= */

.prose {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose > * + * {
  margin-top: 1.5em;
}

/* Prose Headings */
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-light);
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--glass-border);
  background: linear-gradient(90deg, var(--text-light), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--neon-cyan);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Prose Paragraphs */
.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25em;
}

.prose strong {
  color: var(--text-light);
  font-weight: 600;
}

.prose em {
  color: var(--neon-cyan);
  font-style: italic;
}

/* Prose Links */
.prose a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--neon-purple);
  border-bottom-color: var(--neon-purple);
}

/* Prose Lists */
.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  color: var(--text-muted);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.prose ol {
  list-style: none;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  color: var(--text-muted);
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  font-size: 0.875em;
  font-weight: 700;
  color: var(--quantum-dark);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 50%;
}

/* Prose Tables */
.prose .table-responsive {
  margin: 2em 0;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
}

.prose table th,
.prose table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.prose table th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.prose table td {
  color: var(--text-muted);
}

.prose table tbody tr:hover td {
  background: rgba(0, 240, 255, 0.05);
  color: var(--text-light);
}

.prose table tbody tr:last-child td {
  border-bottom: none;
}

/* Prose Blockquotes */
.prose blockquote {
  position: relative;
  padding: 1.5em 2em;
  margin: 2em 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(179, 71, 255, 0.05));
  border-left: 4px solid var(--neon-cyan);
  font-style: italic;
  color: var(--text-light);
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--neon-cyan);
  opacity: 0.3;
  line-height: 1;
}

.prose blockquote p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Prose Code */
.prose code {
  padding: 0.2em 0.4em;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 0.25rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.875em;
  color: var(--neon-cyan);
}

.prose pre {
  padding: 1.5em;
  margin: 2em 0;
  background: var(--quantum-deeper);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
}

/* Prose Horizontal Rule */
.prose hr {
  margin: 3em 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

/* Content Container */
.content-container {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .content-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .content-container {
    padding: 0 2rem;
  }
}

/* Review Blocks */
.review-block {
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  height: 100%;
}

.review-block h3 {
  color: var(--neon-cyan);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

/* Disclaimer Styles */
.disclaimer {
  padding: 1rem;
  background: rgba(255, 45, 146, 0.1);
  border: 1px solid rgba(255, 45, 146, 0.3);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Fade In Animation Classes */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Focus States for Accessibility */
.btn-neon:focus,
.nav-link:focus,
.faq-question:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

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