/* =============================================
   SuperQuantum Play Lite - Custom CSS
   Reduced glow, smoother transitions, accessible futuristic style
   ============================================= */

/* CSS Custom Properties */
:root {
  --sq-primary: #6366f1;
  --sq-primary-light: #818cf8;
  --sq-primary-dark: #4f46e5;
  --sq-accent: #22d3ee;
  --sq-accent-dark: #06b6d4;
  --sq-bg-dark: #0f0f1a;
  --sq-bg-card: #1a1a2e;
  --sq-bg-card-hover: #252542;
  --sq-text-light: #f1f5f9;
  --sq-text-muted: #94a3b8;
  --sq-gold: #fbbf24;
  --sq-gold-dark: #f59e0b;
  --sq-success: #10b981;
  --sq-border: rgba(99, 102, 241, 0.2);
  --sq-glow-subtle: rgba(99, 102, 241, 0.15);
  --sq-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sq-bg-dark);
  color: var(--sq-text-light);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Particle Animation */
@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) translateX(-5px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(-10px) scale(1.05);
    opacity: 0.5;
  }
}

@keyframes particle-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, -100vh) rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--sq-glow-subtle);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
  }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Particle Container */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sq-accent);
  border-radius: 50%;
  animation: particle-drift 15s linear infinite;
  opacity: 0.3;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 23s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; animation-duration: 18s; }

/* Parallax Effect */
.parallax-layer {
  transition: transform var(--sq-transition);
  will-change: transform;
}

.parallax-slow {
  transform: translateY(calc(var(--scroll-y, 0) * 0.1px));
}

.parallax-medium {
  transform: translateY(calc(var(--scroll-y, 0) * 0.2px));
}

.parallax-fast {
  transform: translateY(calc(var(--scroll-y, 0) * 0.3px));
}

/* Navigation Styles */
.nav-sticky {
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 26, 0.95);
  border-bottom: 1px solid var(--sq-border);
  transition: all var(--sq-transition);
}

.nav-link {
  position: relative;
  color: var(--sq-text-muted);
  transition: color var(--sq-transition);
}

.nav-link:hover {
  color: var(--sq-text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sq-primary), var(--sq-accent));
  transition: width var(--sq-transition);
}

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

/* Mobile Menu */
.mobile-menu {
  background: var(--sq-bg-dark);
  border-top: 1px solid var(--sq-border);
}

.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--sq-primary), var(--sq-primary-dark));
  color: var(--sq-text-light);
  border: 1px solid transparent;
  transition: all var(--sq-transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--sq-text-light);
  border: 1px solid var(--sq-primary-light);
  transition: all var(--sq-transition);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--sq-accent);
}

.btn-gold {
  background: linear-gradient(135deg, var(--sq-gold), var(--sq-gold-dark));
  color: var(--sq-bg-dark);
  font-weight: 600;
  transition: all var(--sq-transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* Cards */
.card {
  background: var(--sq-bg-card);
  border: 1px solid var(--sq-border);
  border-radius: 1rem;
  transition: all var(--sq-transition);
}

.card:hover {
  background: var(--sq-bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}

.card-game {
  animation: fade-in-up 0.6s ease-out backwards;
}

.card-game:nth-child(1) { animation-delay: 0.1s; }
.card-game:nth-child(2) { animation-delay: 0.2s; }
.card-game:nth-child(3) { animation-delay: 0.3s; }
.card-game:nth-child(4) { animation-delay: 0.4s; }
.card-game:nth-child(5) { animation-delay: 0.5s; }
.card-game:nth-child(6) { animation-delay: 0.6s; }

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(135deg, var(--sq-bg-card), rgba(99, 102, 241, 0.2));
  border: 2px solid var(--sq-gold);
  animation: pulse-glow 3s ease-in-out infinite;
}

.bonus-amount {
  background: linear-gradient(135deg, var(--sq-gold), var(--sq-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Step Badges */
.step-badge {
  background: linear-gradient(135deg, var(--sq-primary), var(--sq-accent));
  color: var(--sq-text-light);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  animation: bounce-subtle 2s ease-in-out infinite;
}

.step-card {
  animation: slide-in-left 0.6s ease-out backwards;
}

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }

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

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

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

.table-payments th {
  background: rgba(99, 102, 241, 0.1);
  color: var(--sq-text-light);
  font-weight: 600;
}

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

.table-payments tr:hover td {
  background: rgba(99, 102, 241, 0.05);
  color: var(--sq-text-light);
}

/* Provider Cloud */
.provider-tag {
  background: var(--sq-bg-card);
  border: 1px solid var(--sq-border);
  color: var(--sq-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all var(--sq-transition);
  display: inline-block;
}

.provider-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--sq-primary);
  color: var(--sq-text-light);
}

/* Promo Cards */
.promo-card {
  background: linear-gradient(145deg, var(--sq-bg-card), rgba(99, 102, 241, 0.1));
  border: 1px solid var(--sq-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all var(--sq-transition);
}

.promo-card:hover {
  border-color: var(--sq-primary);
  transform: scale(1.02);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--sq-border);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--sq-transition);
}

.faq-item:hover {
  border-color: var(--sq-primary-light);
}

.faq-question {
  background: var(--sq-bg-card);
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sq-text-light);
  transition: background var(--sq-transition);
}

.faq-question:hover {
  background: var(--sq-bg-card-hover);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all var(--sq-transition);
  color: var(--sq-text-muted);
  background: rgba(15, 15, 26, 0.5);
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform var(--sq-transition);
  color: var(--sq-primary-light);
}

/* Hero Section */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: linear-gradient(180deg, 
    rgba(15, 15, 26, 0.7) 0%, 
    rgba(15, 15, 26, 0.85) 50%,
    var(--sq-bg-dark) 100%);
}

