/* -----------------------------------------------------------------
 * Bearo Casino — custom CSS
 * Tailwind (CDN) handles utilities. This file holds the honey/forest
 * design tokens, the left-sidebar layout, prose readability,
 * the responsible-gambling quiz, slot cards, the 3D nav buttons,
 * and the two chosen animations: float + shimmer.
 * ----------------------------------------------------------------- */

:root {
  --accent: #F4B740;        /* honey gold — primary CTA */
  --accent-2: #C97B16;      /* darker amber — gradient pair / ledge */
  --bg: #0E1B14;            /* deep forest green-charcoal */
  --bg-2: #122319;          /* slightly lighter forest panel */
  --surface: rgba(244, 183, 64, 0.06);
  --surface-2: rgba(244, 183, 64, 0.12);
  --line: rgba(244, 183, 64, 0.16);
  --text: #F3ECD9;          /* warm cream */
  --muted: rgba(243, 236, 217, 0.66);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(244, 183, 64, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
}

/* ----- Left sidebar layout ----- */
.layout-shell { min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .layout-shell { display: grid; grid-template-columns: 18rem 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; }
}

/* ----- Prose readability (no Tailwind typography plugin on CDN) ----- */
.prose { line-height: 1.75; color: var(--text); }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 1.25rem; line-height: 1.2; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; line-height: 1.3; color: #F8D98C; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: #F8D98C; }
.prose p { margin: 0.75rem 0; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose ol { list-style: decimal; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: #FBE6B4; }
.prose img { border-radius: 1rem; margin: 1.25rem 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); font-weight: 600; color: #FBE6B4; }
.prose details {
  border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 0.75rem 1rem; margin: 0.6rem 0; background: var(--surface);
}
.prose summary { cursor: pointer; font-weight: 600; }

/* ----- 3D nav buttons (always present, independent of animations) ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-2);
  --btn-ink: #2A1A05;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  font-weight: 700; line-height: 1;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 10px -4px rgba(0,0,0,0.55);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.06); }
.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);
}
/* Ghost variant for secondary sidebar links */
.btn-3d.is-ghost {
  --btn-ink: var(--text);
  background: var(--surface-2);
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.35);
}

/* ----- Responsible-gambling quiz ----- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* ----- Cards / surfaces ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.bento-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.5rem; }

/* ----- Slot + live cards ----- */
.slot-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg-2); display: block; }
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.slot-card:hover img { transform: scale(1.06); }
.slot-card .meta {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0.6rem 0.7rem 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(8,16,12,0.92));
}
.slot-card .meta h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.1; }
.slot-card .meta p { font-size: 0.7rem; color: var(--muted); }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #2A1A05; font-size: 0.62rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}

/* ----- Recent big winner overlay ----- */
.big-winner { position: relative; }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(8,16,12,0.66); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.95rem;
  border: 1px solid var(--line);
}

/* =================================================================
 * ANIMATIONS — chosen for this build: float + shimmer
 * ================================================================= */

/* float — gentle vertical bob on hero panel + cards */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 4.5s ease-in-out infinite; }

/* shimmer — sweeping honey light across headline text / accents */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #FFF3D6 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .float, .shimmer { animation: none; }
}
