/* ============================================================
   EmberBet Casino – Custom CSS
   Bohemian Blaze Theme: Amber-Gold / Ruby / Dark Polished
============================================================ */

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

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

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

/* --- Typography Helpers --- */
a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ============================================================
   Navigation
============================================================ */
.nav-link {
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover {
  color: #fbbf24;
  background-color: rgba(251,191,36,0.08);
}

.mobile-nav-link {
  display: block;
  color: #d1d5db;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mobile-nav-link:hover {
  color: #fbbf24;
  background-color: rgba(251,191,36,0.1);
}

/* Burger Button Lines */
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fbbf24;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ============================================================
   Buttons
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #e8192c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(232,25,44,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,25,44,0.5);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #e8192c 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(232,25,44,0.5);
  letter-spacing: 0.01em;
}
.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(232,25,44,0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.95rem 2.25rem;
  border-radius: 0.75rem;
  border: 2px solid #fbbf24;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-hero-secondary:hover {
  background-color: #fbbf24;
  color: #0d0a08;
  transform: translateY(-2px);
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #e8192c);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease;
}
.btn-game:hover {
  transform: scale(1.05);
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #e8192c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(232,25,44,0.3);
}
.btn-promo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ============================================================
   Hero Section
============================================================ */
.hero-section {
  position: relative;
}

.bonus-badge {
  background: linear-gradient(135deg, rgba(26,20,16,0.95) 0%, rgba(51,40,32,0.95) 100%);
  border: 2px solid rgba(251,191,36,0.5);
  box-shadow: 0 0 40px rgba(251,191,36,0.15), inset 0 0 30px rgba(232,25,44,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Ember Spark Particles */
.ember-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 40%, transparent 70%);
  animation: ember-float linear infinite;
  opacity: 0;
}

.spark:nth-child(1)  { width: 6px; height: 6px; left: 10%; animation-duration: 8s;  animation-delay: 0s;   }
.spark:nth-child(2)  { width: 4px; height: 4px; left: 25%; animation-duration: 10s; animation-delay: 1.5s; }
.spark:nth-child(3)  { width: 8px; height: 8px; left: 40%; animation-duration: 7s;  animation-delay: 3s;   }
.spark:nth-child(4)  { width: 5px; height: 5px; left: 55%; animation-duration: 9s;  animation-delay: 0.8s; }
.spark:nth-child(5)  { width: 6px; height: 6px; left: 68%; animation-duration: 11s; animation-delay: 2s;   }
.spark:nth-child(6)  { width: 4px; height: 4px; left: 80%; animation-duration: 6s;  animation-delay: 4s;   }
.spark:nth-child(7)  { width: 7px; height: 7px; left: 88%; animation-duration: 8.5s;animation-delay: 1s;   }
.spark:nth-child(8)  { width: 3px; height: 3px; left: 5%;  animation-duration: 12s; animation-delay: 5s;   }

@keyframes ember-float {
  0%   { transform: translateY(100vh) translateX(0) scale(0.5); opacity: 0; }
  10%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-80px) translateX(30px) scale(1.2); opacity: 0; }
}

/* ============================================================
   Section Helpers
============================================================ */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(232,25,44,0.15));
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* ============================================================
   Review Cards
============================================================ */
.review-card {
  background: linear-gradient(145deg, #1a1410 0%, #261e18 100%);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  border-color: rgba(251,191,36,0.35);
  box-shadow: 0 4px 30px rgba(251,191,36,0.08);
}

/* ============================================================
   Provider Word Cloud
============================================================ */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.provider-tag {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(251,191,36,0.2);
  color: #d1d5db;
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: default;
}
.provider-tag:hover {
  background-color: rgba(251,191,36,0.12);
  color: #fbbf24;
}

/* ============================================================
   Step Cards
============================================================ */
.step-card {
  position: relative;
  background: linear-gradient(145deg, #1a1410 0%, #261e18 100%);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.step-card:hover {
  border-color: rgba(251,191,36,0.4);
  transform: translateY(-4px);
}

.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #e8192c);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(232,25,44,0.4);
}

/* ============================================================
   Game Cards
============================================================ */
.game-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1a1410;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.15);
}

.game-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #261e18;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.game-card:hover .game-img {
  transform: scale(1.06);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,10,8,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.game-card:hover .game-overlay {
  opacity: 1;
}

.game-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Marquee Strip
============================================================ */
.marquee-wrapper {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,20,16,0.9), rgba(38,30,24,0.9));
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 0.75rem;
  padding: 0.85rem 0;
}

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

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

.marquee-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d1d5db;
  flex-shrink: 0;
}

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

/* ============================================================
   Promo Cards
============================================================ */
.promo-card {
  background: linear-gradient(145deg, #1a1410 0%, #261e18 100%);
  border: 1px solid rgba(251,191,36,0.12);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-card:hover {
  border-color: rgba(251,191,36,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.promo-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FAQ
============================================================ */
.faq-item {
  background: linear-gradient(145deg, #1a1410 0%, #261e18 100%);
  border: 1px solid rgba(251,191,36,0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(251,191,36,0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: #fbbf24;
}

.faq-icon {
  font-size: 0.5rem;
  color: #fbbf24;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer p {
  padding-bottom: 1.1rem;
}

/* ============================================================
   Footer Links
============================================================ */
.footer-link {
  color: #9ca3af;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #fbbf24;
}

/* ============================================================
   Table Scrolling
============================================================ */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

td, th {
  word-break: break-word;
}

.table-payment {
  min-width: 680px;
  width: 100%;
}

.table-payment th {
  white-space: nowrap;
}

/* ============================================================
   Prose Styling (single pages)
============================================================ */
.prose-casino {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 1rem;
  max-width: none;
}

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

.prose-casino h2 {
  color: #fbbf24;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(251,191,36,0.2);
  padding-bottom: 0.4rem;
}

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

.prose-casino p {
  margin-bottom: 1.1rem;
  color: #d1d5db;
}

.prose-casino a {
  color: #f59e0b;
  text-decoration: underline;
}
.prose-casino a:hover {
  color: #fbbf24;
}

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

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

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.prose-casino table th {
  background: #261e18;
  color: #fbbf24;
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(251,191,36,0.3);
}

.prose-casino table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d1d5db;
}

.prose-casino table tr:hover td {
  background: rgba(255,255,255,0.03);
}

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

.prose-casino code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #fbbf24;
}

.prose-casino pre {
  background: #1a1410;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* 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;
}

/* ============================================================
   Parallax Helper (CSS-only subtle parallax on hero)
============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-section > div:first-child {
    will-change: transform;
  }
}

/* ============================================================
   Responsive Utilities
============================================================ */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.6rem;
  }
  .bonus-badge {
    padding: 1.25rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
  .marquee-track {
    animation-duration: 20s;
  }
}

@media (max-width: 1024px) {
  .game-title {
    font-size: 0.75rem;
  }
}

/* ============================================================
   Scrollbar Styling (optional, Webkit)
============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #1a1410;
}
::-webkit-scrollbar-thumb {
  background: #4d3c2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}
