/* ═══════════════════════════════════════════════════════
   Playzini Casino – Custom CSS & Animations
   Target: Hugo v0.128+ with Tailwind CSS CDN
═══════════════════════════════════════════════════════ */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0a0f0d;
  color: #f3f4f6;
}

/* ── Color Variables ── */
:root {
  --emerald:       #10b981;
  --emerald-dark:  #059669;
  --emerald-light: #34d399;
  --ruby:          #e11d48;
  --ruby-dark:     #be123c;
  --gold:          #f59e0b;
  --gold-light:    #fcd34d;
  --dark:          #0a0f0d;
  --dark-card:     #111a14;
  --dark-border:   #1e3a2a;
  --dark-border2:  #243b2f;
}

/* ═══════════════════════════════════════════════════════
   PROSE / TYPOGRAPHY
═══════════════════════════════════════════════════════ */
.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 0.95rem;
  word-break: break-word;
}

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

.prose-casino h1 { font-size: 2rem; margin-top: 0; }
.prose-casino h2 { font-size: 1.5rem; color: var(--emerald-light); }
.prose-casino h3 { font-size: 1.2rem; color: var(--gold); }

.prose-casino p  { margin-bottom: 1.2em; }

.prose-casino a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-casino a:hover { color: var(--emerald-light); }

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.prose-casino li { margin-bottom: 0.5em; }
.prose-casino ul { list-style-type: disc; }
.prose-casino ol { list-style-type: decimal; }

.prose-casino strong { color: #ffffff; font-weight: 700; }
.prose-casino em { color: var(--gold-light); font-style: italic; }

.prose-casino blockquote {
  border-left: 3px solid var(--emerald);
  padding-left: 1em;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: var(--dark-border);
  margin: 2em 0;
}

/* Table scrolling inside prose */
.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;
  font-size: 0.875rem;
}

.prose-casino thead th {
  background: var(--dark-border);
  color: var(--emerald);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.prose-casino tbody tr {
  border-bottom: 1px solid var(--dark-border);
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  color: #d1d5db;
}

.prose-casino tbody tr:hover { background: rgba(30,58,42,0.3); }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  background: rgba(10, 15, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}

.header-logo {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-link {
  color: #9ca3af;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.25s;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { width: 100%; }

.cta-nav {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  box-shadow: 0 0 16px rgba(16,185,129,0.35);
  transition: all 0.25s;
}
.cta-nav:hover {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  box-shadow: 0 0 28px rgba(16,185,129,0.55);
  transform: translateY(-1px);
}

/* Burger button */
.burger-btn {
  background: rgba(16,185,129,0.12);
  border: 1px solid var(--dark-border);
  cursor: pointer;
}
.burger-btn:hover { background: rgba(16,185,129,0.22); }

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

.burger-active .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger-active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  background: rgba(10,15,13,0.98);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover {
  background: rgba(16,185,129,0.1);
  color: #ffffff;
}

.cta-mobile {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  box-shadow: 0 0 14px rgba(16,185,129,0.3);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero-bg {
  background: var(--dark);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,15,13,0.5) 0%,
    rgba(10,15,13,0.7) 50%,
    rgba(10,15,13,0.95) 100%
  );
}

.hero-title {
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

/* Swirl / light trail animations */
.swirl-container { overflow: hidden; }

.swirl {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: swirl-float 10s ease-in-out infinite alternate;
}

.swirl-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald), transparent);
  top: -100px;
  left: -150px;
  animation-duration: 12s;
}
.swirl-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ruby), transparent);
  bottom: -80px;
  right: -100px;
  animation-duration: 15s;
  animation-delay: 2s;
}
.swirl-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: 40%;
  left: 60%;
  animation-duration: 9s;
  animation-delay: 4s;
}

@keyframes swirl-float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.05); }
}

/* Bonus badge */
.bonus-badge {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(245,158,11,0.08));
  border: 2px solid rgba(16,185,129,0.4);
  box-shadow: 0 0 40px rgba(16,185,129,0.15), inset 0 0 30px rgba(16,185,129,0.05);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(16,185,129,0.15); }
  50%       { box-shadow: 0 0 60px rgba(16,185,129,0.30); }
}

/* CTA buttons */
.cta-primary {
  background: linear-gradient(135deg, var(--ruby-dark), var(--ruby));
  box-shadow: 0 4px 24px rgba(225,29,72,0.4);
  transition: all 0.25s;
}
.cta-primary:hover {
  background: linear-gradient(135deg, var(--ruby), #fb7185);
  box-shadow: 0 8px 32px rgba(225,29,72,0.6);
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent;
  border: 2px solid var(--emerald);
  color: var(--emerald);
  transition: all 0.25s;
}
.cta-secondary:hover {
  background: var(--emerald);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.35);
}

