/* =============================================================
   MegaFishWins Casino – Custom CSS
   Theme: Kiwi Catch (emerald + aqua on twilight)
   ============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
}

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

/* ---- Typography ---- */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #060d1a;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

a {
  color: #00c9a7;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #00e5ff;
}

/* ---- Max container ---- */
.max-w-container {
  max-width: 1440px;
}

/* ====================================================
   PROSE CASINO – rich content styling
   ==================================================== */

.prose-casino {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.15;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00c9a7;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid #00c9a7;
  padding-left: 0.75rem;
}

.prose-casino h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00e5ff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

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

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

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

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

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

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

.prose-casino a {
  color: #00c9a7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.prose-casino blockquote {
  border-left: 4px solid #00c9a7;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(0,201,167,0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #a5f3fc;
  font-style: italic;
}

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

/* ---- Prose table scroll 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 table base ---- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #102840;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead tr {
  background: #0d2137;
}

.prose-casino th {
  text-align: left;
  padding: 0.65rem 1rem;
  color: #00e5ff;
  font-weight: 700;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.6rem 1rem;
  color: #cbd5e1;
  border-top: 1px solid #0d2137;
}

.prose-casino tbody tr:hover td {
  background: rgba(0,201,167,0.05);
}

/* ---- Code blocks ---- */
.prose-casino code {
  background: #0d2137;
  color: #39ff14;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

.prose-casino pre code {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: #a5f3fc;
}

/* ====================================================
   GLOBAL TABLE OVERFLOW SAFETY
   ==================================================== */
div.overflow-x-auto,
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* Let wide tables expand inside scroll wrappers instead of squeezing */
div.overflow-x-auto > table,
.table-scroll > table,
.prose-table-scroll > table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.table-scroll > table th,
.table-scroll > table td {
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .table-scroll > table {
    min-width: 42rem;
  }

  .table-scroll > table th,
  .table-scroll > table td {
    font-size: 0.8125rem;
  }

  /* Payments table: card layout on mobile */
  #payments .table-scroll {
    overflow-x: visible;
    padding: 0.75rem;
  }

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

  #payments .payments-table thead {
    display: none;
  }

  #payments .payments-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  #payments .payments-table tbody tr {
    display: block;
    padding: 1rem;
    background: #0d2137;
    border: 1px solid #102840;
    border-radius: 0.75rem;
  }

  #payments .payments-table tbody tr:hover td {
    background: transparent;
  }

  #payments .payments-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.45rem 0;
    white-space: normal;
    text-align: right;
  }

  #payments .payments-table td::before {
    content: attr(data-label);
    color: #00e5ff;
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
    max-width: 45%;
  }

  #payments .payments-table td.payment-method-cell {
    display: block;
    padding-top: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #102840;
    text-align: left;
  }

  #payments .payments-table td.payment-method-cell::before {
    display: none;
  }
}

/* ====================================================
   HEADER / NAV
   ==================================================== */

#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.logo-fish-icon {
  filter: drop-shadow(0 0 6px #00c9a7);
}

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

.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ====================================================
   HERO SECTION
   ==================================================== */

.hero-section {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll; /* iOS parallax fix */
  }
}

.bonus-badge {
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 201, 167, 0);
  }
  50% {
    box-shadow: 0 0 30px 6px rgba(0, 201, 167, 0.25);
  }
}

.hero-cta-primary {
  box-shadow: 0 4px 24px rgba(0, 201, 167, 0.4);
}

.hero-cta-primary:hover {
  box-shadow: 0 6px 32px rgba(0, 201, 167, 0.6);
}

/* ====================================================
   MARQUEE / GAME STRIP
   ==================================================== */

.marquee-wrapper {
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

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

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

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

.game-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 201, 167, 0.25);
}

/* ====================================================
   PROMO CARDS
   ==================================================== */

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

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* ====================================================
   STEP CARDS
   ==================================================== */

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
  }
}

.steps-connector {
  position: absolute;
  top: 2.5rem;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, #00c9a7 0%, #06b6d4 50%, #10b981 100%);
  opacity: 0.45;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1rem;
  background: rgba(16, 40, 64, 0.72);
  border: 1px solid rgba(0, 201, 167, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  background: rgba(13, 33, 55, 0.92);
  border-color: rgba(0, 201, 167, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 201, 167, 0.12);
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 201, 167, 0.65), rgba(6, 182, 212, 0.35));
}

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    display: none;
  }
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.step-badge span {
  color: #060d1a;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
}

.step-badge--primary {
  background: linear-gradient(135deg, #00c9a7 0%, #06b6d4 100%);
  box-shadow: 0 10px 24px rgba(0, 201, 167, 0.35);
}

.step-badge--aqua {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.35);
}

.step-badge--emerald {
  background: linear-gradient(135deg, #10b981 0%, #00c9a7 100%);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}

.step-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.step-text {
  flex: 1;
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: 1.25rem;
  border-radius: 9999px;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.18);
  font-size: 1.125rem;
}

.step-icon--primary {
  color: #00c9a7;
}

.step-icon--aqua {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.18);
}

.step-icon--emerald {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}

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

.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.provider-tag {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.08);
  filter: brightness(1.3);
}

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

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

.faq-item:hover {
  border-color: rgba(0, 201, 167, 0.4);
}

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

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

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

/* ====================================================
   FOOTER
   ==================================================== */

.age-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 2px solid rgba(239,68,68,0.4);
  box-shadow: 0 0 12px rgba(239,68,68,0.3);
}

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

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

.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

/* Staggered fade for children */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Parallax shimmer on section headers */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg, #00c9a7 0%, #00e5ff 25%, #39ff14 50%, #00e5ff 75%, #00c9a7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Glow ring on feature badges */
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(0, 201, 167, 0); }
}

.ring-pulse {
  animation: ringPulse 2s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-track {
  background: #060d1a;
}

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

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

/* ====================================================
   SELECTION COLOUR
   ==================================================== */

::selection {
  background: rgba(0, 201, 167, 0.35);
  color: #ffffff;
}

/* ====================================================
   MOBILE-FIRST BREAKPOINT UTILITIES
   ==================================================== */

@media (max-width: 640px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }

  .prose-casino table {
    font-size: 0.78rem;
  }

  .prose-casino th,
  .prose-casino td {
    padding: 0.5rem 0.6rem;
  }
}

@media (max-width: 768px) {
  .hero-section::before {
    opacity: 0.6;
  }
}

/* ====================================================
   LINE-CLAMP UTILITY
   ==================================================== */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================================
   FOCUS STYLES
   ==================================================== */

*:focus-visible {
  outline: 2px solid #00c9a7;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ====================================================
   PRINT
   ==================================================== */

@media print {
  header, footer, .hero-section, .marquee-wrapper {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
