/* =============================================================
   AfriSlots Casino – Custom CSS
   Safari-themed premium online casino styles
   ============================================================= */

/* ---- Base Reset & Overflow ---- */
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;
}

/* ---- Marquee Animation ---- */
@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ---- Gold Glow Pulse ---- */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 160, 23, 0.3); }
  50%       { box-shadow: 0 0 30px rgba(212, 160, 23, 0.8), 0 0 60px rgba(212, 160, 23, 0.3); }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* ---- Shimmer (text / badges) ---- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, #a07810 0%, #f0c040 40%, #d4a017 60%, #a07810 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ---- Parallax Hero ---- */
.hero-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* ---- Navigation ---- */
.nav-link {
  position: relative;
  transition: color 0.2s, background-color 0.2s;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* ---- CTA Buttons ---- */
.cta-btn-primary {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #a07810 100%);
  color: #0a1f14;
  font-weight: 900;
  border-radius: 9999px;
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cta-btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

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

/* ---- Cards ---- */
.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212,160,23,0.2);
}

.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.promo-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
}

.review-block {
  transition: border-color 0.3s ease;
}

.review-block:hover {
  border-color: rgba(212, 160, 23, 0.5);
}

/* ---- Bonus Badge ---- */
.bonus-badge-box {
  position: relative;
  overflow: visible;
}

/* ---- Word Cloud Providers ---- */
.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  cursor: default;
  transition: transform 0.2s, text-shadow 0.2s;
  line-height: 1.4;
}

.provider-tag:hover {
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(240, 192, 64, 0.6);
}

/* ---- FAQ ---- */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 160, 23, 0.4);
}

.faq-toggle {
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
}

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

/* ---- Prose Casino (for single pages) ---- */
.prose-casino {
  color: #e5e7eb;
  max-width: none;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #f0c040;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

.prose-casino p {
  margin-bottom: 1em;
  line-height: 1.75;
  color: #d1d5db;
}

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

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

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0;
  padding-left: 1.5em;
  color: #d1d5db;
}

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
}

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

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

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

.prose-casino hr {
  border-color: #2a5c38;
  margin: 2em 0;
}

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

/* ---- Prose Tables ---- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #122a1c;
}

.prose-casino thead tr {
  background: #1a5c38;
}

.prose-casino thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #d4a017;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.prose-casino tbody tr {
  border-bottom: 1px solid #2a5c38;
  transition: background-color 0.2s;
}

.prose-casino tbody tr:hover {
  background-color: #0a1f14;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #2a5c38;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* ---- SVG / Decorative patterns ---- */
.safari-pattern-bg {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(212,160,23,0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(26,92,56,0.08) 0%, transparent 50%);
}

/* ---- Accessibility: Focus Styles ---- */
:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Step Badge ---- */
.step-badge {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #a07810 100%);
  box-shadow: 0 0 20px rgba(212,160,23,0.4);
  border: 2px solid rgba(255,255,255,0.2);
}

/* ---- Responsive Max Width ---- */
.max-w-site {
  max-width: 1440px;
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---- Gold Gradient Background Utility ---- */
.bg-gold-gradient {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #a07810 100%);
}

.bg-green-gradient {
  background: linear-gradient(135deg, #1a5c38 0%, #2a7a4b 100%);
}

/* ---- Image loading placeholder ---- */
img[loading="lazy"] {
  background: #1a5c38;
}

/* ---- Ping animation for badge dots ---- */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---- Hot Safari Picks: full-bleed marquee with fade edges ---- */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #122a1c 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #122a1c 0%, transparent 100%);
}

@media (max-width: 640px) {
  .marquee-track {
    gap: 0.875rem;
    animation-duration: 22s;
  }

  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 32px;
  }
}

/* ---- Prose Casino: mobile typography ---- */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.625rem; }
  .prose-casino h2 { font-size: 1.25rem; }
  .prose-casino h3 { font-size: 1.125rem; }

  .prose-casino p,
  .prose-casino li {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* ---- Single page content card ---- */
.prose-page-card {
  background: #122a1c;
  border: 1px solid #2a5c38;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .prose-page-card {
    padding: 2.5rem;
  }
}