/* =============================================
   CraftCasino – Custom CSS & Animations
   Neon Forge Theme
   ============================================= */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
}

/* ---- Neon Glow Utilities ---- */
.logo-glow {
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6), 0 0 20px rgba(0, 245, 255, 0.3);
}

.neon-text-cyan {
  color: #00f5ff;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.7);
}

.neon-text-violet {
  color: #bf00ff;
  text-shadow: 0 0 8px rgba(191, 0, 255, 0.7);
}

/* ---- Pixel Texture ---- */
.pixel-texture {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 245, 255, 0.03) 2px,
      rgba(0, 245, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(191, 0, 255, 0.03) 2px,
      rgba(191, 0, 255, 0.03) 4px
    );
}

/* ---- Neon Light Trails ---- */
.neon-trail-1 {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 300px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f5ff, transparent);
  animation: trailMove1 8s ease-in-out infinite;
  opacity: 0.4;
  z-index: 1;
}

.neon-trail-2 {
  position: absolute;
  bottom: 30%;
  right: -100px;
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #bf00ff, transparent);
  animation: trailMove2 10s ease-in-out infinite;
  opacity: 0.35;
  z-index: 1;
}

@keyframes trailMove1 {
  0% { transform: translateX(0) translateY(0); opacity: 0.2; }
  25% { opacity: 0.6; }
  50% { transform: translateX(110vw) translateY(20px); opacity: 0.2; }
  51% { transform: translateX(-200px) translateY(0); opacity: 0; }
  100% { transform: translateX(0) translateY(0); opacity: 0.2; }
}

@keyframes trailMove2 {
  0% { transform: translateX(0) translateY(0); opacity: 0.15; }
  30% { opacity: 0.5; }
  60% { transform: translateX(-110vw) translateY(-15px); opacity: 0.15; }
  61% { transform: translateX(100px) translateY(0); opacity: 0; }
  100% { transform: translateX(0) translateY(0); opacity: 0.15; }
}

/* ---- Bonus Badge Glow Animation ---- */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3), 0 0 20px rgba(0, 245, 255, 0.15), 0 0 40px rgba(191, 0, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6), 0 0 40px rgba(0, 245, 255, 0.3), 0 0 80px rgba(191, 0, 255, 0.2);
  }
}

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ---- Marquee Track ---- */
.marquee-track {
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

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

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

/* ---- CTA Button Effects ---- */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.cta-primary:hover::before {
  left: 100%;
}

/* ---- Step Card Connector ---- */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #bf00ff);
    opacity: 0.4;
  }
}

/* ---- Prose Styling ---- */
.prose-casino {
  color: #8eb3d4;
  line-height: 1.8;
  font-size: 0.95rem;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #e8f4ff;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; color: #00f5ff; }
.prose-casino h2 { font-size: 1.5rem; border-bottom: 1px solid #1a2a45; padding-bottom: 0.4em; }
.prose-casino h3 { font-size: 1.2rem; color: #00f5ff; }

.prose-casino p {
  margin-bottom: 1.25em;
  color: #8eb3d4;
}

.prose-casino a {
  color: #00f5ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 245, 255, 0.4);
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #bf00ff;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: #8eb3d4;
}

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

.prose-casino li {
  margin-bottom: 0.5em;
}

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

.prose-casino em {
  color: #00f5ff;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #00f5ff;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #8eb3d4;
  background: rgba(0, 245, 255, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1em;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #8eb3d4;
}

.prose-casino thead th {
  background: rgba(0, 245, 255, 0.08);
  color: #00f5ff;
  font-weight: 600;
  padding: 0.6em 1em;
  text-align: left;
  border-bottom: 2px solid #1a2a45;
}

.prose-casino tbody td {
  padding: 0.6em 1em;
  border-bottom: 1px solid rgba(26, 42, 69, 0.6);
}

.prose-casino tbody tr:hover {
  background: rgba(0, 245, 255, 0.04);
}

.prose-casino code {
  background: rgba(0, 245, 255, 0.1);
  color: #00f5ff;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: #0a1220;
  border: 1px solid #1a2a45;
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1a2a45;
  margin: 2em 0;
}

/* ---- Prose Table Scroll (mandatory classes) ---- */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---- Nav Link Active State ---- */
.nav-link.active {
  color: #00f5ff;
  background: rgba(0, 245, 255, 0.08);
}

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

::-webkit-scrollbar-track {
  background: #040812;
}

::-webkit-scrollbar-thumb {
  background: #1a2a45;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f5ff44;
}

/* ---- Game Card Hover ---- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.15);
}

/* ---- Promo Card ---- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 245, 255, 0.1);
}

/* ---- FAQ Accordion ---- */
.faq-btn i {
  transition: transform 0.3s ease;
}

/* ---- Responsive Fixes ---- */
@media (max-width: 640px) {
  .bonus-badge-box {
    padding: 1rem 1.25rem;
  }

  .step-card::after {
    display: none;
  }
}

/* ---- Hero Section ---- */
.hero-section {
  min-height: 100svh;
}

/* ---- Background Pattern for dark sections ---- */
.bg-pattern {
  background-image: radial-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ---- Gradient border utility ---- */
.gradient-border {
  position: relative;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #00f5ff, #bf00ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
