/* =============================================================
   ZlatoBet Casino – Custom CSS
   Stahl Crown Theme: Graphite & Molten Gold
   ============================================================= */

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

body {
  overflow-x: hidden;
  background-color: #0f0f0f;
  color: #c0c8d0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  word-break: break-word;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #f5d98b;
  word-break: break-word;
}

a {
  color: #e8c04a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #f5d98b;
}

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

/* ---- Sticky Header ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---- Navigation ---- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e8c04a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- CTA Buttons ---- */
.cta-btn {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}

.cta-btn-primary {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  animation: pulse-gold 2.5s ease-in-out infinite;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.5);
  animation: none;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(212, 160, 23, 0); }
}

/* ---- Hero Parallax ---- */
.hero-parallax {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
  }
}

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

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 160, 23, 0.2); }
  50% { box-shadow: 0 0 35px rgba(212, 160, 23, 0.6), 0 0 60px rgba(212, 160, 23, 0.2); }
}

/* ---- Step Cards ---- */
.step-card {
  overflow: visible;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-badge {
  border: 3px solid #0f0f0f;
  line-height: 1;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.15);
}

/* ---- Promo Cards ---- */
.promo-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #d4a017;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.15);
}

/* ---- Game Cards ---- */
.game-card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.2);
}

/* ---- Marquee ---- */
.marquee-wrap {
  overflow: hidden;
  position: relative;
}

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

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

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

/* ---- Review Blocks ---- */
.review-block {
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.1);
}

/* ---- Provider Word Cloud ---- */
.provider-tag {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background-color: #d4a017;
  color: #0f0f0f;
  border-color: #d4a017;
}

/* ---- FAQ ---- */
.faq-question {
  cursor: pointer;
  user-select: none;
}

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

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.1);
}

/* ---- Tables ---- */
table {
  width: 100%;
  border-collapse: collapse;
  word-break: break-word;
}

thead th {
  background-color: #222222;
  color: #e8c04a;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #2e2e2e;
}

tbody td {
  padding: 0.65rem 1rem;
  border: 1px solid #2e2e2e;
  color: #c0c8d0;
}

tbody tr:hover {
  background-color: #222222;
}

/* ---- Prose Casino ---- */
.prose-casino {
  color: #c0c8d0;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  color: #e8c04a;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.prose-casino h2 {
  color: #e8c04a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #2e2e2e;
  padding-bottom: 0.4rem;
}

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

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

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

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

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

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

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

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

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

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

.prose-casino code {
  background: #1a1a1a;
  color: #e8c04a;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #1a1a1a;
  color: #c0c8d0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* Prose table scrolling */
.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;
  word-break: break-word;
}

.prose-casino thead th {
  background-color: #222222;
  color: #e8c04a;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #2e2e2e;
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  border: 1px solid #2e2e2e;
  color: #c0c8d0;
}

.prose-casino tbody tr:hover {
  background-color: #1a1a1a;
}

/* ---- Burger Menu ---- */
#mobile-menu.flex {
  display: flex;
}

.burger-bar {
  transition: transform 0.25s, opacity 0.25s;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* ---- Selection ---- */
::selection {
  background: rgba(212, 160, 23, 0.35);
  color: #f5d98b;
}

/* ---- Animations: Fade In ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ---- Shimmer Effect ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, #222 25%, #3a3a3a 50%, #222 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ---- Gold Glow ---- */
.gold-glow {
  text-shadow: 0 0 12px rgba(212, 160, 23, 0.6), 0 0 30px rgba(212, 160, 23, 0.3);
}

/* ---- Steel Separator ---- */
.steel-sep {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #4a5a66, transparent);
  margin: 2rem 0;
}

/* ---- Responsive Images ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Utility: Overflow Scroll on Tables ---- */
.prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0;
  border-radius: 0.5rem;
}

.prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

.payment-table-wrap {
  width: 100%;
  border: 1px solid #2e2e2e;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #1a1a1a;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9375rem;
}

.payment-table thead th {
  background-color: #222222;
  color: #e8c04a;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid #3a3a3a;
}

.payment-table tbody td {
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 1px solid #2e2e2e;
  color: #c0c8d0;
  vertical-align: middle;
}

.payment-table tbody tr:last-child td {
  border-bottom: none;
}

.payment-table tbody tr:hover {
  background-color: #222222;
}

.payment-col-method { width: 28%; }
.payment-col-min { width: 16%; }
.payment-col-max { width: 18%; }
.payment-col-time { width: 20%; }
.payment-col-fee { width: 18%; }

@media (max-width: 767px) {
  .payment-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 0.5rem;
  }

  .payment-table {
    width: auto;
    min-width: 36rem;
    table-layout: auto;
    font-size: 0.875rem;
  }

  .payment-table thead th,
  .payment-table tbody td {
    padding: 0.75rem 0.875rem;
    white-space: nowrap;
  }
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ---- Focus Styles ---- */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Print ---- */
@media print {
  #site-header, footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
