/* ═══════════════════════════════════════════════════════════════
   FortaWin Casino – Custom CSS
   Theme: Stahl Fortune (Graphite + Electric Blue)
═══════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0d0d0f;
  color: #e8eaf0;
  overflow-x: hidden;
}

/* ═══════════════════════════════
   Steel Grid Background Pattern
═══════════════════════════════ */
.steel-grid-bg {
  background-image:
    linear-gradient(rgba(30,144,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ═══════════════════════════════
   Hero Section
═══════════════════════════════ */
.hero-section {
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,15,0.0) 0%,
    rgba(13,13,15,0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════
   Bonus Badge Pulse
═══════════════════════════════ */
.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0.0); }
  50% { box-shadow: 0 0 32px 8px rgba(30,144,255,0.25); }
}

/* ═══════════════════════════════
   CTA Buttons
═══════════════════════════════ */
.cta-btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cta-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.12);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  pointer-events: none;
}

.cta-btn-primary:hover::after {
  left: 130%;
}

.cta-btn-secondary {
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════
   Promo Cards
═══════════════════════════════ */
.promo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ═══════════════════════════════
   Step Cards
═══════════════════════════════ */
.step-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-badge {
  position: relative;
  animation: stepGlow 4s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 12px 2px rgba(30,144,255,0.3); }
  50% { box-shadow: 0 0 24px 6px rgba(30,144,255,0.6); }
}

/* ═══════════════════════════════
   Game Strip
═══════════════════════════════ */
.game-strip-wrapper {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #1e90ff #1a1c22;
}

.game-strip-wrapper::-webkit-scrollbar {
  height: 4px;
}

.game-strip-wrapper::-webkit-scrollbar-track {
  background: #1a1c22;
  border-radius: 2px;
}

.game-strip-wrapper::-webkit-scrollbar-thumb {
  background: #1e90ff;
  border-radius: 2px;
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px 4px rgba(30,144,255,0.3);
}

/* ═══════════════════════════════
   Review Blocks
═══════════════════════════════ */
.review-block {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-block:hover {
  border-color: rgba(30,144,255,0.5);
  box-shadow: 0 0 24px rgba(30,144,255,0.1);
}

/* ═══════════════════════════════
   Word Cloud
═══════════════════════════════ */
.word-cloud span {
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  display: inline-block;
}

.word-cloud span:hover {
  color: #1e90ff !important;
  transform: scale(1.1);
}

/* ═══════════════════════════════
   Payments & data tables (horizontal scroll on mobile)
═══════════════════════════════ */
.table-scroll-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll-wrap table,
.payments-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.table-scroll-wrap th,
.table-scroll-wrap td,
.payments-table th,
.payments-table td {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .payments-table {
    font-size: 0.8125rem;
  }

  .payments-table th,
  .payments-table td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Default tables outside scroll wrappers */
table:not(.payments-table) {
  width: 100%;
  border-collapse: collapse;
}

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

.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

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

/* ═══════════════════════════════
   Parallax Effect
═══════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
  }
}

/* ═══════════════════════════════
   FAQ Accordion
═══════════════════════════════ */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(30,144,255,0.4);
}

.faq-icon {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.faq-answer {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   Navbar
═══════════════════════════════ */
#site-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #1e90ff;
  border-radius: 1px;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ═══════════════════════════════
   Burger Menu Lines
═══════════════════════════════ */
#burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════
   Prose Casino (Article Styling)
═══════════════════════════════ */
.prose-casino {
  color: #c0c8d8;
  line-height: 1.75;
  font-size: 0.97rem;
  max-width: 100%;
}

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

.prose-casino h1 { font-size: 2em; }
.prose-casino h2 { font-size: 1.5em; color: #4dabff; }
.prose-casino h3 { font-size: 1.2em; color: #1e90ff; }

.prose-casino p {
  margin-bottom: 1em;
  color: #8892a4;
}

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

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

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

.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: #c0c8d8;
  font-weight: 600;
}

.prose-casino blockquote {
  border-left: 3px solid #1e90ff;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #8892a4;
  font-style: italic;
}

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

.prose-casino th {
  background: #2a2d38;
  color: #c0c8d8;
  text-align: left;
  padding: 0.6em 1em;
  font-weight: 600;
  border-bottom: 2px solid #1e90ff;
}

.prose-casino td {
  padding: 0.6em 1em;
  border-bottom: 1px solid rgba(42,45,56,0.8);
  color: #8892a4;
}

.prose-casino tr:hover td {
  background: rgba(42,45,56,0.4);
}

.prose-casino code {
  background: #1a1c22;
  color: #4dabff;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #1a1c22;
  border: 1px solid #2a2d38;
  border-radius: 8px;
  padding: 1em 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* ═══════════════════════════════
   Mandatory Prose Table Scroll
═══════════════════════════════ */
.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 {
  width: max-content;
  min-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.prose-casino .prose-table-scroll th,
.prose-casino .prose-table-scroll td {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

/* ═══════════════════════════════
   Responsive Utilities
═══════════════════════════════ */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .bonus-badge {
    width: 100%;
  }
}

/* ═══════════════════════════════
   Scrollbar Global
═══════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1c22;
}

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

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

/* ═══════════════════════════════
   Utility: Blue Glow
═══════════════════════════════ */
.glow-blue {
  box-shadow: 0 0 24px 4px rgba(30,144,255,0.35);
}

.text-glow-blue {
  text-shadow: 0 0 12px rgba(30,144,255,0.6);
}

/* ═══════════════════════════════
   SVG Pattern Dividers
═══════════════════════════════ */
.divider-wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%231a1c22' d='M0,20 C360,40 1080,0 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
  height: 40px;
}

/* ═══════════════════════════════
   Animation: Parallax Scroll JS Hook
═══════════════════════════════ */
.parallax-hero {
  transform: translateY(0);
  transition: transform 0.05s linear;
  will-change: transform;
}

/* Parallax via JS */
/* (triggered by scroll event listener in pages) */