/* -----------------------------------------------------------------
 * LolaJack — underwater kingdom theme.
 * Blue depths background, emerald-green CTAs, caustic light + bubbles.
 * Tailwind (CDN) handles utilities; this file holds tokens, prose,
 * animations (bubbles + float), carousel/popover, and the chart widget.
 * ----------------------------------------------------------------- */

:root {
  --accent: #34d399;        /* emerald CTA */
  --accent-2: #059669;      /* CTA ledge / gradient pair */
  --bg: #06122e;            /* deep ocean */
  --surface: rgba(56, 189, 248, 0.06);
  --text: #f0f9ff;
  --muted: rgba(224, 242, 254, 0.65);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ----- Hero: real bg image with a blue tint overlay for legibility -----
   Image sits at the base. A left-to-right gradient darkens the side that
   holds the H1 + bonus block, and a vertical gradient fades the photo into
   the page background at the bottom. */
.hero-bg {
  background-image:
    linear-gradient(180deg, rgba(6,18,46,0.45) 0%, rgba(6,18,46,0.25) 45%, rgba(6,18,46,0.96) 100%),
    linear-gradient(90deg, rgba(4,13,34,0.88) 0%, rgba(4,13,34,0.55) 45%, rgba(4,13,34,0.10) 100%),
    url('/images/hero-bg.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* ----- Bubbles rising through the hero ----- */
.bubbles { overflow: hidden; }
.bubbles::before, .bubbles::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 100%, rgba(186,230,253,0.5) 3px, transparent 4px),
    radial-gradient(circle at 35% 100%, rgba(186,230,253,0.35) 5px, transparent 6px),
    radial-gradient(circle at 60% 100%, rgba(186,230,253,0.45) 2px, transparent 3px),
    radial-gradient(circle at 80% 100%, rgba(186,230,253,0.4) 4px, transparent 5px),
    radial-gradient(circle at 92% 100%, rgba(186,230,253,0.3) 3px, transparent 4px);
  background-size: 100% 100%;
  animation: bubble-rise 9s linear infinite;
  opacity: 0.6;
}
.bubbles::after { animation-duration: 13s; animation-delay: -5s; opacity: 0.4; }
@keyframes bubble-rise {
  from { transform: translateY(40px); opacity: 0; }
  10%  { opacity: 0.6; }
  to   { transform: translateY(-100%); opacity: 0; }
}

/* ----- float (hero panels / cards) ----- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 5s ease-in-out infinite; }

/* ----- tilt (cards) ----- */
.tilt { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tilt:hover { transform: perspective(800px) translateY(-4px) rotateX(1.5deg) rotateY(-1.5deg); box-shadow: 0 22px 44px -14px rgba(52,211,153,0.28); }

/* ----- 3D nav buttons ----- */
.btn-3d {
  --btn-face: #0e2a5e; --btn-ledge: #081a3d; --btn-ink: #e0f2fe;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: 0.75rem; font-weight: 700; line-height: 1;
  color: var(--btn-ink); background: var(--btn-face);
  border: 1px solid rgba(56,189,248,0.25);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 10px -4px rgba(0,0,0,0.5);
  transform: translateY(0); transition: transform 0.08s ease, box-shadow 0.08s ease; text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.15); }
.btn-3d:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 4px -2px rgba(0,0,0,0.5); }

/* ----- Carousel arrows ----- */
.car-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: #0e2a5e; border: 1px solid rgba(56,189,248,0.3); color: #e0f2fe;
  font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background 0.15s;
}
.car-btn:hover { background: #14387a; }

/* ----- Slot poster popover: also reveal when JS adds .open (touch) ----- */
.slot-poster.open .poster-pop { transform: translateY(0); opacity: 1; }

/* ----- Interactive chart ----- */
.chart { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.chart-row { display: grid; grid-template-columns: 7rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.chart-label { color: var(--muted); }
.chart-bar { height: 0.85rem; border-radius: 9999px; background: rgba(56,189,248,0.12); overflow: hidden; }
.chart-fill { display: block; height: 100%; width: 0; border-radius: 9999px; transition: width 1s cubic-bezier(.22,1,.36,1); cursor: help; }
.chart.in .chart-fill { width: var(--w); }
.chart-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* ----- FAQ ----- */
.faq-item { background: var(--surface); border: 1px solid rgba(56,189,248,0.15); border-radius: 1rem; padding: 0.5rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--muted); padding-bottom: 0.5rem; margin: 0; }

/* ----- Prose (Tailwind CDN ships no typography plugin) ----- */
.prose, .prose-invert { line-height: 1.7; }
.prose h2 { font-size: 1.75rem; font-weight: 800; margin: 2rem 0 0.75rem; line-height: 1.25; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: #a5f3d0; }
.prose h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.35rem; color: #7dd3fc; }
.prose p { margin: 0.75rem 0; color: rgba(224,242,254,0.85); }
.prose figure { margin: 1.25rem 0; }
.prose figure img { width: 100%; border-radius: 1rem; border: 1px solid rgba(56,189,248,0.2); }
.prose figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(56,189,248,0.15); text-align: left; }
.prose th { background: var(--surface); font-weight: 600; color: #a5f3d0; }
.prose strong { font-weight: 700; color: var(--text); }
