/* =============================================================
   BetSider Casino – Custom CSS
   Northern Edge Theme: icy blue, silver, midnight, aurora
   ============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================
   CSS CUSTOM PROPERTIES
   ============================================================= */
:root {
  --midnight: #0a0f1e;
  --midnight-deep: #060b17;
  --icy-blue: #4dd9f0;
  --icy-blue-light: #a8eef8;
  --silver: #b8c8d8;
  --silver-light: #ddeaf4;
  --aurora-green: #00e5a0;
  --aurora-purple: #7c3aed;
  --gold: #f5c542;
  --gold-dark: #c9a400;
  --card-bg: #0f1a2e;
  --card-border: #1e3050;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  line-height: 1.25;
}

p, li, td, th, span {
  word-break: break-word;
}

/* =============================================================
   GRADIENT TEXT
   ============================================================= */
.text-gradient {
  background: linear-gradient(135deg, var(--icy-blue) 0%, var(--aurora-green) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-primary {
  background: linear-gradient(135deg, var(--icy-blue) 0%, #0ea5c9 100%);
  color: #0a0f1e;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(77, 217, 240, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(77, 217, 240, 0.55);
  opacity: 0.95;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--icy-blue-light);
  font-weight: 700;
  border: 2px solid var(--icy-blue);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(77, 217, 240, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================================
   NAVBAR LINKS
   ============================================================= */
.nav-link {
  color: var(--silver);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--icy-blue-light);
  background: rgba(77, 217, 240, 0.1);
}

.mobile-nav-link {
  color: var(--silver-light);
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  font-size: 0.9rem;
}

.mobile-nav-link:hover {
  color: var(--icy-blue);
  background: rgba(77, 217, 240, 0.08);
  border-color: var(--card-border);
}

/* =============================================================
   FOOTER LINKS
   ============================================================= */
.footer-link {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--icy-blue-light);
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  background-color: var(--midnight-deep);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 11, 23, 0.55) 0%,
    rgba(6, 11, 23, 0.7) 60%,
    rgba(6, 11, 23, 0.95) 100%
  );
}

.aurora-bg {
  background:
    radial-gradient(ellipse 80% 40% at 20% 30%, rgba(77, 217, 240, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 70%, rgba(0, 229, 160, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 25% at 50% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-shift {
  0% {
    opacity: 0.6;
    transform: translateX(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(20px) translateY(-10px);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-10px) translateY(5px);
  }
}

/* =============================================================
   BONUS BADGE
   ============================================================= */
.bonus-badge {
  background: linear-gradient(
    135deg,
    rgba(15, 26, 46, 0.95) 0%,
    rgba(10, 15, 30, 0.98) 100%
  );
  border: 2px solid var(--icy-blue);
  box-shadow:
    0 0 40px rgba(77, 217, 240, 0.25),
    0 0 80px rgba(77, 217, 240, 0.1),
    inset 0 1px 0 rgba(77, 217, 240, 0.15);
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(77, 217, 240, 0.25),
      0 0 80px rgba(77, 217, 240, 0.1),
      inset 0 1px 0 rgba(77, 217, 240, 0.15);
  }
  50% {
    box-shadow:
      0 0 60px rgba(77, 217, 240, 0.45),
      0 0 120px rgba(77, 217, 240, 0.2),
      inset 0 1px 0 rgba(77, 217, 240, 0.25);
  }
}

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================================
   PROMO CARDS
   ============================================================= */
.promo-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--icy-blue);
  box-shadow: 0 8px 32px rgba(77, 217, 240, 0.15);
}

.promo-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(77, 217, 240, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.promo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
}

.promo-copy {
  font-size: 0.875rem;
  color: var(--silver);
  line-height: 1.65;
  flex: 1;
}

/* =============================================================
   STEP CARDS
   ============================================================= */
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 217, 240, 0.5);
}

.step-card-featured {
  border-color: var(--icy-blue);
  box-shadow: 0 0 40px rgba(77, 217, 240, 0.12);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--icy-blue) 0%, #0ea5c9 100%);
  color: var(--midnight);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(77, 217, 240, 0.4);
}

