/* ============================================
   Lolajack Casino - Custom Styles
   Ice & Fire Magic Casino Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --deep: #070b1e;
  --navy: #0f1535;
  --card: #141a3d;
  --card-border: #1e2a5e;
  --ice: #00d4ff;
  --ice-soft: #38bdf8;
  --fire: #f97316;
  --fire-hot: #ef4444;
  --gold: #fbbf24;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
}

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

body {
  background-color: var(--deep);
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ice);
}

/* ============================================
   ANIMATION 1: Floating Particles
   ============================================ */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

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

.particle--ice {
  background: radial-gradient(circle, var(--ice), transparent 70%);
  box-shadow: 0 0 6px var(--ice);
}

.particle--fire {
  background: radial-gradient(circle, var(--fire), transparent 70%);
  box-shadow: 0 0 6px var(--fire);
}

.particle:nth-child(1)  { width: 4px; height: 4px; left: 8%;  animation-duration: 7s;  animation-delay: 0s;   bottom: -10px; }
.particle:nth-child(2)  { width: 6px; height: 6px; left: 18%; animation-duration: 9s;  animation-delay: 1s;   bottom: -10px; }
.particle:nth-child(3)  { width: 3px; height: 3px; left: 30%; animation-duration: 8s;  animation-delay: 0.5s; bottom: -10px; }
.particle:nth-child(4)  { width: 5px; height: 5px; left: 42%; animation-duration: 10s; animation-delay: 2s;   bottom: -10px; }
.particle:nth-child(5)  { width: 4px; height: 4px; left: 55%; animation-duration: 7.5s;animation-delay: 1.5s; bottom: -10px; }
.particle:nth-child(6)  { width: 6px; height: 6px; left: 65%; animation-duration: 8.5s;animation-delay: 0.8s; bottom: -10px; }
.particle:nth-child(7)  { width: 3px; height: 3px; left: 75%; animation-duration: 9.5s;animation-delay: 3s;   bottom: -10px; }
.particle:nth-child(8)  { width: 5px; height: 5px; left: 85%; animation-duration: 6.5s;animation-delay: 2.5s; bottom: -10px; }
.particle:nth-child(9)  { width: 4px; height: 4px; left: 92%; animation-duration: 11s; animation-delay: 0.3s; bottom: -10px; }
.particle:nth-child(10) { width: 7px; height: 7px; left: 50%; animation-duration: 8s;  animation-delay: 4s;   bottom: -10px; }

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) translateX(30px) scale(0.3);
    opacity: 0;
  }
}

/* ============================================
   ANIMATION 2: Marquee Scroll
   ============================================ */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--deep), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--deep), transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

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

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

/* ============================================
   Pulse & Glow Effects
   ============================================ */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4), 0 0 30px rgba(249, 115, 22, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.7), 0 0 50px rgba(249, 115, 22, 0.25);
  }
}

@keyframes icePulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.2);
  }
}

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

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

@keyframes slideInRow {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes borderRotate {
  0%   { border-color: var(--ice); }
  50%  { border-color: var(--fire); }
  100% { border-color: var(--ice); }
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--fire), #ea580c);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulseGlow 2.5s ease-in-out infinite;
  cursor: pointer;
  border: none;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.6);
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn--ice {
  background: linear-gradient(135deg, var(--ice), #0ea5e9);
  animation: icePulse 2.5s ease-in-out infinite;
}

.cta-btn--ice:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.6);
}

.cta-btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.cta-btn--ghost {
  background: transparent;
  border: 2px solid var(--ice);
  animation: none;
  color: var(--ice);
}

.cta-btn--ghost:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

/* ============================================
   Game Cards
   ============================================ */
.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), 0 0 0 1px var(--ice);
  border-color: var(--ice);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card__img {
  transform: scale(1.08);
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 30, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  z-index: 2;
}

