/* ============================================
   Slotorado Casino – Custom CSS
   Northern Frontier Theme
   ============================================ */

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

body {
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #0a0e1a;
  color: #e8f4fd;
  word-break: break-word;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

p {
  line-height: 1.75;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   PROSE STYLING
   ============================================ */

.prose-casino {
  color: #e8f4fd;
  max-width: 100%;
}

.prose-casino h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: #f5c518;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.prose-casino h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #4fc3f7;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
  padding-bottom: 0.4rem;
}

.prose-casino h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffe082;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b3e5fc;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

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

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

.prose-casino em {
  color: #b3e5fc;
  font-style: italic;
}

.prose-casino a {
  color: #4fc3f7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.prose-casino ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #90caf9;
}

.prose-casino ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f5c518;
}

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

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #90caf9;
  padding-left: 0.25rem;
}

.prose-casino blockquote {
  border-left: 4px solid #f5c518;
  padding: 0.75rem 1.25rem;
  background: rgba(245, 197, 24, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.prose-casino blockquote p {
  color: #ffe082;
  margin-bottom: 0;
}

.prose-casino code {
  background: rgba(79, 195, 247, 0.12);
  color: #b3e5fc;
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #0d1530;
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  color: #4fc3f7;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(79, 195, 247, 0.2);
  margin: 2rem 0;
}

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

/* Tables inside prose */
.prose-casino table,
.prose-invert table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose-casino thead th,
.prose-invert thead th {
  background-color: rgba(13, 21, 48, 0.9);
  color: #f5c518;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(79, 195, 247, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.prose-casino tbody td,
.prose-invert tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
  color: #90caf9;
  vertical-align: top;
}

.prose-casino tbody tr:nth-child(even),
.prose-invert tbody tr:nth-child(even) {
  background-color: rgba(14, 42, 94, 0.3);
}

.prose-casino tbody tr:hover,
.prose-invert tbody tr:hover {
  background-color: rgba(79, 195, 247, 0.05);
}

/* Wrap all tables in prose -->
.prose table,
.prose-invert table,
.prose-casino table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

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

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.75) 0%,
    rgba(10, 14, 26, 0.55) 40%,
    rgba(10, 14, 26, 0.85) 100%
  );
}

.aurora-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(79, 195, 247, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(245, 197, 24, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Bonus badge glow */
.bonus-badge-glow {
  background: radial-gradient(ellipse, rgba(245, 197, 24, 0.35) 0%, transparent 70%);
  filter: blur(8px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

/* ============================================
   PARTICLES
   ============================================ */

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

.particle-1 {
  width: 6px; height: 6px;
  background: #f5c518;
  left: 15%; top: 20%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.particle-2 {
  width: 4px; height: 4px;
  background: #4fc3f7;
  left: 75%; top: 60%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.particle-3 {
  width: 8px; height: 8px;
  background: #f5c518;
  left: 50%; top: 80%;
  animation-duration: 7s;
  animation-delay: 1s;
}

.particle-4 {
  width: 5px; height: 5px;
  background: #b3e5fc;
  left: 30%; top: 50%;
  animation-duration: 12s;
  animation-delay: 3s;
}

.particle-5 {
  width: 3px; height: 3px;
  background: #ffe082;
  left: 85%; top: 25%;
  animation-duration: 9s;
  animation-delay: 4s;
}

@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}

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

.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 125%;
}

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

.step-card {
  position: relative;
}

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

.game-card {
  cursor: pointer;
}

.game-card img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.promo-card {
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4fc3f7, #f5c518, #4fc3f7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-card:hover::before {
  opacity: 1;
}

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

.review-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(79, 195, 247, 0.1);
}

/* ============================================
   PROVIDER TAGS (WORD CLOUD)
   ============================================ */

.provider-tag {
  display: inline-block;
  cursor: default;
  user-select: none;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.2);
}

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

.marquee-container {
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(13, 21, 48, 0.8), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(13, 21, 48, 0.8), transparent);
}

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

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

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

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

.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded='true']) {
  border-color: rgba(245, 197, 24, 0.4);
}

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

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.faq-trigger[aria-expanded='true'] .faq-icon {
  transform: rotate(90deg);
  color: #f5c518;
}

/* ============================================
   HEADER / NAV
   ============================================ */

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #f5c518;
  border-radius: 1px;
  transition: width 0.25s ease;
}

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

/* ============================================
   SECTION TRANSITIONS / PARALLAX
   ============================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.6s ease forwards;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.4);
  border-radius: 3px;
}

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

/* ============================================
   UTILITY: TABLE WRAPPER
   ============================================ */

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.75rem; }
  .prose-casino h2 { font-size: 1.4rem; }
  .prose-casino h3 { font-size: 1.15rem; }

  .bonus-badge-glow {
    display: none;
  }
}

@media (max-width: 768px) {
  .step-card {
    margin-bottom: 0;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .sticky, #site-header {
    position: relative;
  }
  .aurora-bg, .particles-container, .bonus-badge-glow {
    display: none;
  }
}
