/* ==========================================================================
   ZlatoBet Casino – Custom CSS
   Golden Crown Theme: rich gold, ruby accents, dark polished backdrop
   ========================================================================== */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.font-display {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}


/* --------------------------------------------------------------------------
   Color Variables
   -------------------------------------------------------------------------- */
:root {
  --gold-400: #ffd700;
  --gold-300: #ffe066;
  --gold-500: #f0c000;
  --ruby-400: #e8002d;
  --ruby-600: #9b001e;
  --dark-500: #1e1e1e;
  --dark-600: #181818;
  --dark-700: #121212;
  --dark-800: #0d0d0d;
  --dark-900: #080808;
}


/* --------------------------------------------------------------------------
   Royal Pattern Background
   -------------------------------------------------------------------------- */
.royal-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


/* --------------------------------------------------------------------------
   CTA Buttons
   -------------------------------------------------------------------------- */
.cta-primary {
  background: linear-gradient(135deg, #ffd700 0%, #f0a500 50%, #ffd700 100%);
  background-size: 200% 200%;
  color: #080808;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}

.cta-primary:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.55);
  color: #080808;
}

.cta-primary:active {
  transform: translateY(0) scale(0.98);
}

.cta-secondary {
  background: transparent;
  color: #ffd700;
  font-weight: 700;
  border: 2px solid #ffd700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-secondary:hover {
  background: rgba(255, 215, 0, 0.12);
  color: #ffe066;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}


/* --------------------------------------------------------------------------
   Bonus Badge Box
   -------------------------------------------------------------------------- */
.bonus-badge-box {
  background: linear-gradient(135deg, rgba(26,18,0,0.95) 0%, rgba(15,10,0,0.98) 100%);
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 215, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.bonus-badge-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    rgba(255, 215, 0, 0.06) 60deg,
    transparent 120deg
  );
  animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* --------------------------------------------------------------------------
   Hero Background
   -------------------------------------------------------------------------- */
.hero-bg {
  background-color: #080808;
}


/* --------------------------------------------------------------------------
   Promo Cards
   -------------------------------------------------------------------------- */
.promo-card {
  background: linear-gradient(135deg, rgba(30,22,4,0.9) 0%, rgba(18,12,0,0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.15);
}


/* --------------------------------------------------------------------------
   Review Blocks
   -------------------------------------------------------------------------- */
.review-block {
  background: linear-gradient(135deg, rgba(20,15,2,0.9) 0%, rgba(12,8,0,0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}


/* --------------------------------------------------------------------------
   Step Cards
   -------------------------------------------------------------------------- */
.step-card {
  background: linear-gradient(135deg, rgba(25,18,2,0.9) 0%, rgba(15,10,0,0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.step-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 36px rgba(255, 215, 0, 0.12);
  transform: translateY(-4px);
}

.step-badge {
  background: linear-gradient(135deg, #ffd700 0%, #f0a500 100%);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  color: #080808;
}


/* --------------------------------------------------------------------------
   Game Cards
   -------------------------------------------------------------------------- */
.game-card {
  background: linear-gradient(180deg, rgba(20,15,2,0.8) 0%, rgba(12,8,0,0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.18);
  transform: translateY(-4px);
}


/* --------------------------------------------------------------------------
   Marquee / Scrolling Strip
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

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

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

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


/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-item {
  background: linear-gradient(135deg, rgba(22,16,2,0.9) 0%, rgba(14,9,0,0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

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

.faq-question:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   Word Cloud / Provider Tags
   -------------------------------------------------------------------------- */
.provider-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

.provider-tag:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  text-decoration: none;
}

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

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


/* --------------------------------------------------------------------------
   Burger Button
   -------------------------------------------------------------------------- */
.burger-btn {
  -webkit-tap-highlight-color: transparent;
}

.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* --------------------------------------------------------------------------
   Parallax Utility
   -------------------------------------------------------------------------- */
.parallax-bg {
  will-change: transform;
  transform: translateZ(0);
}


/* --------------------------------------------------------------------------
   Tables: Scrollable
   -------------------------------------------------------------------------- */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  border-collapse: collapse;
  width: 100%;
}


/* --------------------------------------------------------------------------
   Prose Casino Styles
   -------------------------------------------------------------------------- */
.prose-casino {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; }
.prose-casino h3 { font-size: 1.3rem; }
.prose-casino h4 { font-size: 1.1rem; color: #ffe066; }

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

.prose-casino a {
  color: #ffd700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #ffd700;
  padding-left: 1em;
  color: #a0a0a0;
  font-style: italic;
  margin: 1.5em 0;
  background: rgba(255, 215, 0, 0.04);
  border-radius: 0 6px 6px 0;
  padding: 0.75em 1em;
}

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

.prose-casino em {
  color: #ffe066;
}

.prose-casino code {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-casino hr {
  border-color: rgba(255, 215, 0, 0.15);
  margin: 2em 0;
}

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

.prose-casino th {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font-weight: 700;
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 2px solid rgba(255, 215, 0, 0.25);
}

.prose-casino td {
  padding: 0.65em 1em;
  color: #c8c8c8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.prose-casino tr:hover td {
  background: rgba(255, 215, 0, 0.04);
}


/* --------------------------------------------------------------------------
   Mandatory Prose Table Scroll 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;
}


/* --------------------------------------------------------------------------
   Animations: Fade Up
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }


/* --------------------------------------------------------------------------
   Glow Effects
   -------------------------------------------------------------------------- */
.gold-glow {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.2);
}

.ruby-glow {
  text-shadow: 0 0 20px rgba(232, 0, 45, 0.5), 0 0 40px rgba(232, 0, 45, 0.2);
}

.box-glow-gold {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), 0 4px 20px rgba(0,0,0,0.5);
}

.box-glow-ruby {
  box-shadow: 0 0 30px rgba(232, 0, 45, 0.25), 0 4px 20px rgba(0,0,0,0.5);
}


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

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.7);
}


/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(255, 215, 0, 0.25);
  color: #ffffff;
}


/* --------------------------------------------------------------------------
   Responsive Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .bonus-badge-box {
    padding: 1.25rem 1rem;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }

  .promo-card {
    padding: 1.25rem 1rem;
  }

  .review-block {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 1024px) {
  .marquee-track {
    animation-duration: 28s;
  }
}


/* --------------------------------------------------------------------------
   Focus Visible
   -------------------------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .sticky { position: static; }
  .cta-primary, .cta-secondary { display: none; }
}