/* =============================================================
   VikingsCasino – custom.css
   Arctic Raid Theme: Icy Blue, Silver, Dark Fjord
   ============================================================= */

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

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

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------
   Typography
   --------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}

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

/* ---------------------------------------------------------------
   Table Scrolling
   --------------------------------------------------------------- */

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

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

table th,
table td {
  word-break: normal;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Prose Casino – Rich Content Styles
   --------------------------------------------------------------- */

.prose-casino {
  color: #b0bec5;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.75;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; color: #4fc3f7; }
.prose-casino h3 { font-size: 1.25rem; color: #b0bec5; }

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

.prose-casino a {
  color: #4fc3f7;
  text-decoration: underline;
  text-decoration-color: #4fc3f740;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose-casino a:hover {
  color: #00e5ff;
  text-decoration-color: #00e5ff80;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
  color: #b0bec5;
}

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

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

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

.prose-casino em {
  color: #4fc3f7;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 3px solid #4fc3f7;
  padding-left: 1rem;
  color: #90caf9;
  font-style: italic;
  margin: 1.5em 0;
  background: #0d163040;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1a3a6b;
  margin: 2em 0;
}

.prose-casino code {
  background: #0d1630;
  color: #4fc3f7;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  border: 1px solid #1a3a6b;
}

.prose-casino pre {
  background: #0d1630;
  border: 1px solid #1a3a6b;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875em;
}

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

.prose-casino table th {
  background: #1a3a6b;
  color: #4fc3f7;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 2px solid #4fc3f740;
}

.prose-casino table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #1a3a6b60;
  color: #b0bec5;
}

.prose-casino table tr:nth-child(even) td {
  background: #0d163040;
}

.prose-casino table tr:hover td {
  background: #1a3a6b30;
}

/* ---------------------------------------------------------------
   Animations
   --------------------------------------------------------------- */

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

.marquee-track {
  animation: marquee 32s linear infinite;
  will-change: transform;
}

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

/* Parallax hero --  handled via background-attachment: fixed in HTML */

/* Pulse glow on bonus badge */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.2), 0 0 40px rgba(79, 195, 247, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.4), 0 0 60px rgba(79, 195, 247, 0.2);
  }
}

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

/* Float animation for CTA */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.cta-primary {
  animation: float 3.5s ease-in-out infinite;
}

.cta-primary:hover {
  animation: none;
  transform: scale(1.05);
}

/* Shimmer on provider tags */
@keyframes shimmer {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

.provider-tag {
  animation: shimmer 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}

/* Fade-in-up for review cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card,
.promo-card,
.step-card {
  animation: fadeInUp 0.6s ease-out both;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.promo-card:nth-child(1)  { animation-delay: 0.1s; }
.promo-card:nth-child(2)  { animation-delay: 0.2s; }
.promo-card:nth-child(3)  { animation-delay: 0.3s; }
.step-card:nth-child(1)   { animation-delay: 0.1s; }
.step-card:nth-child(2)   { animation-delay: 0.25s; }
.step-card:nth-child(3)   { animation-delay: 0.4s; }

/* Game card hover shimmer border */
.game-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* Games strip – mobile scroll, desktop grid */
.games-strip-wrapper {
  max-width: 100%;
}

.games-strip {
  scrollbar-width: thin;
  scrollbar-color: #4fc3f740 #0d1630;
}

.games-strip::-webkit-scrollbar {
  height: 5px;
}

.games-strip::-webkit-scrollbar-track {
  background: #0d1630;
  border-radius: 10px;
}

.games-strip::-webkit-scrollbar-thumb {
  background: #4fc3f740;
  border-radius: 10px;
}

.games-strip::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}

@media (min-width: 1024px) {
  .games-strip {
    scrollbar-width: none;
  }

  .games-strip::-webkit-scrollbar {
    display: none;
  }

  .game-card {
    display: flex;
    flex-direction: column;
  }

  .game-card > div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .game-card > div:last-child a {
    margin-top: auto;
  }
}

/* ---------------------------------------------------------------
   Navigation
   --------------------------------------------------------------- */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #4fc3f7;
  transition: left 0.25s ease, right 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0.75rem;
  right: 0.75rem;
}

/* Sticky header shadow enhancement */
#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(13, 22, 48, 0.95);
}

/* ---------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------- */

.hero-section {
  min-height: 100vh;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll !important;
    align-items: flex-start;
  }

  .hero-section > .relative.z-10 {
    padding-top: 6.5rem;
  }

  .hero-section > div:first-child {
    background-attachment: scroll !important;
  }
}

/* ---------------------------------------------------------------
   FAQ Toggle
   --------------------------------------------------------------- */

.faq-answer {
  transition: all 0.3s ease;
}

.faq-btn[aria-expanded='true'] .fa-circle {
  transform: rotate(45deg);
  color: #00e5ff;
}

.faq-btn[aria-expanded='true'] {
  background-color: rgba(26, 58, 107, 0.3);
}

/* ---------------------------------------------------------------
   Burger menu lines
   --------------------------------------------------------------- */

.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1023px) {
  .games-strip-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem 1.5rem;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

/* ---------------------------------------------------------------
   Rune SVG background animation
   --------------------------------------------------------------- */

@keyframes runeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
  50%       { transform: translateY(-12px) rotate(3deg); opacity: 0.14; }
}

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */

.max-w-site {
  max-width: 1440px;
}

/* Ensure all direct tables in any context are scrollable */
div:not(.overflow-x-auto) > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
