/* ================================================================
   BearoCasino – Custom CSS
   Theme: Neon Wilds — Electric Cyan & Violet on Dark Digital
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #050714;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---- CSS Variables ---- */
:root {
  --cyan-neon: #00f5ff;
  --violet-neon: #a855f7;
  --violet-deep: #7c3aed;
  --dark-900: #050714;
  --dark-800: #0b0e1f;
  --dark-700: #111530;
  --dark-600: #1a1f3a;
  --dark-500: #232845;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
}

/* ---- Neon Text Effects ---- */
.neon-text-cyan {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px var(--cyan-neon), 0 0 30px rgba(0, 245, 255, 0.4);
}

.neon-text-violet {
  color: var(--violet-neon);
  text-shadow: 0 0 10px var(--violet-neon), 0 0 30px rgba(168, 85, 247, 0.4);
}

/* ---- Light Trails ---- */
.light-trail {
  position: absolute;
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--cyan-neon), transparent);
  opacity: 0.3;
  animation: trailFall 6s ease-in-out infinite;
  pointer-events: none;
}

.light-trail-1 {
  left: 15%;
  top: -200px;
  animation-delay: 0s;
  background: linear-gradient(to bottom, transparent, var(--cyan-neon), transparent);
}

.light-trail-2 {
  left: 50%;
  top: -200px;
  animation-delay: 2s;
  background: linear-gradient(to bottom, transparent, var(--violet-neon), transparent);
}

.light-trail-3 {
  right: 20%;
  top: -200px;
  animation-delay: 4s;
  background: linear-gradient(to bottom, transparent, var(--cyan-neon), transparent);
}

@keyframes trailFall {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.3; }
  100% { transform: translateY(120vh); opacity: 0; }
}

/* ---- Grid Pattern Background ---- */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Navigation ---- */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--cyan-neon);
  background-color: rgba(0, 245, 255, 0.08);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--cyan-neon);
  background-color: rgba(0, 245, 255, 0.08);
}

/* Burger Lines */
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-open .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-open .burger-line:nth-child(2) {
  opacity: 0;
}
.menu-open .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- CTA Buttons ---- */
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #050714;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, #06b6d4 100%);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.7), 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #22d3ee 0%, var(--cyan-neon) 100%);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--violet-neon);
  background: transparent;
  border: 2px solid var(--violet-neon);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cyan-neon);
  background: transparent;
  border: 1.5px solid var(--cyan-neon);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.cta-btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--violet-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ---- Bonus Badge ---- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1.5px solid rgba(0, 245, 255, 0.4);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.15), 0 0 60px rgba(168, 85, 247, 0.1);
  animation: bonusPulse 3s ease-in-out infinite;
}

@keyframes bonusPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.15), 0 0 60px rgba(168, 85, 247, 0.1); }
  50% { box-shadow: 0 0 50px rgba(0, 245, 255, 0.3), 0 0 80px rgba(168, 85, 247, 0.2); }
}

/* ---- Promo Cards ---- */
.promo-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-600) 100%);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--violet-neon));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 245, 255, 0.1);
}

.promo-card:hover::before {
  opacity: 1;
}

.promo-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ---- Review Blocks ---- */
.review-block {
  background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
  border: 1px solid var(--dark-500);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s ease;
}

.review-block:hover {
  border-color: rgba(0, 245, 255, 0.2);
}

.review-block-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-500);
  display: flex;
  align-items: center;
}

/* ---- Provider Word Cloud ---- */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.provider-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: default;
  white-space: nowrap;
}

.provider-tag:hover {
  transform: scale(1.05);
}

.provider-sm {
  font-size: 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.provider-md {
  font-size: 0.875rem;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--cyan-neon);
}

.provider-lg {
  font-size: 1rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e879f9;
}

.provider-xl {
  font-size: 1.125rem;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: var(--cyan-neon);
  font-weight: 800;
}

/* ---- Game Cards ---- */
.game-card {
  cursor: pointer;
}

.game-card-img-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  transition: border-color 0.3s ease;
}

.game-card:hover .game-card-img-wrapper {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.08);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--cyan-neon);
  color: #050714;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.game-play-btn:hover {
  background: #22d3ee;
  transform: scale(1.05);
}

/* ---- Step Cards ---- */
.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-600) 100%);
  border: 1px solid var(--dark-500);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--cyan-neon), var(--violet-neon));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  color: #050714;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background: var(--dark-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  border: 1px solid var(--dark-500);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  background: var(--dark-800);
  border: 1px solid var(--dark-600);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 245, 255, 0.25);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  color: #f1f5f9;
}

.faq-question:hover {
  background: rgba(0, 245, 255, 0.04);
}

.faq-answer {
  padding: 0 1.25rem 1.125rem;
  border-top: 1px solid var(--dark-600);
}

/* ---- Payment Icon ---- */
.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--dark-600);
  border: 1px solid var(--dark-500);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.payment-icon:hover {
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
}

/* ---- Parallax (JS-free approximation via CSS) ---- */
.hero-section {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* ---- Marquee Animation ---- */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--dark-500);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.4);
}

/* ---- Prose Styling ---- */
.prose-casino {
  color: #cbd5e1;
  line-height: 1.75;
  max-width: none;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #f1f5f9;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-casino h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--cyan-neon), var(--violet-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose-casino h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--cyan-neon);
}

.prose-casino h3 {
  font-size: 1.25rem;
  color: #a78bfa;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: #94a3b8;
}

.prose-casino a {
  color: var(--cyan-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.prose-casino strong {
  color: #e2e8f0;
  font-weight: 700;
}

.prose-casino ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.prose-casino ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan-neon);
  font-size: 0.875rem;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.prose-casino .prose-table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--dark-600);
}

.prose-casino .prose-table-scroll table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.prose-casino table th {
  background: var(--dark-700);
  color: var(--cyan-neon);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--dark-500);
}

.prose-casino table td {
  padding: 0.625rem 1rem;
  border: 1px solid var(--dark-600);
  color: #94a3b8;
}

.prose-casino table tr:nth-child(even) {
  background: rgba(17, 21, 48, 0.5);
}

.prose-casino blockquote {
  border-left: 3px solid var(--cyan-neon);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-style: italic;
}

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

.prose-casino pre {
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ---- Utility: overflow-x-auto wrapper for tables ---- */
.table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--dark-600);
}

/* ---- Focus Styles for Accessibility ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ---- Responsive Container ---- */
.max-w-8xl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Glow Pulse on CTAs ---- */
@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.7), 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

.cta-btn-primary {
  animation: ctaGlow 3s ease-in-out infinite;
}

.cta-btn-primary:hover {
  animation: none;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.625rem;
  }

  .promo-card {
    padding: 1.25rem;
  }

  .review-block {
    padding: 1.25rem;
  }

  .step-card {
    padding: 1.75rem 1.25rem;
  }
}
