/* =======================================================
   BetStruck Casino – Custom CSS
   Northern Impact Theme: Icy Sapphire & Silver, Aurora
======================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0a0e1a;
  color: #c0cfe0;
}

* {
  box-sizing: border-box;
}

/* ===================== AURORA ANIMATIONS ===================== */

@keyframes aurora-shift {
  0%   { background-position: 0% 50%; opacity: 0.18; }
  50%  { background-position: 100% 50%; opacity: 0.28; }
  100% { background-position: 0% 50%; opacity: 0.18; }
}

.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300e5c8' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.aurora-overlay {
  background: linear-gradient(
    120deg,
    rgba(0,229,200,0.12) 0%,
    rgba(13,45,107,0.18) 30%,
    rgba(0,229,200,0.10) 60%,
    rgba(168,212,245,0.08) 100%
  );
  background-size: 300% 300%;
  animation: aurora-shift 9s ease-in-out infinite;
  pointer-events: none;
}

.aurora-overlay-subtle {
  background: linear-gradient(
    135deg,
    rgba(0,229,200,0.06) 0%,
    rgba(13,45,107,0.10) 50%,
    rgba(0,229,200,0.05) 100%
  );
  background-size: 300% 300%;
  animation: aurora-shift 14s ease-in-out infinite;
  pointer-events: none;
}

/* ===================== PARALLAX HERO ===================== */

.hero-parallax {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    transform: translateZ(-1px) scale(1.5);
    z-index: -1;
  }
}

/* ===================== MARQUEE ===================== */

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

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

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

/* ===================== GLOWING REEL PULSE ===================== */

@keyframes reel-glow {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(0,229,200,0.25); }
  50%       { box-shadow: 0 0 28px 8px rgba(0,229,200,0.55); }
}

.bonus-badge {
  animation: reel-glow 3s ease-in-out infinite;
}

/* ===================== STEP BADGE ===================== */

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.step-badge {
  animation: badge-pulse 2.5s ease-in-out infinite;
}

/* Connector between step badges (desktop, matches grid-cols-3 + gap-8) */
@media (min-width: 768px) {
  .steps-connector-line {
    position: absolute;
    top: 4rem;
    left: calc((100% - 4rem) / 6);
    width: calc(2 * (100% - 4rem) / 3 + 4rem);
    height: 2px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #00e5c8 0%, #f0c040 50%, #00e5c8 100%);
  }
}

/* ===================== GAME CARD HOVER ===================== */

.game-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
}

/* ===================== PROMO CARD ===================== */

.promo-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
}

/* ===================== PROVIDER WORD CLOUD ===================== */

.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(13, 45, 107, 0.45);
  border: 1px solid rgba(0, 229, 200, 0.25);
  color: #a8d4f5;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(0, 229, 200, 0.15);
  color: #00e5c8;
  border-color: rgba(0, 229, 200, 0.6);
}

/* ===================== CTA BUTTONS ===================== */

.cta-btn,
.cta-primary {
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  transform: scale(1.04);
}

.cta-secondary {
  display: inline-block;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ===================== NAV LINKS ===================== */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00e5c8;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===================== FAQ ACCORDION ===================== */

.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: rgba(0, 229, 200, 0.5);
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid #00e5c8;
  outline-offset: 2px;
}

/* ===================== TABLE STYLES ===================== */

.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

/* Homepage payments table: cards on mobile, full table from md up */
.payments-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.payments-table {
  min-width: 44rem;
}

@media (max-width: 767px) {
  .payments-table-scroll {
    overflow-x: visible;
  }

  .payments-table {
    min-width: 0;
    width: 100%;
  }

  .payments-table thead {
    display: none;
  }

  .payments-table tbody {
    display: block;
  }

  .payments-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 45, 107, 0.5);
    overflow: hidden;
  }

  .payments-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .payments-table tbody td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) 1fr;
    gap: 0.35rem 0.75rem;
    align-items: start;
    padding: 0.75rem 1rem;
    white-space: normal;
    word-break: normal;
    border-bottom: 1px solid rgba(13, 45, 107, 0.35);
  }

  .payments-table tbody td:last-child {
    border-bottom: none;
  }

  .payments-table tbody td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a8d4f5;
    line-height: 1.4;
  }

  .payments-table tbody td[data-label="Payment Method"] {
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 229, 200, 0.2);
    background: rgba(13, 45, 107, 0.35);
  }

  .payments-table tbody td[data-label="Payment Method"]::before {
    display: none;
  }
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ===================== PROSE STYLES ===================== */

.prose-casino {
  color: #c0cfe0;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #a8d4f5;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.prose-casino h1 { font-size: 2rem; color: #ffffff; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; color: #00e5c8; }

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

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

.prose-casino a {
  color: #00e5c8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0 1.25em 1.5em;
  color: #c0cfe0;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #00e5c8;
  padding-left: 1rem;
  color: #a8d4f5;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: rgba(13,45,107,0.6);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(13,45,107,0.6);
  color: #00e5c8;
  padding: 0.1em 0.4em;
  border-radius: 0.25em;
  font-size: 0.9em;
}

.prose-casino pre {
  background: rgba(10,14,26,0.8);
  border: 1px solid rgba(13,45,107,0.6);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

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

.prose-casino thead th {
  background: rgba(13,45,107,0.7);
  color: #a8d4f5;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(0,229,200,0.3);
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(13,45,107,0.5);
  color: #c0cfe0;
}

.prose-casino tbody tr:hover td {
  background: rgba(13,45,107,0.25);
}

/* ===================== SCROLLBAR ===================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
  background: #0d2d6b;
  border-radius: 3px;
}

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

/* ===================== UTILITY ===================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Shimmer animation for loading states */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Floating animation for badges */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Responsive image utility */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile tap highlight */
a, button {
  -webkit-tap-highlight-color: rgba(0,229,200,0.15);
}
