/* =====================================================
   BitGuruzCasino – Custom CSS
   Theme: Prime Nexus (Emerald + Gold on Dark)
   ===================================================== */

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

*, *::before, *::after {
  box-sizing: inherit;
  word-break: break-word;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0a0f0d;
  color: #e8f5e0;
  overflow-x: hidden;
}

/* --- Blockchain Pattern Background ------------------ */
.blockchain-pattern {
  background-image:
    linear-gradient(rgba(26,107,58,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,58,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- Hero Background -------------------------------- */
.hero-bg {
  background-attachment: fixed;
  will-change: transform;
}

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

/* --- Buttons ---------------------------------------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #f4c430 0%, #c9a227 100%);
  color: #0a0f0d;
  font-weight: 800;
  border-radius: 0.625rem;
  padding: 0.625rem 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244,196,48,0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #f4c430;
  font-weight: 700;
  border-radius: 0.625rem;
  padding: 0.625rem 1.5rem;
  text-decoration: none;
  border: 2px solid #f4c430;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  background: #f4c430;
  color: #0a0f0d;
  transform: translateY(-2px);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

/* --- Nav Links -------------------------------------- */
.nav-link {
  display: inline-block;
  color: #8aad8f;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #f4c430;
  background: rgba(244, 196, 48, 0.08);
}

.mobile-nav-link {
  display: block;
  color: #e8f5e0;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(26, 107, 58, 0.2);
  color: #f4c430;
  border-left-color: #f4c430;
}

/* --- Footer Links ----------------------------------- */
.footer-link {
  color: #8aad8f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #f4c430;
}

/* --- Section Labels & Titles ------------------------ */
.section-label {
  display: inline-block;
  background: rgba(26, 107, 58, 0.25);
  border: 1px solid #1a6b3a;
  color: #22c55e;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.section-title span {
  color: #f4c430;
}

/* --- Review Cards ----------------------------------- */
.review-card {
  background: #111a14;
  border: 1px solid #1e3a26;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 40px rgba(0, 200, 83, 0.12);
}

.review-card-header {
  background: linear-gradient(135deg, #1a6b3a 0%, #0f3d22 100%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.review-card-body {
  padding: 1.25rem;
  flex: 1;
}

/* --- Provider Word Cloud ---------------------------- */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.provider-tag {
  color: #22c55e;
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: default;
  line-height: 1.5;
}

.provider-tag:nth-child(odd) {
  color: #f4c430;
}

.provider-tag:hover {
  color: #ffffff;
}

/* --- Promo Cards ------------------------------------ */
.promo-card {
  background: #111a14;
  border: 1px solid #1e3a26;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(244, 196, 48, 0.12);
}

.promo-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.25);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* --- Step Cards ------------------------------------- */
.step-card {
  background: #111a14;
  border: 1px solid #1e3a26;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 200, 83, 0.12);
}

.step-badge {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #f4c430 0%, #c9a227 100%);
  color: #0a0f0d;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.4);
  z-index: 10;
}

.step-icon {
  margin: 0.5rem auto 1rem;
  width: 3rem;
  height: 3rem;
  background: rgba(26, 107, 58, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Game Cards ------------------------------------- */
.game-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111a14;
  border: 1px solid #1e3a26;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(244, 196, 48, 0.15);
}

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

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card:hover .game-img {
  transform: scale(1.06);
}

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

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 0.625rem 0.75rem;
}

.game-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #e8f5e0;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 0.6875rem;
  color: #8aad8f;
}

/* --- FAQ -------------------------------------------- */
.faq-item {
  background: #111a14;
  border: 1px solid #1e3a26;
  border-radius: 0.875rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #e8f5e0;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(26, 107, 58, 0.15);
}

.faq-icon {
  color: #f4c430;
  font-size: 0.625rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  padding-bottom: 1.125rem;
}

.faq-answer p {
  color: #8aad8f;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Marquee ---------------------------------------- */
.marquee-track {
  animation: marquee-scroll 35s linear infinite;
  display: flex;
  gap: 2.5rem;
  width: max-content;
}

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Animate pulse slow ----------------------------- */
.animate-pulse-slow {
  animation: pulseSlow 2.5s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* --- Prose Styling ---------------------------------- */
.prose-casino {
  color: #e8f5e0;
  max-width: none;
}

.prose-casino h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 0;
}

.prose-casino h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #f4c430;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e3a26;
}

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

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e8f5e0;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  color: #8aad8f;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-casino a {
  color: #f4c430;
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

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

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

.prose-casino li {
  margin-bottom: 0.375rem;
  line-height: 1.7;
}

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

.prose-casino code {
  background: #162019;
  color: #22c55e;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #060a08;
  border: 1px solid #1e3a26;
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.prose-casino hr {
  border-color: #1e3a26;
  margin: 2rem 0;
}

/* --- Prose Table Scroll ----------------------------- */
.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.9rem;
  color: #e8f5e0;
}

.prose-casino thead tr {
  background: rgba(26, 107, 58, 0.25);
}

.prose-casino th {
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-weight: 700;
  color: #f4c430;
  border-bottom: 1px solid #1e3a26;
}

.prose-casino td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #1e3a26;
  color: #8aad8f;
}

.prose-casino tr:last-child td {
  border-bottom: none;
}

.prose-casino tr:hover td {
  background: rgba(26, 107, 58, 0.1);
}

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

::-webkit-scrollbar-track {
  background: #0a0f0d;
}

::-webkit-scrollbar-thumb {
  background: #1e3a26;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a6b3a;
}

/* --- Utility ---------------------------------------- */
.max-w-site {
  max-width: 1440px;
}

/* Ensure all tables are scrollable on mobile */
table {
  min-width: 100%;
}

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

/* --- Responsive Typography -------------------------- */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }

  .game-title {
    font-size: 0.75rem;
  }
}