.step-badge-featured {
  background: linear-gradient(135deg, var(--gold) 0%, #e08c00 100%);
  box-shadow: 0 4px 12px rgba(245, 197, 66, 0.5);
}

.step-icon {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
}

.step-copy {
  font-size: 0.875rem;
  color: var(--silver);
  line-height: 1.65;
}

/* =============================================================
   GAMES MARQUEE
   ============================================================= */
.games-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.games-track {
  display: flex;
  gap: 1.25rem;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}

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

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

.game-card {
  width: 180px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  border-color: var(--icy-blue);
  box-shadow: 0 4px 24px rgba(77, 217, 240, 0.2);
}

.game-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1a2e, #1e3050);
}

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

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  gap: 0.5rem;
}

.game-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--silver-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.game-badge {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--midnight);
  background: var(--icy-blue);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================================
   REVIEW BLOCKS
   ============================================================= */
.review-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.review-block-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 15, 30, 0.6);
  border-bottom: 1px solid var(--card-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver-light);
}

.review-block-body {
  padding: 1.5rem;
  flex: 1;
}

/* =============================================================
   WORD CLOUD
   ============================================================= */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.wc-xl {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--icy-blue);
  opacity: 0.95;
}

.wc-lg {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--icy-blue-light);
  opacity: 0.85;
}

.wc-md {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver-light);
  opacity: 0.8;
}

.wc-sm {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--silver);
  opacity: 0.7;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(77, 217, 240, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-light);
  transition: color 0.2s, background 0.2s;
}

.faq-question:hover {
  color: var(--icy-blue-light);
  background: rgba(77, 217, 240, 0.04);
}

.faq-icon {
  color: var(--icy-blue);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--silver);
  line-height: 1.7;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}

.faq-answer.hidden {
  display: none;
}

/* =============================================================
   TABLE STYLES
   ============================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--midnight);
  color: var(--icy-blue-light);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 0.75rem 1rem;
  color: var(--silver);
  vertical-align: middle;
}

.table-row-alt:nth-child(odd) {
  background: rgba(10, 15, 30, 0.5);
}

.table-row-alt:nth-child(even) {
  background: rgba(15, 26, 46, 0.5);
}

.table-row-alt:hover {
  background: rgba(77, 217, 240, 0.05);
}

/* =============================================================
   PROSE CASINO (for single pages and review blocks)
   ============================================================= */
.prose-casino {
  color: var(--silver);
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--silver-light);
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.2rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: var(--silver);
}

.prose-casino a {
  color: var(--icy-blue);
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: var(--icy-blue-light);
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

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

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

.prose-casino li {
  margin-bottom: 0.4em;
  color: var(--silver);
}

.prose-casino strong {
  color: var(--silver-light);
  font-weight: 700;
}

.prose-casino em {
  color: var(--icy-blue-light);
}

.prose-casino blockquote {
  border-left: 3px solid var(--icy-blue);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--silver);
  font-style: italic;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 2rem 0;
}

/* Prose table wrapper class */
.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;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5em 0;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead th {
  background: var(--midnight);
  color: var(--icy-blue-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--card-border);
  color: var(--silver);
}

.prose-casino tbody tr:hover td {
  background: rgba(77, 217, 240, 0.04);
}

/* =============================================================
   AGE BADGE
   ============================================================= */
.age-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* =============================================================
   PARALLAX CONTAINER
   ============================================================= */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* =============================================================
   SCROLLBAR STYLING
   ============================================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--midnight-deep);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--icy-blue);
}

/* =============================================================
   SELECTION
   ============================================================= */
::selection {
  background: rgba(77, 217, 240, 0.3);
  color: var(--silver-light);
}

/* =============================================================
   UTILITY
   ============================================================= */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* =============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================= */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }

  .bonus-badge {
    padding: 1.5rem 1.25rem;
  }

  .step-card,
  .promo-card,
  .review-block {
    padding: 1.5rem;
  }

  .game-card {
    width: 155px;
  }
}

@media (max-width: 768px) {
  .games-track {
    animation-duration: 20s;
  }
}

/* =============================================================
   FOCUS STATES (accessibility)
   ============================================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--icy-blue);
  outline-offset: 2px;
  border-radius: 4px;
}