/* =============================================
   DalerCasino – Custom CSS & Animations
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --color-dark: #0a0f0d;
  --color-darker: #060a07;
  --color-emerald: #0d6e45;
  --color-emerald-light: #15a060;
  --color-emerald-bright: #1ecb78;
  --color-gold: #c9a227;
  --color-gold-light: #e8c14a;
  --color-gold-bright: #f5d76e;
  --color-surface: #111a14;
  --color-surface-2: #162019;
  --color-border: #1e3028;
  --color-text: #e8f0eb;
  --color-text-muted: #8aab95;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-dark);
  color: var(--color-text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ---------- Hero Section ---------- */
.hero-section { position: relative; min-height: 100vh; }

.hero-bg {
  background-attachment: fixed;
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 10, 7, 0.88) 0%,
    rgba(10, 15, 13, 0.75) 50%,
    rgba(13, 110, 69, 0.25) 100%
  );
}

.hero-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(201, 162, 39, 0.03) 30px,
      rgba(201, 162, 39, 0.03) 60px
    );
}

.hero-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(201,162,39,0.2);
  animation: fadeInUp 0.8s ease both;
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  animation: fadeInUp 0.9s ease 0.2s both;
}

.bonus-badge-inner {
  background: linear-gradient(
    135deg,
    rgba(17, 26, 20, 0.95) 0%,
    rgba(22, 32, 25, 0.95) 100%
  );
  border: 1px solid var(--color-gold);
  box-shadow:
    0 0 30px rgba(201, 162, 39, 0.2),
    0 0 60px rgba(201, 162, 39, 0.08),
    inset 0 1px 0 rgba(201, 162, 39, 0.15);
  position: relative;
  overflow: hidden;
}

.bonus-badge-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(201, 162, 39, 0.06) 60deg,
    transparent 120deg
  );
  animation: spin 8s linear infinite;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 50%, var(--color-gold) 100%);
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  background-size: 200% 200%;
  background-position: left center;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
  transform: translateY(-1px);
  color: var(--color-dark);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-gold-light);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
  transform: translateY(-1px);
}

/* ---------- Marquee ---------- */
.marquee-section { background: linear-gradient(90deg, var(--color-emerald) 0%, #0a4f30 100%); }

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

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

/* ---------- Promo Cards ---------- */
.promo-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.15);
  transform: translateY(-3px);
}

.promo-card-featured {
  background: linear-gradient(135deg, rgba(13, 110, 69, 0.2) 0%, var(--color-surface-2) 100%);
  border-color: var(--color-emerald);
  box-shadow: 0 0 20px rgba(13, 110, 69, 0.2);
}

.promo-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Review Blocks ---------- */
.review-block {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.review-block:hover { border-color: var(--color-gold); }

/* ---------- Provider Cloud ---------- */
.provider-tag {
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: default;
  line-height: 1.4;
}

.provider-tag:nth-child(odd) { color: var(--color-emerald-bright); }
.provider-tag:nth-child(even) { color: var(--color-gold-light); }
.provider-tag:nth-child(3n) { color: var(--color-text); }
.provider-tag:hover { color: var(--color-gold-bright) !important; }

/* ---------- Game Cards ---------- */
.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.2);
  transform: translateY(-4px);
}

.game-overlay {
  background: linear-gradient(
    to top,
    rgba(6, 10, 7, 0.95) 0%,
    rgba(6, 10, 7, 0.5) 60%,
    transparent 100%
  );
}

.game-img-wrap {
  background: var(--color-surface-2);
}

.game-img-wrap img { display: block; }

/* ---------- Step Cards ---------- */
.step-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.15);
}

.step-card-featured {
  border-color: var(--color-emerald);
  background: linear-gradient(135deg, rgba(13, 110, 69, 0.15) 0%, var(--color-surface-2) 100%);
  box-shadow: 0 0 25px rgba(13, 110, 69, 0.2);
}

.step-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  font-family: Georgia, serif;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.step-badge-featured {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-bright) 100%);
  box-shadow: 0 4px 15px rgba(30, 203, 120, 0.4);
  color: white;
}
/* ---------- Payments Table ---------- */
.payments-table {
  background: var(--color-surface);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-collapse: separate;
  border-spacing: 0;
}

.payments-table thead tr {
  background: linear-gradient(90deg, var(--color-surface-2) 0%, rgba(13, 110, 69, 0.1) 100%);
  border-bottom: 2px solid var(--color-border);
}

.payments-row:hover { background: rgba(201, 162, 39, 0.04); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: var(--color-gold); }

.faq-btn {
  background: transparent;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.faq-btn:hover { background: rgba(201, 162, 39, 0.05); }
.faq-btn-active { background: rgba(201, 162, 39, 0.08) !important; }

/* ---------- Age Badge (Footer) ---------- */
.age-badge {
  width: 40px;
  height: 40px;
  background: var(--color-emerald);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid var(--color-emerald-bright);
}

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

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 15px rgba(201, 162, 39, 0.3); }
  50% { box-shadow: 0 0 30px rgba(201, 162, 39, 0.6); }
}

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: var(--color-text-muted);
  max-width: 72ch;
  line-height: 1.75;
  width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--color-gold-light);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.25em; }
.prose-casino h3 { font-size: 1.2rem; color: var(--color-emerald-bright); }

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

.prose-casino a {
  color: var(--color-gold-light);
  text-decoration: underline;
  transition: color 0.2s;
}
.prose-casino a:hover { color: var(--color-gold-bright); }

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

/* Scrollable wrapper for Markdown tables only (layouts/_markup/render-table.html) */
.prose-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-bottom: 1.5em;
  touch-action: pan-x pan-y pinch-zoom;
}

.prose-table-scroll:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.prose-casino table {
  /* Wide tables extend past the prose column inside the wrapper only */
  width: auto;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.9em;
}
.prose-casino th {
  background: var(--color-surface-2);
  color: var(--color-gold-light);
  padding: 0.6em 0.8em;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}
.prose-casino td {
  padding: 0.55em 0.8em;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.prose-casino tr:hover td { background: rgba(201, 162, 39, 0.03); }

.prose-casino blockquote {
  border-left: 4px solid var(--color-emerald);
  padding-left: 1em;
  margin-left: 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.prose-casino code {
  background: var(--color-surface-2);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--color-emerald-bright);
}

/* ---------- Parallax utility ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { background-attachment: fixed; }
}
@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-darker); }
::-webkit-scrollbar-thumb { background: var(--color-emerald); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-emerald-bright); }

/* ---------- Responsive Helpers ---------- */
@media (max-width: 640px) {
  .hero-section { min-height: 100dvh; }
  .bonus-badge-inner { padding: 1.25rem; }
}
