/* ============================================================
   TestBet Casino — Custom CSS
   Crystal Ocean Theme: teal gradients, glassmorphism, corals
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background: #003d40;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(0,188,212,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(45,212,191,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #001f26 0%, #003d40 40%, #004d40 100%);
  background-attachment: fixed;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: #e0f7fa;
  min-height: 100vh;
}

/* ── Glassmorphism ── */
.glass-card {
  background: rgba(0, 60, 75, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(45, 212, 191, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Navbar ── */
.navbar-glass {
  background: rgba(0, 31, 38, 0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(45, 212, 191, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-link {
  color: rgba(178, 235, 242, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: #4dd0e1;
  background: rgba(45, 212, 191, 0.1);
}

.mobile-nav-link {
  color: rgba(178, 235, 242, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}
.mobile-nav-link:hover {
  color: #4dd0e1;
  background: rgba(45, 212, 191, 0.1);
}

.mobile-menu-inner {
  background: rgba(0, 25, 32, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Logo ── */
.logo-link { text-decoration: none; }
.logo-icon { display: flex; align-items: center; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #0097a7 0%, #14b8a6 50%, #00bcd4 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.35);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00acc1 0%, #0d9488 50%, #26c6da 100%);
  box-shadow: 0 6px 28px rgba(0, 188, 212, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #80deea;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid rgba(77, 208, 225, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-secondary:hover {
  background: rgba(77, 208, 225, 0.1);
  border-color: #4dd0e1;
  color: #4dd0e1;
  transform: translateY(-2px);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 15, 20, 0.65) 0%,
    rgba(0, 31, 38, 0.75) 40%,
    rgba(0, 60, 70, 0.85) 80%,
    rgba(0, 60, 64, 0.95) 100%
  );
}

.gradient-text {
  background: linear-gradient(135deg, #4dd0e1 0%, #14b8a6 50%, #80deea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bonus Badge ── */
.bonus-badge-box {
  position: relative;
}
.bonus-badge {
  background: rgba(0, 50, 65, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow:
    0 0 40px rgba(0, 188, 212, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 188, 212, 0.2), 0 8px 32px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 60px rgba(0, 188, 212, 0.4), 0 8px 32px rgba(0,0,0,0.4); }
}

/* ── Bubbles Animation ── */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(77,208,225,0.4), rgba(0,188,212,0.1));
  border: 1px solid rgba(77,208,225,0.3);
  animation: rise 8s ease-in infinite;
  bottom: -50px;
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(0.6); opacity: 0; }
}

/* ── Coral Decoration ── */
.coral-deco {
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, #002a2e 100%);
  pointer-events: none;
}

/* ── Section Titles ── */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #80deea 0%, #4dd0e1 50%, #26c6da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ── Section Waves ── */
.section-waves {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,150,170,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(45,212,191,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Promo Cards ── */
.promo-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(45,212,191,0.1);
}
.featured-promo {
  background: rgba(0, 70, 80, 0.55) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
}

/* ── Game Cards ── */
.game-card { cursor: pointer; }
.game-img-wrap {
  background: rgba(0,40,50,0.5);
  border: 1px solid rgba(45,212,191,0.15);
  transition: border-color 0.3s;
}
.game-card:hover .game-img-wrap {
  border-color: rgba(45,212,191,0.5);
  box-shadow: 0 0 20px rgba(0,188,212,0.2);
}
.game-overlay {
  background: rgba(0,20,30,0.7);
  backdrop-filter: blur(4px);
}

/* ── Marquee ── */
.marquee-track {
  animation: marquee-scroll 30s linear infinite;
  display: flex;
  gap: 2rem;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }

/* ── Steps ── */
.step-card {
  transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-number-badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0097a7, #14b8a6);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,188,212,0.4);
}
.featured-step {
  background: linear-gradient(135deg, #14b8a6, #0097a7) !important;
  box-shadow: 0 4px 20px rgba(20,184,166,0.5);
}

/* ── Review Provider Tags ── */
.provider-cloud { align-content: flex-start; }
.provider-tag {
  background: rgba(0,80,95,0.5);
  border: 1px solid rgba(45,212,191,0.2);
  color: #80deea;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: default;
  white-space: nowrap;
}
.provider-tag:hover {
  background: rgba(0,188,212,0.2);
  border-color: rgba(45,212,191,0.6);
  color: #4dd0e1;
}

/* ── FAQ ── */
.faq-item {
  transition: border-color 0.2s;
}
.faq-item:has(.faq-answer:not(.hidden)) {
  border-color: rgba(45,212,191,0.4) !important;
}
.faq-btn {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

/* ── Age Badge ── */
.age-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
  font-weight: 900;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(244,63,94,0.4);
}

/* ── Prose Styles ── */
.prose-content {
  color: rgba(178, 235, 242, 0.85);
  line-height: 1.8;
  font-size: 1rem;
}
.prose-content h1, .prose-content h2, .prose-content h3, .prose-content h4 {
  color: #80deea;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.prose-content h1 { font-size: 2rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }
.prose-content p { margin-bottom: 1rem; color: rgba(178, 235, 242, 0.8); }
.prose-content ul, .prose-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(178, 235, 242, 0.75);
}
.prose-content li { margin-bottom: 0.35rem; }
.prose-content a { color: #4dd0e1; text-decoration: underline; }
.prose-content a:hover { color: #80deea; }
.prose-content strong { color: #b2ebf2; font-weight: 700; }
.prose-content blockquote {
  border-left: 3px solid #4dd0e1;
  padding-left: 1rem;
  color: rgba(178, 235, 242, 0.6);
  font-style: italic;
  margin: 1.5rem 0;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.prose-content th {
  background: rgba(0,100,120,0.4);
  color: #4dd0e1;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prose-content td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(45,212,191,0.1);
  color: rgba(178,235,242,0.8);
  font-size: 0.9rem;
}
.prose-content tr:hover td { background: rgba(0,80,100,0.2); }

/* ── Prose Tailwind Overrides ── */
.prose { max-width: none; }
.prose-invert { color: rgba(178, 235, 242, 0.85); }

/* ── Parallax ── */
@media (min-width: 768px) {
  .hero-bg {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* ── Responsive Utility ── */
@media (max-width: 640px) {
  .bonus-badge { padding: 1.25rem 1.5rem; }
  .section-title { font-size: 1.5rem; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; background: #001f26; }
::-webkit-scrollbar-thumb { background: rgba(45,212,191,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(45,212,191,0.6); }

/* ── Tables (global) ── */
table { width: 100%; border-collapse: collapse; }
th { color: #4dd0e1; font-weight: 600; text-align: left; }
td, th { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(45,212,191,0.12); }
tr:hover td { background: rgba(0,100,120,0.15); }

/* ── SVG pattern overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  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='%234dd0e1' fill-opacity='1'%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");
}

/* Ensure content is above pattern */
header, main, footer { position: relative; z-index: 1; }
