/* ==============================================
   TrenchBet Casino — Custom CSS & Animations
   Neon Strike Theme: Cyan + Crimson on Dark
   ============================================== */

/* --- Root Variables --- */
:root {
  --neon-cyan: #00f5ff;
  --neon-crimson: #ff1744;
  --dark-base: #0a0e1a;
  --dark-card: #111827;
  --dark-surface: #1a2235;
  --dark-border: #1e3a5f;
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Scrollbar Styles --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-card);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099cc 100%);
  color: var(--dark-base);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.btn-primary:hover::before {
  left: 120%;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0,245,255,0.6), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  color: var(--dark-base);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--neon-cyan);
  cursor: pointer;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.btn-secondary:hover {
  background: rgba(0,245,255,0.1);
  box-shadow: 0 0 20px rgba(0,245,255,0.3);
  transform: translateY(-2px);
}

.btn-crimson {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-crimson) 0%, #cc0000 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.btn-crimson:hover {
  box-shadow: 0 0 24px rgba(255,23,68,0.6);
  transform: translateY(-2px);
}

.cta-glow {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,245,255,0.4); }
  50% { box-shadow: 0 0 36px rgba(0,245,255,0.8), 0 0 60px rgba(0,245,255,0.3); }
}

/* --- Hero Section --- */
.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
.hero-particles::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,245,255,0.08) 0%, transparent 70%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.hero-particles::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,23,68,0.06) 0%, transparent 70%);
  bottom: 20%;
  right: 10%;
  animation-delay: 4s;
}
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* --- Bonus Badge --- */
.bonus-badge {
  position: relative;
}
.bonus-badge-glow {
  position: absolute;
  inset: -8px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-crimson));
  opacity: 0.15;
  filter: blur(16px);
  z-index: 0;
  animation: bonusGlow 3s ease-in-out infinite;
}
@keyframes bonusGlow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.28; }
}

/* --- Scroll Dot Animation --- */
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.animate-scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* --- Animate Pulse Slow --- */
.animate-pulse-slow {
  animation: pulseSlow 2.5s ease-in-out infinite;
}
@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Promo Cards --- */
.promo-card-accent {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* --- Game Cards Strip --- */
.games-strip {
  padding-bottom: 1rem;
}
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,245,255,0.15);
}

/* --- Review Blocks --- */
.review-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,245,255,0.1);
}

/* --- Provider Word Cloud --- */
.word-cloud {
  line-height: 2;
}
.provider-tag {
  cursor: default;
  transition: all 0.2s ease;
  padding: 2px 4px;
  border-radius: 4px;
}
.provider-tag:hover {
  background: rgba(0,245,255,0.08);
  color: var(--neon-cyan) !important;
}

/* --- Step Cards --- */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,245,255,0.12);
}
.step-number {
  position: relative;
  z-index: 1;
}

/* --- FAQ Accordion --- */
.faq-item {
  transition: border-color 0.2s ease;
}
.faq-item:has(.faq-answer:not(.hidden)) {
  border-color: var(--neon-cyan);
}
.faq-answer {
  border-top: 1px solid rgba(30,58,95,0.5);
}
.faq-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* --- Marquee Animation --- */
.marquee-strip {
  position: relative;
}
.marquee-content {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-strip:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Parallax helper --- */
@media (prefers-reduced-motion: no-preference) {
  .parallax-section {
    background-attachment: fixed;
  }
}

/* --- Table Styles --- */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}

