/* ===========================================
   FLucky Casino – Custom CSS & Animations
   Northern Fortune Theme
   =========================================== */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0a0f1e;
  color: #e0f2fe;
  font-family: system-ui, -apple-system, sans-serif;
}

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

/* ---- Aurora Background Animation ---- */
@keyframes auroraShift {
  0%   { background-position: 0% 50%; opacity: 0.25; }
  50%  { background-position: 100% 50%; opacity: 0.4; }
  100% { background-position: 0% 50%; opacity: 0.25; }
}

.aurora-wave {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.15) 0%,
    rgba(30, 58, 138, 0.2) 30%,
    rgba(245, 158, 11, 0.08) 60%,
    rgba(6, 182, 212, 0.12) 100%
  );
  background-size: 400% 400%;
  animation: auroraShift 8s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-bg {
  background-attachment: fixed;
  transform: scale(1.05);
}

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

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 30, 0.75) 0%,
    rgba(10, 15, 30, 0.6) 50%,
    rgba(10, 15, 30, 0.85) 100%
  );
}

/* ---- Bonus Badge ---- */
.bonus-badge {
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.92) 0%,
    rgba(30, 58, 138, 0.5) 50%,
    rgba(10, 15, 30, 0.92) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- CTA Buttons ---- */
.cta-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
  color: #0a0f1e;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
  filter: brightness(1.1);
}

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

.cta-secondary {
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

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

/* ---- Sticky Header ---- */
.site-header {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Burger Menu Animation ---- */
.burger-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

/* ---- Step Cards ---- */
.step-card {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.2) 0%,
    rgba(10, 15, 30, 0.6) 100%
  );
  border: 1px solid rgba(30, 58, 138, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.3);
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border: 2px solid #f59e0b;
  color: #fde68a;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* ---- Review Cards ---- */
.review-card {
  background: linear-gradient(
    160deg,
    rgba(17, 24, 39, 0.9) 0%,
    rgba(30, 58, 138, 0.15) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.2);
}

/* ---- Promo Cards ---- */
.promo-card {
  background: linear-gradient(
    160deg,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(30, 58, 138, 0.2) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(10, 15, 30, 0.5);
}

/* ---- Game Cards ---- */
.game-card {
  border: 1px solid rgba(30, 58, 138, 0.3);
  box-shadow: 0 4px 20px rgba(10, 15, 30, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
}

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

.games-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

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

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

/* ---- Provider Word Cloud ---- */
.provider-cloud {
  line-height: 2;
}

.provider-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(30, 58, 138, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: default;
  word-break: keep-all;
}

.provider-tag:hover {
  background: rgba(30, 58, 138, 0.35);
  transform: scale(1.05);
}

/* ---- FAQ ---- */
.faq-item {
  background: rgba(17, 24, 39, 0.6);
  transition: border-color 0.2s ease;
}

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

.faq-answer {
  border-top: 1px solid rgba(30, 58, 138, 0.2);
}

/* ---- Responsible Gaming Block ---- */
.responsible-block {
  background: rgba(30, 58, 138, 0.15);
  border: 1px solid rgba(30, 58, 138, 0.3);
}

/* ---- Sparkle / Glow Keyframes ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
  50%       { box-shadow: 0 0 30px rgba(245, 158, 11, 0.7); }
}

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

/* ---- SVG Background Pattern ---- */
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a8a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

.prose-casino h2 {
  color: #fbbf24;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
  border-bottom: 1px solid rgba(30, 58, 138, 0.3);
  padding-bottom: 0.5rem;
}

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

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

.prose-casino p {
  color: #bae6fd;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

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

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #bae6fd;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #bae6fd;
}

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

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

.prose-casino code {
  background: rgba(30, 58, 138, 0.3);
  color: #fde68a;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(30, 58, 138, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #bae6fd;
}

.prose-casino thead th {
  background: rgba(30, 58, 138, 0.5);
  color: #fbbf24;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(30, 58, 138, 0.4);
  font-weight: 700;
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(30, 58, 138, 0.08);
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(30, 58, 138, 0.25);
  vertical-align: top;
}

.prose-casino tbody tr:hover {
  background: rgba(30, 58, 138, 0.15);
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(30, 58, 138, 0.3);
  margin: 2rem 0;
}

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

/* ---- General Table Scroll Wrapper ---- */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

::-webkit-scrollbar-track {
  background: rgba(10, 15, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.6);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* ---- Floating Aurora Particles (CSS only) ---- */
@keyframes floatParticle {
  0%   { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.6; }
  33%  { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 0.8; }
  66%  { transform: translateY(-10px) translateX(-8px) scale(0.95); opacity: 0.5; }
  100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.6; }
}

/* ---- Selection Highlight ---- */
::selection {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Utility: Text contrast helpers ---- */
.text-on-gold {
  color: #0a0f1e;
}

.text-on-dark {
  color: #e0f2fe;
}

/* ---- Nav Link Hover Underline ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #f59e0b);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* ---- Responsive Adjustments ---- */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .bonus-badge {
    padding: 1.25rem;
  }

  .step-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

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