/* ============================================================
   LOLAJACK CASINO — Custom CSS
   Animations, keyframes, prose styling, overrides
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --void:         #0a0a0c;
  --card:         #111114;
  --card-hover:   #18181c;
  --crimson:      #dc2626;
  --crimson-deep: #991b1b;
  --crimson-glow: #ef4444;
  --steel:        #2a2a2e;
  --steel-light:  #3f3f46;
  --smoke:        #161618;
  --text:         #e4e4e7;
  --text-dim:     #a1a1aa;
  --text-muted:   #71717a;
  --border:       #1e1e22;
  --radius:       1rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--void);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ---- Ambient Background ---- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(220,38,38,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(220,38,38,0.03) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(30,30,34,0.9) 0%, transparent 70%),
    var(--void);
}

/* ---- Marble Noise Layer ---- */
.marble-noise::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* ---- Hero Pattern (CSS Diamond Grid) ---- */
.hero-pattern {
  position: relative;
  overflow: hidden;
}
.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(135deg, var(--crimson) 25%, transparent 25%),
    linear-gradient(225deg, var(--crimson) 25%, transparent 25%),
    linear-gradient(315deg, var(--crimson) 25%, transparent 25%),
    linear-gradient(45deg,  var(--crimson) 25%, transparent 25%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 0, 12px -12px, 0 12px;
  pointer-events: none;
}
.hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.2) 0%, rgba(10,10,12,0.85) 100%);
  pointer-events: none;
}

/* ---- Neon Line Accent ---- */
.neon-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--crimson) 30%, var(--crimson-glow) 50%, var(--crimson) 70%, transparent 100%);
  box-shadow: 0 0 8px rgba(220,38,38,0.4), 0 0 20px rgba(220,38,38,0.15);
}

/* ---- Glow Utilities ---- */
.neon-glow {
  box-shadow:
    0 0 6px  rgba(220,38,38,0.25),
    0 0 20px rgba(220,38,38,0.10),
    0 0 40px rgba(220,38,38,0.05);
}

.neon-glow-strong {
  box-shadow:
    0 0 8px  rgba(220,38,38,0.4),
    0 0 24px rgba(220,38,38,0.2),
    0 0 48px rgba(220,38,38,0.08);
}

.steel-glow {
  box-shadow:
    0 0 8px rgba(63,63,70,0.3),
    0 0 20px rgba(63,63,70,0.1);
}

/* ---- Cards ---- */
.game-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220,38,38,0.3);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.5),
    0 0 12px rgba(220,38,38,0.1);
}
.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover img {
  transform: scale(1.05);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(220,38,38,0.25);
  box-shadow: 0 0 16px rgba(220,38,38,0.06);
}