/* --- Prose Overrides --- */
.prose {
  color: var(--text-primary);
  max-width: 100%;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  font-weight: 800;
}
.prose h2 {
  color: var(--neon-cyan);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0.5rem;
}
.prose a {
  color: var(--neon-cyan);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
  color: #fff;
}
.prose strong {
  color: #fff;
}
.prose ul li::marker {
  color: var(--neon-cyan);
}
.prose ol li::marker {
  color: var(--neon-crimson);
}
.prose blockquote {
  border-left: 4px solid var(--neon-cyan);
  color: var(--text-muted);
  background: var(--dark-surface);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
}
.prose code {
  background: var(--dark-surface);
  color: var(--neon-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.prose pre {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.prose table {
  font-size: 0.875rem;
}
.prose thead th {
  color: var(--neon-cyan);
  border-bottom: 2px solid var(--dark-border);
  padding: 0.75rem 1rem;
}
.prose tbody td {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(30,58,95,0.5);
  padding: 0.75rem 1rem;
}
.prose tbody tr:hover td {
  background: var(--dark-surface);
}
.prose img {
  border-radius: 0.75rem;
  border: 1px solid var(--dark-border);
}
.prose hr {
  border-color: var(--dark-border);
}

/* --- Inner pages: long-form readability --- */
.inner-page-shell {
  min-height: 45vh;
}

.inner-page {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: 0.012em;
  font-weight: 400;
  color: #e8edf5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(30, 58, 95, 0.55);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.75rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  --reading-p-muted: #a8b9d0;
}

.inner-page > :first-child {
  margin-top: 0;
}

.inner-page h1 {
  font-size: clamp(1.875rem, 1.35rem + 2vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.55em;
}

.inner-page h2 {
  font-size: clamp(1.32rem, 1.1rem + 0.85vw, 1.68rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  margin-top: 1.85em;
  margin-bottom: 0.6em;
  padding-bottom: 0.42em;
}

.inner-page h3 {
  font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem);
  line-height: 1.32;
  margin-top: 1.55em;
  margin-bottom: 0.48em;
  color: #f1f5f9;
  font-weight: 700;
}

.inner-page h4 {
  margin-top: 1.4em;
  margin-bottom: 0.42em;
  color: #f1f5f9;
  font-weight: 700;
}

.inner-page p {
  margin-top: 0;
  margin-bottom: 1.12em;
  color: #e8edf5;
}

.inner-page p:last-child {
  margin-bottom: 0;
}

.inner-page ul,
.inner-page ol {
  margin-top: 0.65em;
  margin-bottom: 1.1em;
  padding-left: 1.4em;
}

.inner-page li {
  margin-top: 0.38em;
  margin-bottom: 0.38em;
  padding-left: 0.2em;
  line-height: 1.65;
}

.inner-page li > p {
  margin-bottom: 0.45em;
}

.inner-page a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 245, 255, 0.55);
}

.inner-page a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--neon-cyan);
}

.inner-page strong {
  color: #fff;
  font-weight: 600;
}

.inner-page hr {
  margin: 2.25rem 0;
  border-color: rgba(30, 58, 95, 0.65);
}

.inner-page blockquote {
  margin: 1.5rem 0;
  font-size: 1.02em;
  line-height: 1.68;
  color: var(--reading-p-muted);
}

.inner-page table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  font-size: 0.94em;
}

.inner-page thead th {
  white-space: nowrap;
}

.inner-page tbody td {
  color: #c8d4e4;
}

.inner-page img {
  max-width: 100%;
  height: auto;
}

.inner-page code {
  font-size: 0.9em;
}

@media (max-width: 640px) {
  .inner-page {
    font-size: 1.03125rem;
    line-height: 1.68;
    padding: 1.35rem 1.1rem;
    border-radius: 0.875rem;
  }

  .inner-page h2 {
    margin-top: 1.5em;
  }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 640px) {
  .hero-bg {
    background-attachment: scroll;
  }
  .btn-primary,
  .btn-secondary,
  .btn-crimson {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* --- Motion Trails on Cards --- */
@keyframes trailGlow {
  0% { box-shadow: 0 0 0 rgba(0,245,255,0); }
  50% { box-shadow: 0 0 30px rgba(0,245,255,0.2); }
  100% { box-shadow: 0 0 0 rgba(0,245,255,0); }
}
.game-card:hover {
  animation: trailGlow 1.5s ease-in-out;
}

/* --- Neon text glow --- */
.neon-glow-text {
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px rgba(0,245,255,0.5);
}
.crimson-glow-text {
  text-shadow: 0 0 10px var(--neon-crimson), 0 0 20px rgba(255,23,68,0.5);
}

/* --- Burger Menu Lines --- */
.burger-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Language Switcher --- */
.lang-switcher-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
