/* ==========================================================
   NightLuck Casino – Custom CSS
   NightLuck Élégance Nocturne Theme
   ========================================================== */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #050a18;
  color: #f1f5f9;
  font-family: system-ui, -apple-system, sans-serif;
}

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

/* ─── Colour Tokens ─────────────────────────────────────── */
:root {
  --night-950: #050a18;
  --night-900: #0a1428;
  --night-800: #0f1e40;
  --night-700: #162654;
  --gold-300:  #f5d98a;
  --gold-400:  #f0c741;
  --gold-500:  #d4a017;
  --gold-600:  #b8860b;
  --velvet-800: #1a0a2e;
}

/* ─── Typography Utilities ───────────────────────────────── */
.gold-text {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.nav-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--gold-400);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-mobile {
  display: block;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(240, 199, 65, 0.15);
  transition: color 0.2s, padding-left 0.2s;
}

.nav-link-mobile:hover {
  color: var(--gold-400);
  padding-left: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold-400);
}

/* ─── Buttons ────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--night-950);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.35);
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(212, 160, 23, 0.5);
  filter: brightness(1.08);
}

.cta-btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-600) 100%);
  color: var(--night-950);
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.5);
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
}

.cta-btn-hero:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 36px rgba(212, 160, 23, 0.65);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold-400);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 2px solid var(--gold-400);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  letter-spacing: 0.04em;
}

.btn-secondary:hover {
  background: var(--gold-400);
  color: var(--night-950);
  transform: translateY(-2px);
}

.cta-btn-sm {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--night-950);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(212, 160, 23, 0.3);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta-btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(212, 160, 23, 0.5);
}

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

.parallax-bg {
  will-change: transform;
}

.bonus-badge {
  background: linear-gradient(135deg, rgba(15, 30, 64, 0.95) 0%, rgba(22, 38, 84, 0.95) 100%);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.2), inset 0 0 30px rgba(5, 10, 24, 0.5);
  backdrop-filter: blur(10px);
}

.shimmer-bar {
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-300) 25%,
    var(--gold-400) 50%,
    var(--gold-300) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ─── Starfield ──────────────────────────────────────────── */
.star-field {
  background-image:
    radial-gradient(circle, rgba(245, 217, 138, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(240, 199, 65, 0.4) 1.5px, transparent 1.5px);
  background-size: 200px 200px, 150px 150px, 300px 300px;
  background-position: 0 0, 50px 80px, 120px 40px;
  animation: twinkle 4s ease-in-out infinite;
}

/* ─── Section Titles ─────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

/* ─── Promo Cards ────────────────────────────────────────── */
.promo-card {
  background: linear-gradient(135deg, var(--night-800) 0%, var(--night-900) 100%);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.2);
}

.promo-card-featured {
  border-color: var(--gold-500);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
  background: linear-gradient(135deg, var(--night-700) 0%, var(--night-800) 100%);
}

.promo-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(212, 160, 23, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(212, 160, 23, 0.2);
}

/* ─── Review Cards ───────────────────────────────────────── */
.review-card {
  background: linear-gradient(135deg, var(--night-800) 0%, var(--night-900) 100%);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.review-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

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

.provider-tag {
  display: inline-block;
  background: rgba(15, 30, 64, 0.8);
  border: 1px solid rgba(184, 134, 11, 0.25);
  color: var(--gold-300);
  border-radius: 2rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.provider-tag:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.provider-sm  { font-size: 0.75rem; }
.provider-md  { font-size: 0.85rem; }
.provider-lg  { font-size: 0.95rem; }
.provider-xl  { font-size: 1.05rem; }

/* ─── Step Cards ─────────────────────────────────────────── */
.step-card {
  background: linear-gradient(135deg, var(--night-800) 0%, var(--night-900) 100%);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.18);
}

.step-card-featured {
  border-color: var(--gold-500);
  box-shadow: 0 0 28px rgba(212, 160, 23, 0.15);
}

.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--night-700);
  border: 2px solid rgba(240, 199, 65, 0.4);
  color: var(--gold-400);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}

.step-badge-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--night-950);
  border-color: var(--gold-300);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.4);
}

/* ─── Games Marquee ──────────────────────────────────────── */
.games-marquee-container {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.games-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

.game-card {
  width: 180px;
  flex-shrink: 0;
  background: var(--night-800);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.game-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
}

.game-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

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

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 24, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.game-title {
  padding: 0.6rem 0.75rem 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.7rem;
  color: var(--gold-400);
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  background: var(--night-800);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(240, 199, 65, 0.4);
}

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

.faq-question:hover {
  color: var(--gold-400);
}

.faq-icon {
  color: var(--gold-400);
  font-size: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid rgba(184, 134, 11, 0.1);
}

.faq-answer p {
  margin-top: 0.75rem;
}

/* ─── Tables ─────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
}

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

/* ─── Prose Casino ───────────────────────────────────────── */
.prose-casino {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1rem;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 800;
  font-family: Georgia, serif;
  color: var(--gold-300);
  margin-top: 0;
  margin-bottom: 1rem;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Georgia, serif;
  color: var(--gold-400);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

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

.prose-casino p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.prose-casino a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

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

.prose-casino ul li::marker {
  color: var(--gold-400);
}

.prose-casino ol li::marker {
  color: var(--gold-400);
}

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

.prose-casino blockquote {
  border-left: 3px solid var(--gold-400);
  padding-left: 1rem;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-casino code {
  background: var(--night-800);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--gold-300);
}

.prose-casino pre {
  background: var(--night-800);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino hr {
  border-color: rgba(212, 160, 23, 0.2);
  margin: 2rem 0;
}

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

.prose-casino th {
  background: var(--night-800);
  color: var(--gold-400);
  font-weight: 600;
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(15, 30, 64, 0.8);
  color: #cbd5e1;
}

.prose-casino tr:nth-child(even) {
  background: rgba(15, 30, 64, 0.4);
}

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

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ─── Parallax ───────────────────────────────────────────── */
@media (min-width: 1024px) {
  .parallax-bg {
    transform: translateZ(0);
  }
}

/* ─── Scrollbar (decorative) ─────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--night-900);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* ─── Max Width Container ────────────────────────────────── */
.max-w-8xl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Utility ────────────────────────────────────────────── */
.hidden {
  display: none;
}
