/* =============================================================
   Here2Win Casino — Custom CSS
   ============================================================= */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  word-break: break-word;
  overflow-x: hidden;
  background-color: #07200f;
  color: #e8f5ee;
}

/* =============================================================
   CSS Custom Properties
   ============================================================= */
:root {
  --color-gold:        #c9a84c;
  --color-gold-light:  #e2c06a;
  --color-gold-dark:   #a8862e;
  --color-emerald:     #0d4f2e;
  --color-emerald-dark:#082e1a;
  --color-casino-bg:   #07200f;
  --color-casino-card: #0f3320;
  --color-casino-border:#1e5c38;
  --color-casino-text: #e8f5ee;
  --color-casino-muted:#a3c4b0;
  --max-w:             1440px;
}

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

.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(8,46,26,0.88) 0%,
    rgba(7,32,15,0.75) 50%,
    rgba(7,32,15,1) 100%
  );
}

/* =============================================================
   Bonus Badge
   ============================================================= */
.bonus-badge-inner {
  background: linear-gradient(135deg, #a8862e 0%, #c9a84c 40%, #e2c06a 60%, #c9a84c 100%);
  animation: badge-shine 3s ease-in-out infinite;
}

.bonus-glow {
  box-shadow: 0 0 40px rgba(201,168,76,0.5);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.15); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 40px rgba(201,168,76,0.5); }
  50%       { opacity: 1;   box-shadow: 0 0 70px rgba(201,168,76,0.85); }
}

/* =============================================================
   Particles
   ============================================================= */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0;
  animation: float-up 6s ease-in-out infinite;
}

.particle-1 { width: 6px;  height: 6px;  left: 15%; animation-delay: 0s;   animation-duration: 7s; }
.particle-2 { width: 4px;  height: 4px;  left: 35%; animation-delay: 1.5s; animation-duration: 5s; }
.particle-3 { width: 8px;  height: 8px;  left: 55%; animation-delay: 0.8s; animation-duration: 8s; }
.particle-4 { width: 5px;  height: 5px;  left: 72%; animation-delay: 2.2s; animation-duration: 6s; }
.particle-5 { width: 3px;  height: 3px;  left: 88%; animation-delay: 0.4s; animation-duration: 7s; }

@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* =============================================================
   CTA Buttons
   ============================================================= */
.cta-primary {
  box-shadow: 0 0 30px rgba(201,168,76,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  box-shadow: 0 0 50px rgba(201,168,76,0.7);
}

/* =============================================================
   Games Marquee
   ============================================================= */
.games-marquee-track {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.games-marquee-inner {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  padding: 0.5rem 0.625rem;
}

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

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

/* =============================================================
   Provider Word Cloud
   ============================================================= */
.providers-cloud {
  line-height: 1.6;
}

.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(30, 92, 56, 0.5);
  border: 1px solid var(--color-casino-border);
  color: var(--color-casino-text);
  cursor: default;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.provider-tag:hover {
  background-color: rgba(201,168,76,0.15);
  color: var(--color-gold);
}

.provider-sm  { font-size: 0.7rem; }
.provider-md  { font-size: 0.85rem; }
.provider-lg  { font-size: 1rem; font-weight: 600; }
.provider-xl  { font-size: 1.15rem; font-weight: 700; color: var(--color-gold-light); }

/* =============================================================
   Step Cards
   ============================================================= */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

/* =============================================================
   Promo Cards
   ============================================================= */
.promo-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--color-gold);
}

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

/* =============================================================
   Prose / Article styles
   ============================================================= */
.prose-casino {
  color: var(--color-casino-muted);
  max-width: 100%;
}

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

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

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

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

.prose-casino li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

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

.prose-casino a:hover {
  color: var(--color-gold-light);
}

.prose-casino strong {
  color: var(--color-casino-text);
  font-weight: 700;
}

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

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

.prose-casino th {
  background-color: var(--color-emerald);
  color: var(--color-gold);
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--color-casino-border);
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-casino-border);
  color: var(--color-casino-muted);
  vertical-align: top;
}

.prose-casino tr:hover td {
  background-color: rgba(13, 79, 46, 0.3);
}

.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;
}

/* Article-specific prose */
.prose-article {
  background-color: var(--color-casino-card);
  border: 1px solid var(--color-casino-border);
  border-radius: 1rem;
  padding: 2rem;
}

/* =============================================================
   Scrollbar styling
   ============================================================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-casino-bg); }
::-webkit-scrollbar-thumb { background: var(--color-casino-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }

/* =============================================================
   Utility overrides
   ============================================================= */
.max-w-8xl { max-width: 1440px; }

/* Ensure tables in overflow contexts scroll properly */
.overflow-x-auto table {
  min-width: 600px;
}

/* Radiant light burst decoration */
.radiant-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26,122,74,0.12) 0%, transparent 55%);
}

/* Gold shimmer text */
.text-shimmer {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Sticky header shadow on scroll */
#site-header {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Mobile menu transition */
#mobile-menu {
  animation: slide-down 0.25s ease;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Prose content links */
.prose-content a {
  color: var(--color-gold);
  text-decoration: underline;
}

.prose-content a:hover {
  color: var(--color-gold-light);
}

/* Ensure footer stays at bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