/* Section Backgrounds */
.section-gradient {
  background: linear-gradient(180deg, var(--sq-bg-dark) 0%, rgba(26, 26, 46, 0.5) 50%, var(--sq-bg-dark) 100%);
}

.section-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
}

/* Footer */
.footer-gradient {
  background: linear-gradient(180deg, var(--sq-bg-dark) 0%, rgba(10, 10, 18, 1) 100%);
  border-top: 1px solid var(--sq-border);
}

/* 18+ Badge */
.badge-18 {
  background: #dc2626;
  color: white;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

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

::-webkit-scrollbar-track {
  background: var(--sq-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--sq-primary-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sq-primary);
}

/* =============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================= */

.prose {
  color: var(--sq-text-light);
  max-width: 100%;
  line-height: 1.75;
}

.prose h2 {
  color: var(--sq-text-light);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sq-border);
  position: relative;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--sq-primary), var(--sq-accent));
}

.prose h3 {
  color: var(--sq-text-light);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h4 {
  color: var(--sq-primary-light);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: var(--sq-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.prose a {
  color: var(--sq-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--sq-transition);
}

.prose a:hover {
  color: var(--sq-primary-light);
  border-bottom-color: var(--sq-primary-light);
}

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

.prose em {
  color: var(--sq-primary-light);
  font-style: italic;
}

/* Prose Lists */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

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

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--sq-primary), var(--sq-accent));
  border-radius: 50%;
}

.prose ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  counter-reset: prose-counter;
}

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

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--sq-primary), var(--sq-primary-dark));
  color: var(--sq-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Prose Tables */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--sq-border);
}

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

.prose thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.1));
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--sq-text-light);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--sq-border);
}

.prose td {
  padding: 1rem 1.25rem;
  color: var(--sq-text-muted);
  border-bottom: 1px solid var(--sq-border);
}

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

.prose tbody tr:hover td {
  background: rgba(99, 102, 241, 0.05);
  color: var(--sq-text-light);
}

/* Prose Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--sq-bg-card), rgba(99, 102, 241, 0.1));
  border-left: 4px solid var(--sq-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--sq-text-light);
  font-style: italic;
}

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

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

/* Prose Code */
.prose code {
  background: var(--sq-bg-card);
  color: var(--sq-accent);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Fira Code', monospace;
}

.prose pre {
  background: var(--sq-bg-card);
  border: 1px solid var(--sq-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Prose Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sq-border), transparent);
  margin: 2.5rem 0;
}

/* Content Container */
.content-container {
  max-width: 100%;
  padding: 2rem 1rem;
}

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

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

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose p {
    font-size: 0.9375rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--sq-primary-light), var(--sq-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 1px solid transparent;
  background: linear-gradient(var(--sq-bg-card), var(--sq-bg-card)) padding-box,
              linear-gradient(135deg, var(--sq-primary), var(--sq-accent)) border-box;
}

/* Animation Utilities */
.animate-fade-in {
  animation: fade-in-up 0.6s ease-out;
}

.animate-slide-in {
  animation: slide-in-left 0.6s ease-out;
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.btn-gold:focus,
.nav-link:focus {
  outline: 2px solid var(--sq-accent);
  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;
  }
}
