/* ============================================================
   Playzini Casino – Custom CSS
   Carpathian Spark Theme
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────────── */
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 ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Prose Casino (rich text styling) ───────────────────────── */
.prose-casino {
  color: #9A9AA8;
  line-height: 1.75;
  word-break: break-word;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: #9A9AA8;
}

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

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

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.prose-casino li {
  margin-bottom: 0.5em;
  color: #9A9AA8;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #C0152A;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #9A9AA8;
  font-style: italic;
}

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

/* ── Table scroll wrapper (global) ──────────────────────────── */
.prose-table-scroll {
  max-width: 100%;
}

.prose-casino .prose-table-scroll {
  margin: 1.5em 0;
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.prose-casino .prose-table-scroll table,
.site-table-wrap .site-table {
  margin-top: 0;
  margin-bottom: 0;
}

.site-table-wrap {
  background-color: #0D0D0F;
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.site-table th,
.site-table td {
  vertical-align: middle;
}

.site-table--payments .site-table__col-method {
  width: 26%;
}

.site-table--payments .site-table__col-icon {
  width: 10%;
  text-align: center;
}

.site-table--payments .site-table__col-min,
.site-table--payments .site-table__col-max {
  width: 16%;
}

.site-table--payments .site-table__col-time {
  width: 32%;
}

@media (max-width: 639px) {
  .site-table-wrap:has(.site-table--payments) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .site-table--payments {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .site-table--payments .site-table__col-method,
  .site-table--payments .site-table__col-icon,
  .site-table--payments .site-table__col-min,
  .site-table--payments .site-table__col-max,
  .site-table--payments .site-table__col-time {
    width: auto;
  }

  .site-table__col-icon {
    display: none;
  }

  .site-table--payments th,
  .site-table--payments td {
    white-space: nowrap;
  }
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #F5F0E8;
}

.prose-casino thead tr {
  background-color: #2A2A32;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #D4A017;
  font-weight: 700;
  border-bottom: 2px solid #C0152A;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2A2A32;
  color: #9A9AA8;
}

.prose-casino tbody tr:hover {
  background-color: rgba(192, 21, 42, 0.08);
}

/* Table overflow wrapper – apply this class to any div wrapping a table */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* ── Marquee Animation ──────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #1A1A1F, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #1A1A1F, transparent);
}

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

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

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

/* ── Game Cards ─────────────────────────────────────────────── */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(192, 21, 42, 0.25);
}

/* ── Provider Tags (word cloud) ─────────────────────────────── */
.provider-tag {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.provider-tag:hover {
  transform: scale(1.05);
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-answer {
  animation: faq-open 0.25s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* ── Sticky Header Shadow ────────────────────────────────────── */
#site-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Hero Parallax ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero-parallax {
    background-attachment: fixed;
  }
}

/* ── Gradient Borders ────────────────────────────────────────── */
.border-gradient-gold {
  border-image: linear-gradient(to right, #C0152A, #D4A017, #C0152A) 1;
}

/* ── Pulse Glow (CTA highlight) ──────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(212, 160, 23, 0.15);
  }
}

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

/* ── Scroll indicator bounce ─────────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(-25%) translateX(-50%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%       { transform: translateX(-50%); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* ── Burger menu lines transition ────────────────────────────── */
.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* ── Mountain SVG decoration ─────────────────────────────────── */
.mountain-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Responsive utilities ────────────────────────────────────── */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.5rem; }
  .prose-casino h2 { font-size: 1.25rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

/* ── Card hover lift ─────────────────────────────────────────── */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── Color accent line ───────────────────────────────────────── */
.accent-line {
  height: 3px;
  background: linear-gradient(to right, #C0152A, #D4A017, #C0152A);
  border-radius: 999px;
  margin: 1rem auto;
  width: 60px;
}

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

/* ── Selection color ─────────────────────────────────────────── */
::selection {
  background: rgba(192, 21, 42, 0.4);
  color: #F5F0E8;
}
