/*
 * NightLuck Casino – Custom CSS
 * Northern Midnight theme: sapphire, silver, midnight backdrop, aurora accents
 */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  min-height: 100vh;
}

/* ===========================
   TYPOGRAPHY & BASE
=========================== */

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
}

p, li, td, th, span {
  word-break: break-word;
}

/* ===========================
   HERO SECTION
=========================== */

.hero-section {
  position: relative;
  min-height: 100vh;
}

.hero-bg {
  transform: scale(1.05);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Parallax JS hook */
.parallax-active .hero-bg {
  transform: scale(1.1) translateY(var(--parallax-offset, 0px));
}

.aurora-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(37, 99, 235, 0.08) 30%,
    rgba(167, 139, 250, 0.06) 60%,
    rgba(45, 212, 191, 0.05) 100%
  );
  animation: auroraShift 12s ease-in-out infinite alternate;
}

.aurora-subtle {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(45, 212, 191, 0.08) 100%
  );
  animation: auroraShift 15s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% {
    background-position: 0% 50%;
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    background-position: 100% 50%;
    opacity: 0.2;
  }
}

/* ===========================
   TEXT GRADIENT
=========================== */

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===========================
   BONUS BADGE
=========================== */

.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-glow {
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===========================
   CTA BUTTONS
=========================== */

.cta-primary {
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 150%; }
}

.cta-secondary {
  display: inline-block;
  transition: transform 0.2s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

/* ===========================
   BOUNCE ARROW
=========================== */

.bounce-arrow {
  animation: bounce 2s ease-in-out infinite;
}

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

/* ===========================
   MARQUEE
=========================== */

.marquee-wrapper {
  position: relative;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

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

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

/* ===========================
   GAME CARDS
=========================== */

.game-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.3);
}

/* ===========================
   PROMO CARDS
=========================== */

.promo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(9, 20, 48, 0.6);
}

/* ===========================
   REVIEW BLOCKS
=========================== */

.review-block {
  transition: transform 0.25s ease;
}

.review-block:hover {
  transform: translateY(-2px);
}

/* ===========================
   PROVIDER CLOUD
=========================== */

.provider-cloud {
  line-height: 2;
}

.provider-tag {
  display: inline-block;
  cursor: default;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

.provider-tag:hover {
  transform: scale(1.08);
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
}

/* ===========================
   STEP CARDS
=========================== */

.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(9, 20, 48, 0.7);
}

/* ===========================
   FAQ ACCORDION
=========================== */

.faq-trigger {
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: transparent;
  border: none;
  outline: none;
}

.faq-trigger:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

.faq-item.faq-open {
  border-color: rgba(96, 165, 250, 0.4);
}

.faq-answer {
  animation: faqSlideDown 0.25s ease;
}

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

/* ===========================
   HEADER / BURGER
=========================== */

#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#burger-btn.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#burger-btn.burger-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================
   TABLES
=========================== */

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

td, th {
  word-break: normal;
  white-space: nowrap;
}

.prose-casino td,
.prose-casino th {
  word-break: break-word;
  white-space: normal;
}

div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0.5rem;
}

/* ===========================
   PROSE CASINO
=========================== */

.prose-casino {
  color: #cbd5e1;
  max-width: none;
  line-height: 1.75;
}

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

.prose-casino h2 {
  color: #f1f5f9;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  padding-bottom: 0.5rem;
}

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

.prose-casino h4 {
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

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

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

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

.prose-casino ul {
  list-style-type: disc;
}

.prose-casino ol {
  list-style-type: decimal;
}

.prose-casino li {
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.prose-casino strong {
  color: #e2e8f0;
  font-weight: 600;
}

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

.prose-casino blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #64748b;
  font-style: italic;
}

.prose-casino code {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background-color: #050d24;
  border: 1px solid #0d1c42;
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.prose-casino pre code {
  background: none;
  color: #93c5fd;
  padding: 0;
}

/* Prose table wrapper */
.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.875rem;
  margin-bottom: 1.25rem;
}

.prose-casino thead {
  background-color: #091430;
}

.prose-casino th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-weight: 600;
  border-bottom: 2px solid #0d1c42;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  color: #94a3b8;
  border-bottom: 1px solid #091430;
}

.prose-casino tr:hover td {
  background-color: rgba(9, 20, 48, 0.5);
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #0d1c42;
  margin: 2rem 0;
}

.prose-casino img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
}

/* ===========================
   SCROLLBAR STYLING
=========================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #020818;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* ===========================
   RESPONSIVE UTILITIES
=========================== */

@media (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
  }

  .games-strip .game-card {
    min-width: 0;
  }

  .bonus-badge {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .marquee-track {
    animation-duration: 20s;
  }
}

/* ===========================
   UTILITY
=========================== */

.max-w-container {
  max-width: 1440px;
}

/* Parallax listener */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-overlay,
  .aurora-subtle,
  .bonus-badge,
  .badge-glow,
  .cta-primary::before,
  .marquee-track,
  .bounce-arrow {
    animation: none !important;
  }
}
