/* ============================================================
   VikingsCasino – Custom CSS
   Baltic Raid Theme: Sapphire + Silver + Viking Gold
   ============================================================ */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0a0e1a;
  color: #e8f0f8;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   Prose Casino – Content Styles
   ============================================================ */

.prose-casino {
  color: #c0cfe0;
  max-width: none;
  line-height: 1.75;
  word-break: break-word;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; border-bottom: 2px solid #1a3a7c; padding-bottom: 0.3em; }
.prose-casino h3 { font-size: 1.2rem; color: #d4a843; }

.prose-casino p {
  margin-bottom: 1rem;
  color: #c0cfe0;
}

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

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

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #c0cfe0;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #1a3a7c;
  padding-left: 1rem;
  color: #7ab3e0;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-casino hr {
  border-color: #1a3a7c;
  margin: 2rem 0;
}

/* Table scroll wrapper – mandatory 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;
}

/* General table styles inside prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #c0cfe0;
  background-color: #0d1b3e;
}

.prose-casino thead tr {
  background-color: #1a3a7c;
  color: #ffffff;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(26, 58, 124, 0.35);
}

.prose-casino tbody tr:hover {
  background-color: rgba(44, 62, 107, 0.4);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero-bg {
  position: relative;
  background-color: #0a0e1a;
}

/* Rune overlay – CSS pattern */
.rune-overlay {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(26, 58, 124, 0.04) 0px,
      rgba(26, 58, 124, 0.04) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(74, 126, 218, 0.03) 0px,
      rgba(74, 126, 218, 0.03) 1px,
      transparent 1px,
      transparent 40px
    );
}

/* Bonus badge glow */
.bonus-badge-glow {
  box-shadow:
    0 0 20px rgba(212, 168, 67, 0.35),
    0 0 60px rgba(26, 58, 124, 0.5),
    inset 0 0 30px rgba(26, 58, 124, 0.2);
}

/* Pulsing CTA button */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.6); }
  50%       { box-shadow: 0 0 0 14px rgba(212, 168, 67, 0); }
}

.pulse-cta {
  animation: pulse-cta 2.2s ease-in-out infinite;
}

/* ============================================================
   Marquee Animation
   ============================================================ */

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

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
  width: max-content;
}

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

/* ============================================================
   Parallax-inspired depth effect on sections
   ============================================================ */

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ============================================================
   Step Cards
   ============================================================ */

.step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 126, 218, 0.3);
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4a843, #e8c96a);
  color: #0a0e1a;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.6);
  z-index: 10;
}

/* ============================================================
   Game Cards
   ============================================================ */

.game-card {
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 126, 218, 0.3);
}

/* ============================================================
   Provider Word Cloud Tags
   ============================================================ */

.provider-tag {
  display: inline-block;
  background-color: rgba(26, 58, 124, 0.5);
  border: 1px solid rgba(74, 126, 218, 0.4);
  color: #c0cfe0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background-color: rgba(74, 126, 218, 0.4);
  border-color: #d4a843;
  color: #ffffff;
}

/* ============================================================
   Promo Cards
   ============================================================ */

.promo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.2);
  border-color: rgba(212, 168, 67, 0.5);
}

/* ============================================================
   FAQ Accordion
   ============================================================ */

.faq-item {
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(74, 126, 218, 0.2);
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* ============================================================
   Sticky Header Blur
   ============================================================ */

header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */

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

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

::-webkit-scrollbar-thumb {
  background: #1a3a7c;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a7eda;
}

/* ============================================================
   Utility Overrides
   ============================================================ */

/* Ensure tables never break layout */
div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  word-break: normal;
}

td, th {
  word-break: break-word;
}

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */

@media (max-width: 640px) {
  .step-badge {
    top: -14px;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .marquee-track {
    animation-duration: 16s;
  }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .pulse-cta {
    animation: none;
  }

  .step-card:hover,
  .game-card:hover,
  .promo-card:hover {
    transform: none;
  }
}