/* ---- Glass ---- */
.glass {
  background: rgba(17,17,20,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-crimson   { background: rgba(220,38,38,0.15); color: var(--crimson-glow); }
.badge-emerald   { background: rgba(16,185,129,0.12); color: #34d399; }
.badge-amber     { background: rgba(245,158,11,0.12); color: #fbbf24; }
.badge-sky       { background: rgba(56,189,248,0.12); color: #38bdf8; }

/* ==== ANIMATION 1 — MARQUEE ==== */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* ==== ANIMATION 2 — PARALLAX (JS-driven via --scroll) ==== */
.parallax-slow {
  transform: translateY(calc(var(--scroll, 0) * -0.08px));
  will-change: transform;
}
.parallax-mid {
  transform: translateY(calc(var(--scroll, 0) * -0.15px));
  will-change: transform;
}

/* ---- Pulse Glow (CTA) ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(220,38,38,0.3), 0 0 24px rgba(220,38,38,0.1); }
  50%      { box-shadow: 0 0 14px rgba(220,38,38,0.5), 0 0 40px rgba(220,38,38,0.2); }
}

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

/* ---- Neon Flicker (Subtle) ---- */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 4px rgba(220,38,38,0.5),
      0 0 12px rgba(220,38,38,0.25),
      0 0 30px rgba(220,38,38,0.1);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.neon-text {
  color: var(--crimson-glow);
  text-shadow:
    0 0 4px rgba(220,38,38,0.5),
    0 0 12px rgba(220,38,38,0.25);
}

.neon-flicker {
  animation: neon-flicker 4s ease-in-out infinite;
}

/* ---- Float animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-anim {
  animation: float 5s ease-in-out infinite;
}

/* ---- Fade-in on scroll (JS adds .visible) ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- CTA Buttons ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-cta-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: #fff;
}
.btn-cta-primary:hover {
  background: linear-gradient(135deg, var(--crimson-glow) 0%, var(--crimson) 100%);
  transform: translateY(-2px);
}
.btn-cta-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--steel-light);
}
.btn-cta-outline:hover {
  border-color: var(--crimson);
  color: var(--crimson-glow);
}

/* ---- Tabs (Deposit / Withdrawal) ---- */
.tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.tab-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Data Table ---- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--smoke);
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(220,38,38,0.02); }

/* ---- Stars (Trustpilot-like) ---- */
.star-filled { color: #00b67a; }
.star-empty  { color: var(--steel); }

/* ---- Carousel ---- */
.review-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.review-carousel::-webkit-scrollbar { display: none; }
.review-carousel > * {
  scroll-snap-align: start;
  flex: 0 0 min(90vw, 380px);
}

/* ---- Prose Styling ---- */
.prose {
  line-height: 1.7;
  color: var(--text-dim);
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.prose h1 { font-size: 2rem; font-weight: 800; }
.prose h2 { font-size: 1.5rem; font-weight: 700; }
.prose h3 { font-size: 1.2rem; font-weight: 600; }
.prose p {
  margin-bottom: 1.15rem;
  max-width: 70ch;
}
.prose a {
  color: var(--crimson-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: #fff; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.15rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--crimson);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(220,38,38,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
.prose img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}
.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.prose table th,
.prose table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose table th { background: var(--smoke); color: var(--text); font-weight: 600; }

/* ---- Section Spacing ---- */
.section { padding: 4rem 1.25rem; }
@media (min-width: 768px) { .section { padding: 5rem 2rem; } }
@media (min-width: 1024px) { .section { padding: 6rem 2rem; } }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .section-title { font-size: 2rem; } }

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 44ch;
  line-height: 1.5;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ---- Responsive Grid Helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Overlay Image Tint ---- */
.img-overlay {
  position: relative;
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,12,0.75) 100%);
  border-radius: inherit;
  pointer-events: none;
}

/* ---- Provider Button (3D) ---- */
.provider-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.25s ease;
}
.provider-chip:hover {
  border-color: rgba(220,38,38,0.3);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---- Promotion Card ---- */
.promo-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--smoke) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.promo-card:hover {
  border-color: rgba(220,38,38,0.3);
  transform: translateY(-3px);
}

/* ---- Review Card ---- */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

/* ---- Author Card ---- */
.author-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 640px) {
  .author-card { flex-direction: row; align-items: flex-start; }
}

/* ---- Sticky Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  min-width: 88px;
}

.lang-select {
  width: 100%;
  color: #fff;
  background: rgba(17,17,20,0.7);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 0.45rem 1.6rem 0.45rem 0.65rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---- Mobile Nav Overlay ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,0.96);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-overlay a:hover { color: var(--crimson-glow); }

.lang-switcher-mobile {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  margin-top: -0.4rem;
}

.nav-overlay .lang-switcher-mobile .lang-select {
  font-size: 0.9rem;
  padding: 0.7rem 2rem 0.7rem 0.9rem;
  border-color: rgba(220,38,38,0.3);
  background-color: rgba(17,17,20,0.85);
}

/* ---- Misc ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--crimson-glow) 0%, #fff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* Selection color */
::selection {
  background: rgba(220,38,38,0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-light); }

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

/* ============================================================
   CASINO PARAMETERS TABLE STYLES
   ============================================================ */

/* Table wrapper for responsive behavior */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.params-table thead {
  background: rgba(220, 38, 38, 0.08);
  border-bottom: 2px solid var(--border);
}

.params-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--crimson-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.params-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.params-table tbody tr:hover {
  background-color: rgba(220, 38, 38, 0.08);
}

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

.params-table td {
  padding: 0.75rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

.params-table td:first-child {
  font-weight: 500;
  color: var(--crimson-glow);
  min-width: 200px;
}

/* Status indicators */
.status-yes {
  color: #4ade80;
  font-weight: 600;
  font-size: 1.1rem;
}

.status-no {
  color: var(--text-muted);
  font-weight: 400;
}

/* Responsive table behavior on mobile */
@media (max-width: 768px) {
  .params-table th,
  .params-table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .params-table th {
    font-size: 0.75rem;
  }

  .params-table td:first-child {
    min-width: 140px;
  }
}