.badge--rtp       { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.badge--jackpot   { background: linear-gradient(135deg, var(--gold), #d97706); color: #1a1a2e; }
.badge--bonus     { background: linear-gradient(135deg, var(--ice), #0284c7); color: #fff; }
.badge--popular   { background: linear-gradient(135deg, var(--fire), var(--fire-hot)); color: #fff; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  margin: 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1445 0%, #1a0a3e 40%, #2d1015 100%);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(249, 115, 22, 0.06), transparent);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-section {
    margin: 1.5rem 2rem;
    border-radius: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    margin: 2rem 3rem;
  }
}

/* ============================================
   Section Styles
   ============================================ */
.section-fade {
  animation: fadeInUp 0.6s ease both;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.section-title .text-ice {
  color: var(--ice);
}

.section-title .text-fire {
  color: var(--fire);
}

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

/* ============================================
   Feature Cards (Why Choose)
   ============================================ */
.feature-card {
  background: linear-gradient(145deg, var(--card), var(--navy));
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.12);
}

.feature-card__icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================
   Provider Buttons (3D style)
   ============================================ */
.provider-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 3px 0 #0a0f2a, 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: default;
}

.provider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #0a0f2a, 0 6px 16px rgba(0,0,0,0.35);
  color: var(--ice);
}

/* ============================================
   Big Winner Card
   ============================================ */
.winner-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.winner-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7,11,30,0.3) 0%, rgba(7,11,30,0.85) 100%);
  text-align: center;
  padding: 1.5rem;
}

/* ============================================
   Bets Table
   ============================================ */
.bets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.35rem;
}

.bets-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bets-table td {
  padding: 0.6rem 0.75rem;
  font-size: 0.825rem;
  background: var(--card);
}

.bets-table tr td:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.bets-table tr td:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.bets-row-enter {
  animation: slideInRow 0.4s ease both;
}

/* ============================================
   Tabs (Payments)
   ============================================ */
.tab-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--ice), #0ea5e9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeInUp 0.35s ease both;
}

/* ============================================
   Review Stars
   ============================================ */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

/* ============================================
   Prose Styling (Casino Review)
   ============================================ */
.prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 72ch;
}

.prose h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--card-border);
}

.prose p {
  margin-bottom: 1rem;
}

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

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--fire));
}

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

.prose a:hover {
  color: var(--fire);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   Author Card
   ============================================ */
.author-card {
  background: linear-gradient(145deg, var(--card), var(--navy));
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 2rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ice), var(--fire));
  flex-shrink: 0;
}

/* ============================================
   Promo Cards
   ============================================ */
.promo-card {
  background: linear-gradient(145deg, var(--card), #1a1040);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 28px rgba(249, 115, 22, 0.12);
}

/* ============================================
   Payment Method Row
   ============================================ */
.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.875rem;
  align-items: center;
}

.payment-row:last-child {
  border-bottom: none;
}

/* ============================================
   Review Card (Trustpilot style)
   ============================================ */
.review-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1015 50%, #0c1445 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 25% 50%, rgba(0, 212, 255, 0.1), transparent),
    radial-gradient(ellipse 40% 60% at 75% 50%, rgba(249, 115, 22, 0.08), transparent);
  pointer-events: none;
}

/* ============================================
   Mobile Nav
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--navy);
  border-left: 1px solid var(--card-border);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  padding: 5rem 1.5rem 2rem;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 30, 0.7);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Carousel (for review layout option)
   ============================================ */
.carousel-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track > * {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .carousel-track > * {
    flex: 0 0 33.333%;
  }
}

/* ============================================
   Sticky Header Blur
   ============================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  background: rgba(7, 11, 30, 0.8);
  border-bottom: 1px solid rgba(30, 42, 94, 0.5);
  transition: background 0.3s ease;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none;
  }
}

/* ============================================
   SVG Pattern Background
   ============================================ */
.pattern-bg {
  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='%231e2a5e' fill-opacity='0.15'%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");
}
