/*
 * btravstack theme — base styles + reusable component classes for plain
 * HTML surfaces (the landing page, and any hand-authored page).
 *
 * Single entry point: linking this file pulls in the fonts and tokens too.
 *   <link rel="stylesheet" href="theme/theme.css">
 *
 * VitePress docs sites should NOT use this file — they use vitepress.css,
 * which maps the same tokens onto VitePress's own theme variables.
 */
@import "./fonts.css";
@import "./tokens.css";

/* ── Base ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--accent-rgb), 0.32); }

/* ── Motion ────────────────────────────────────────────────────── */
@keyframes floaty   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glowpulse{ 0%, 100% { opacity: .55; } 50% { opacity: .8; } }

/* ── Links / nav ───────────────────────────────────────────────── */
a.navlink {
  color: var(--muted);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--speed-fast), background var(--speed-fast);
}
a.navlink:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.foot-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--speed-fast);
}
.foot-link:hover { color: var(--accent); }

.repolink { transition: color var(--speed-fast); }
.repolink:hover { color: var(--accent); }

/* ── Cards ─────────────────────────────────────────────────────── */
.pcard { transition: transform var(--speed) ease, border-color var(--speed) ease, box-shadow var(--speed) ease; }
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-card);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.cta-primary:hover { filter: brightness(1.07); }
.cta-ghost:hover   { background: rgba(255, 255, 255, 0.06); border-color: var(--border-2); }

/* ── Code block (click-to-copy) ────────────────────────────────── */
.codeblk { cursor: pointer; transition: border-color var(--speed-fast), background var(--speed-fast); }
.codeblk:hover { border-color: var(--border-2); background: rgba(0, 0, 0, 0.45); }

/* ── Responsive helpers ────────────────────────────────────────── */
@media (max-width: 880px) {
  .grid-3   { grid-template-columns: 1fr !important; }
  .foot-grid{ grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .nav-hide { display: none !important; }
  .foot-grid{ grid-template-columns: 1fr !important; }
}
