/* AquaSpins — underwater theme
 * Tailwind CDN handles utilities. This file: design tokens, prose,
 * RG quiz, slot cards, the two chosen animations (float + shimmer),
 * bubbles, flowing wave background, reviews carousel.
 */

:root {
  --accent: #FDE047;          /* yellow CTA */
  --accent-2: #FACC15;        /* deeper yellow for gradient pairs */
  --bg: #021B3A;              /* deep ocean blue */
  --bg-2: #053569;            /* mid ocean */
  --bg-3: #0B6FBF;            /* aqua highlight */
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --text: #E6F4FF;
  --muted: rgba(230,244,255,0.70);
  --cyan: #22D3EE;
  --teal: #5EEAD4;
}

html, body { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(94,234,212,0.10), transparent 60%),
    linear-gradient(180deg, #021B3A 0%, #02244A 35%, #03306A 70%, #042E63 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* ----- Flowing wave divider (CSS only, no SVG file needed) ----- */
.wave-divider {
  position: relative;
  height: 90px;
  overflow: hidden;
}
.wave-divider::before, .wave-divider::after {
  content: "";
  position: absolute; left: -10%; right: -10%; height: 200px;
  background:
    radial-gradient(60px 30px at 20% 50%, rgba(94,234,212,0.25), transparent 70%),
    radial-gradient(80px 40px at 60% 60%, rgba(34,211,238,0.20), transparent 70%),
    radial-gradient(50px 25px at 85% 45%, rgba(125,211,252,0.20), transparent 70%);
  border-radius: 50%;
}
.wave-divider::before { top: -120px; animation: wave-pan 16s linear infinite; }
.wave-divider::after  { top: -90px;  animation: wave-pan 24s linear infinite reverse; opacity: 0.7; }
@keyframes wave-pan {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Bubble field (decorative, behind sections marked .bubbles) ----- */
.bubbles { position: relative; overflow: hidden; isolation: isolate; }
.bubbles::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(125,211,252,0.55) 0 4px, transparent 5px),
    radial-gradient(circle at 25% 110%, rgba(165,243,252,0.45) 0 6px, transparent 7px),
    radial-gradient(circle at 45% 120%, rgba(94,234,212,0.40) 0 3px, transparent 4px),
    radial-gradient(circle at 65% 95%, rgba(190,242,253,0.50) 0 5px, transparent 6px),
    radial-gradient(circle at 80% 115%, rgba(125,211,252,0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 100%, rgba(165,243,252,0.40) 0 7px, transparent 8px),
    radial-gradient(circle at 35% 85%, rgba(255,255,255,0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 105%, rgba(255,255,255,0.30) 0 3px, transparent 4px);
  animation: bubble-rise 14s linear infinite;
}
.bubbles::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 80%, rgba(125,211,252,0.30) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 95%, rgba(94,234,212,0.35) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 110%, rgba(165,243,252,0.30) 0 4px, transparent 5px);
  animation: bubble-rise 22s linear infinite;
  opacity: 0.7;
}
@keyframes bubble-rise {
  0%   { transform: translateY(0)    scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ----- Caustic light shimmer overlay for hero / accent panels ----- */
.caustics {
  position: relative;
  isolation: isolate;
}
.caustics::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(110deg, rgba(165,243,252,0.06) 0 10px, transparent 10px 60px),
    repeating-linear-gradient(70deg,  rgba(94,234,212,0.05) 0 10px, transparent 10px 80px);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.caustics > * { position: relative; z-index: 1; }

/* =================================================================
 * Chosen animations: FLOAT + SHIMMER
 * ================================================================= */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }
.float-fast { animation: float 3.5s ease-in-out infinite; }

@keyframes shimmer-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(110deg, var(--accent) 0%, #FFFBE6 45%, var(--accent) 55%, var(--accent-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shimmer-sweep 4s linear infinite;
}
.cta-shimmer {
  position: relative;
  overflow: hidden;
}
.cta-shimmer::before {
  content: "";
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shimmer-sweep 3s linear infinite;
}

/* ----- 3D nav buttons ----- */
.btn-nav {
  display: inline-block;
  background: linear-gradient(180deg, #0e4a8a 0%, #062e5a 100%);
  color: #a5f3fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(34,211,238,0.35);
  border-bottom: 3px solid rgba(0,0,0,0.55);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(165,243,252,0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-bottom-width 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-nav:hover {
  color: #fde047;
  border-color: rgba(253,224,71,0.5);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.5), 0 0 8px rgba(34,211,238,0.2), inset 0 1px 0 rgba(253,224,71,0.15);
  transform: translateY(-1px);
}
.btn-nav:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 4px -2px rgba(0,0,0,0.5);
}

/* ----- Buttons (yellow CTA) ----- */
.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #051A38;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  box-shadow: 0 10px 30px -10px rgba(253,224,71,0.7), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(253,224,71,0.9), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn-ghost {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(165,243,252,0.4);
  color: var(--text);
  border-radius: 9999px;
  padding: 0.7rem 1.3rem;
}

/* ----- Surfaces / glassy panels ----- */
.glass {
  background: linear-gradient(180deg, rgba(11,111,191,0.35) 0%, rgba(2,27,58,0.55) 100%);
  border: 1px solid rgba(125,211,252,0.20);
  border-radius: 1.5rem;
  backdrop-filter: blur(8px);
}
.panel {
  background: var(--surface);
  border: 1px solid rgba(125,211,252,0.15);
  border-radius: 1.25rem;
}

/* ----- Prose ----- */
.prose { line-height: 1.75; color: var(--text); }
.prose h1 { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0 1.25rem; line-height: 1.15; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 0.75rem; color: #BAE6FD; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #A5F3FC; }
.prose p { margin: 0.75rem 0; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin: 0.75rem 0; }
.prose ol { list-style: decimal; padding-left: 1.4rem; margin: 0.75rem 0; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #FEF9C3; font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(125,211,252,0.15); text-align: left; }
.prose th { background: rgba(11,111,191,0.25); font-weight: 700; color: #BAE6FD; }
.prose details {
  background: var(--surface);
  border: 1px solid rgba(125,211,252,0.15);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  margin: 0.6rem 0;
}
.prose details > summary { cursor: pointer; font-weight: 600; color: #BAE6FD; list-style: none; }
.prose details > summary::after { content: " +"; color: var(--accent); }
.prose details[open] > summary::after { content: " −"; }
.prose dl { margin: 0.75rem 0; }
.prose dt { font-weight: 700; color: #A5F3FC; margin-top: 0.5rem; }
.prose dd { margin-left: 1rem; opacity: 0.9; }

/* ----- Slot / live cards ----- */
.slot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #0B6FBF 0%, #043872 100%);
  border: 1px solid rgba(125,211,252,0.25);
  display: flex;
  align-items: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slot-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -10px rgba(34,211,238,0.5); }
.slot-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.slot-card:hover img { transform: scale(1.06); }
.slot-card .meta {
  position: relative;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(0deg, rgba(2,27,58,0.92) 30%, rgba(2,27,58,0) 100%);
  z-index: 1;
}
.slot-card .meta h3 { font-size: 0.95rem; font-weight: 700; color: #FEF9C3; margin: 0; }
.slot-card .meta p { font-size: 0.7rem; color: #A5F3FC; margin: 0.1rem 0 0; opacity: 0.9; }
.slot-card .badge {
  position: absolute; top: 0.55rem; left: 0.55rem; z-index: 2;
  background: var(--accent); color: #051A38; font-size: 0.65rem; font-weight: 800;
  padding: 0.18rem 0.55rem; border-radius: 999px;
}

/* ----- Quick nav pills ----- */
.qnav a {
  display: inline-flex; align-items: center;
  background: rgba(11,111,191,0.30);
  border: 1px solid rgba(125,211,252,0.25);
  color: #E0F2FE;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qnav a:hover { background: rgba(11,111,191,0.55); border-color: var(--accent); color: var(--accent); }

/* ----- RG quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid rgba(125,211,252,0.20);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; color: #E0F2FE; }
.rg-quiz input[type="radio"] { accent-color: var(--accent); margin-right: 0.35rem; }

/* ----- Big winner overlay ----- */
.big-winner { position: relative; border-radius: 1.25rem; overflow: hidden; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(2,27,58,0.7); backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem; border-radius: 1rem;
  font-size: 0.95rem; color: #E6F4FF;
  border: 1px solid rgba(165,243,252,0.25);
}

/* ----- Reviews carousel ----- */
.reviews-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.reviews-scroller::-webkit-scrollbar { display: none; }
.reviews-scroller > article {
  flex: 0 0 85%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .reviews-scroller > article { flex: 0 0 32%; }
}

/* ----- Latest bets table styling ----- */
.latest-bets {
  background: var(--surface);
  border: 1px solid rgba(125,211,252,0.18);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.latest-bets table th { color: #A5F3FC; }
.latest-bets table td { padding: 0.45rem 0.5rem; border-top: 1px solid rgba(125,211,252,0.08); font-size: 0.88rem; }

/* ----- Footer payment chips ----- */
.pay-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(125,211,252,0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #BAE6FD;
}

/* ----- Aqua creature SVG inline coloring ----- */
.creature { color: #A5F3FC; opacity: 0.75; }
.creature.yellow { color: var(--accent); }

/* Hide scrollbar on small horizontal nav */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
