/* ============================================================
   LITHOSPHERES.COM THEME v1
   Loads AFTER bingoboardtv's style.css and re-skins the site:
   new fonts, palette (deep space + violet/mint), depth & glow.
   All tool pages style via CSS vars, so overriding vars here
   re-themes every page at once.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap');

:root, html[data-theme="dark"] {
  --bg: #0a0e1a;
  --panel: #121a2e;
  --panel2: #0d1424;
  --line: #24304d;
  --ink: #eef2ff;
  --muted: #96a2c2;
  --accent: #8b5cf6;   /* violet — actions */
  --accent2: #2ee6a8;  /* mint — highlights & numbers */
  --lp-glow: rgba(139, 92, 246, .14);
}

/* ---------- typography ---------- */
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--bg);
}
h1, h2, h3, .brand {
  font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  letter-spacing: -.01em;
}
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

/* ---------- atmospheric background (screen only, never print) ---------- */
@media screen {
  body {
    background-image:
      radial-gradient(1100px 500px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
      radial-gradient(900px 460px at -10% 8%, rgba(46, 230, 168, .10), transparent 55%),
      radial-gradient(700px 700px at 50% 115%, rgba(99, 102, 241, .12), transparent 60%),
      linear-gradient(180deg, #0a0e1a 0%, #0b101f 100%);
    background-attachment: fixed;
  }
  /* faint dot grid for texture */
  .site {
    background-image: radial-gradient(rgba(148, 163, 208, .07) 1px, transparent 1.4px);
    background-size: 26px 26px;
  }
}

/* ---------- nav ---------- */
.nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, .72);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand span { color: var(--accent2); }
.brand-logo { width: 28px; height: 28px; display: block; filter: drop-shadow(0 2px 8px rgba(139, 92, 246, .45)); }
.brand:hover .brand-logo { filter: drop-shadow(0 2px 12px rgba(46, 230, 168, .55)); }

/* ---------- buttons ---------- */
.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(139, 92, 246, .45); }
.btn.ghost:hover { border-color: var(--accent2); }

/* ---------- panels / stats / cards (shared component polish) ---------- */
.calc-stat, .faq-item, .tool-card, .calc-grid, .tg-controls, .tg-quick, .tg-live,
.pcard, .sk-row, .gl-row, .rps-show, .overlay-card, .lp-search input, .disp {
  border-radius: 14px;
}
.calc-stat {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.calc-stat.big { border-color: rgba(46, 230, 168, .55); box-shadow: 0 0 0 1px rgba(46,230,168,.12), 0 10px 30px rgba(0,0,0,.25); }
.calc-stat b { font-family: 'Bricolage Grotesque', sans-serif; }
.faq-item { background: linear-gradient(180deg, var(--panel), var(--panel2)); }
.faq-item h3 { color: var(--ink); }

/* inputs */
input, select, textarea {
  border-radius: 10px !important;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--lp-glow);
}

/* hero lead width comfort */
.hero .lead, .lp-hero .lead { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px !important; padding-top: 22px !important; }
.foot a { color: var(--accent2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- ad containers (hidden until a slot is configured) ---------- */
.ad-box { display: none; }
.ad-box.on {
  display: block;
  max-width: 820px;
  margin: 18px auto;
  padding: 8px 12px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.ad-box.on::before {
  content: "Advertisement";
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
@media print { .ad-box { display: none !important; } }

/* ---------- printables: keep paper white & clean ---------- */
.paper, .chart, .board, .gp, .lp, .cert, .bcard, .tabla, .plade { color-scheme: light; }