/* ═══════════════════════════════════════════════════════
   GAME CARDS
═══════════════════════════════════════════════════════ */
.game-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16,185,129,0.2);
}

.game-card-overlay {
  background: linear-gradient(to top, rgba(10,15,13,0.9) 0%, rgba(10,15,13,0.3) 100%);
}

.cta-mini {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #ffffff;
  transition: all 0.2s;
}
.cta-mini:hover {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   STEP-BY-STEP SECTION
═══════════════════════════════════════════════════════ */
.step-bg-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    var(--emerald) 0px,
    var(--emerald) 1px,
    transparent 1px,
    transparent 40px
  );
}

.step-card {
  background: linear-gradient(135deg, var(--dark-card), rgba(30,58,42,0.3));
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(16,185,129,0.12);
}

.step-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  box-shadow: 0 0 20px rgba(16,185,129,0.4);
}

.step-badge-gold {
  background: linear-gradient(135deg, #d97706, var(--gold));
  box-shadow: 0 0 20px rgba(245,158,11,0.4);
}

.step-badge-ruby {
  background: linear-gradient(135deg, var(--ruby-dark), var(--ruby));
  box-shadow: 0 0 20px rgba(225,29,72,0.4);
}

/* ═══════════════════════════════════════════════════════
   REVIEW SECTION
═══════════════════════════════════════════════════════ */
.review-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.review-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 12px;
}

/* Word cloud */
.word-cloud { align-content: flex-start; }

.wc-tag {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(30,58,42,0.5);
  border: 1px solid var(--dark-border);
  color: #d1d5db;
  transition: all 0.2s;
  cursor: default;
  white-space: nowrap;
}
.wc-tag:hover {
  background: rgba(16,185,129,0.15);
  color: var(--emerald-light);
  border-color: var(--emerald);
}

.wc-sm  { font-size: 0.7rem;  padding: 0.3rem 0.7rem; }
.wc-md  { font-size: 0.85rem; padding: 0.35rem 0.85rem; }
.wc-lg  { font-size: 1rem;   padding: 0.4rem 1rem; }
.wc-xl  { font-size: 1.15rem; padding: 0.45rem 1.15rem; color: var(--emerald-light); }

/* ═══════════════════════════════════════════════════════
   PROMOTIONS
═══════════════════════════════════════════════════════ */
.promo-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.promo-card-featured {
  border-color: rgba(16,185,129,0.5);
  background: linear-gradient(135deg, var(--dark-card), rgba(16,185,129,0.05));
  box-shadow: 0 0 30px rgba(16,185,129,0.08);
}

.promo-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,58,42,0.5);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
}

.cta-promo {
  background: transparent;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  transition: all 0.25s;
}
.cta-promo:hover {
  background: var(--emerald);
  color: #ffffff;
}

.cta-promo-featured {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #ffffff;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.cta-promo-featured:hover {
  box-shadow: 0 8px 24px rgba(16,185,129,0.5);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(16,185,129,0.35); }

.faq-question {
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-question:hover span { color: var(--emerald-light); }

.faq-answer {
  border-top: 1px solid var(--dark-border);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer-logo {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.responsible-block {
  background: rgba(30,58,42,0.3);
  border: 1px solid var(--dark-border);
}

.payment-badge {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: #d1d5db;
}

/* ═══════════════════════════════════════════════════════
   MARQUEE ANIMATION
═══════════════════════════════════════════════════════ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ═══════════════════════════════════════════════════════
   PARALLAX HELPER
═══════════════════════════════════════════════════════ */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════ */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--dark); }
::-webkit-scrollbar-thumb  { background: var(--dark-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-dark); }

/* ═══════════════════════════════════════════════════════
   UTILITY / OVERRIDES
═══════════════════════════════════════════════════════ */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   GLOW EFFECTS
═══════════════════════════════════════════════════════ */
.glow-emerald { box-shadow: 0 0 24px rgba(16,185,129,0.4); }
.glow-ruby    { box-shadow: 0 0 24px rgba(225,29,72,0.4); }
.glow-gold    { box-shadow: 0 0 24px rgba(245,158,11,0.4); }

/* ═══════════════════════════════════════════════════════
   ANIMATION: Float
═══════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════
   ANIMATION: Pulse glow (for badges)
═══════════════════════════════════════════════════════ */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════
   PAYMENTS TABLE (homepage)
═══════════════════════════════════════════════════════ */
.payments-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.payments-table {
  width: 100%;
  min-width: 36rem;
  white-space: nowrap;
}

.payments-table th,
.payments-table td {
  padding: 1rem 1.5rem;
}

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

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

/* ═══════════════════════════════════════════════════════
   RESPONSIVE TABLE WRAPPER (REQUIRED)
═══════════════════════════════════════════════════════ */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0.75rem;
  margin: 1.5em 0;
}
.table-wrap table {
  margin: 0;
}