/* =========================================================
   KumoBet Casino – Custom CSS
   Nordic Storm Theme
   ========================================================= */

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

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #060d1a;
  color: #e8f0f8;
  font-family: 'Inter', sans-serif;
}

/* ---------------------------------------------------------
   Color Variables
   --------------------------------------------------------- */
:root {
  --storm-dark:   #060d1a;
  --storm-navy:   #0a1628;
  --storm-blue:   #0f2040;
  --ice-blue:     #4db8e8;
  --ice-light:    #8dd4f0;
  --aurora-cyan:  #00e5cc;
  --aurora-green: #00c9a7;
  --silver:       #c0cfe0;
  --silver-light: #e8f0f8;
  --gold-accent:  #f0c040;
  --nordic-red:   #e83c4a;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.2;
}

.text-gradient-ice {
  background: linear-gradient(135deg, #4db8e8, #00e5cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e5cc 0%, #4db8e8 100%);
  color: #060d1a;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4db8e8 0%, #00e5cc 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 204, 0.4);
}

.btn-primary span, .btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e8f0f8;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: 2px solid rgba(77, 184, 232, 0.5);
}

.btn-secondary:hover {
  border-color: #4db8e8;
  background: rgba(77, 184, 232, 0.1);
  color: #8dd4f0;
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #f0c040;
  font-weight: 600;
  border: 2px solid rgba(240, 192, 64, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(240, 192, 64, 0.1);
  border-color: #f0c040;
  transform: translateY(-2px);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #00e5cc;
  font-weight: 600;
  border: 2px solid rgba(0, 229, 204, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline-cyan:hover {
  background: rgba(0, 229, 204, 0.1);
  border-color: #00e5cc;
  transform: translateY(-2px);
}

.btn-outline-ice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #4db8e8;
  font-weight: 600;
  border: 2px solid rgba(77, 184, 232, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline-ice:hover {
  background: rgba(77, 184, 232, 0.1);
  border-color: #4db8e8;
  transform: translateY(-2px);
}

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

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

/* Aurora overlay animation */
.aurora-overlay {
  background:
    radial-gradient(ellipse 80% 40% at 20% 60%, rgba(0, 229, 204, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 30%, rgba(77, 184, 232, 0.06) 0%, transparent 60%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
  0%   { opacity: 0.6; transform: translateX(-3%) scale(1); }
  50%  { opacity: 1;   transform: translateX(2%) scale(1.02); }
  100% { opacity: 0.7; transform: translateX(0%) scale(1); }
}

/* Bonus badge pulse */
.bonus-badge {
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 204, 0.2); }
  50%       { box-shadow: 0 0 40px rgba(0, 229, 204, 0.5), 0 0 80px rgba(77, 184, 232, 0.2); }
}

/* Scroll indicator */
.scroll-bounce {
  animation: scroll-bounce 2s ease-in-out infinite;
}

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

.scroll-dot {
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(14px); }
}

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */
.marquee-track {
  animation: marquee 30s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover */
.marquee-track:hover {
  animation-play-state: paused;
}

/* ---------------------------------------------------------
   Game Cards
   --------------------------------------------------------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 229, 204, 0.15);
}

/* ---------------------------------------------------------
   Promo Cards
   --------------------------------------------------------- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(77, 184, 232, 0.1);
}

/* ---------------------------------------------------------
   Step Cards
   --------------------------------------------------------- */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(77, 184, 232, 0.12);
}

/* ---------------------------------------------------------
   Review Blocks
   --------------------------------------------------------- */
.review-block {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

.provider-tag {
  color: var(--silver);
  transition: color 0.2s ease;
  cursor: default;
  display: inline-block;
}

.provider-tag:hover {
  color: var(--ice-blue);
}

.provider-tag:nth-child(3n+1) { color: #4db8e8; }
.provider-tag:nth-child(3n+2) { color: #8dd4f0; }
.provider-tag:nth-child(3n)   { color: #00e5cc; }

.provider-tag:hover {
  color: #f0c040;
}

/* ---------------------------------------------------------
   Paralax effect (CSS-based)
   --------------------------------------------------------- */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

.faq-item:hover {
  border-color: rgba(77, 184, 232, 0.4);
}

.faq-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: #e8f0f8;
}

.faq-trigger:focus {
  outline: 2px solid rgba(77, 184, 232, 0.5);
  outline-offset: 2px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(90deg, #4db8e8, #00e5cc);
  transition: left 0.25s ease, right 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 1rem;
  right: 1rem;
}

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

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
}

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

/* ---------------------------------------------------------
   Prose – Content Pages
   --------------------------------------------------------- */
.prose-casino {
  color: var(--silver);
  line-height: 1.8;
  font-size: 0.9375rem;
  max-width: 80ch;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--silver-light);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.prose-casino h1 { font-size: 2.25rem; color: var(--ice-blue); }
.prose-casino h2 { font-size: 1.75rem; color: var(--ice-light); border-bottom: 1px solid rgba(77,184,232,0.2); padding-bottom: 0.4em; }
.prose-casino h3 { font-size: 1.35rem; color: var(--aurora-cyan); }
.prose-casino h4 { font-size: 1.1rem; color: var(--silver-light); }

.prose-casino p {
  margin-bottom: 1.25em;
  color: var(--silver);
}

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

.prose-casino a:hover {
  color: var(--aurora-cyan);
}

.prose-casino strong {
  color: var(--silver-light);
  font-weight: 600;
}

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

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.5em;
  color: var(--silver);
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.5em;
  color: var(--silver);
}

.prose-casino blockquote {
  border-left: 4px solid var(--ice-blue);
  padding: 0.5em 1em;
  margin: 1.5em 0;
  background: rgba(77, 184, 232, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--silver-light);
  font-style: italic;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(77, 184, 232, 0.2);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(77, 184, 232, 0.1);
  color: var(--aurora-cyan);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: var(--storm-blue);
  padding: 1em 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

/* Prose table scrolling */
.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;
  margin: 1.5em 0;
  font-size: 0.875rem;
  background: var(--storm-blue);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino th {
  background: rgba(77, 184, 232, 0.1);
  color: var(--ice-blue);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(77, 184, 232, 0.3);
}

.prose-casino td {
  padding: 0.65rem 1rem;
  color: var(--silver);
  border-bottom: 1px solid rgba(77, 184, 232, 0.1);
}

.prose-casino tr:last-child td {
  border-bottom: none;
}

.prose-casino tr:hover td {
  background: rgba(77, 184, 232, 0.04);
}

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

  .marquee-track {
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  .bonus-badge {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-ice {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 184, 232, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(77, 184, 232, 0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.7s ease both;
}

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

.animate-pulse-ice {
  animation: pulse-ice 2s ease-in-out infinite;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

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

::-webkit-scrollbar-track {
  background: var(--storm-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(77, 184, 232, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 184, 232, 0.7);
}

/* ---------------------------------------------------------
   Selection
   --------------------------------------------------------- */
::selection {
  background: rgba(0, 229, 204, 0.3);
  color: var(--silver-light);
}

/* ---------------------------------------------------------
   Focus
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--ice-blue);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Gradient backgrounds
   --------------------------------------------------------- */
.bg-gradient-ice {
  background: linear-gradient(135deg, #4db8e8 0%, #00e5cc 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #f0c040 0%, #e8a020 100%);
}

.bg-gradient-storm {
  background: linear-gradient(135deg, #060d1a 0%, #0a1628 50%, #0f2040 100%);
}

/* Inline gradient helper classes for step badges */
.gradient-ice {
  background: linear-gradient(135deg, #4db8e8, #00e5cc);
}

.gradient-gold {
  background: linear-gradient(135deg, #f0c040, #e8a020);
}