/* librarian-pills.css — shared "liquid glass" cross-nav pills.
   Used by the librarian app pages (dashboard, lists, embed) to make it
   one-click easy to jump between the librarian features. */

.lb-cross-nav {
  max-width: 920px;
  margin: 24px auto 8px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.lb-cross-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #2d1f5e;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: -0.005em;
  box-shadow:
    0 8px 22px rgba(74, 0, 224, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.lb-cross-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 32px rgba(74, 0, 224, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.lb-cross-pill:active { transform: translateY(0); }
.lb-cross-pill:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* "You are here" — solid gold pill, no hover lift. Used on the primary nav
   row of browse/search/chat so the librarian sees which page they're on. */
.lb-cross-pill.active {
  background: #ffd700;
  border-color: #fff;
  color: #2d1f5e;
  cursor: default;
  pointer-events: none;
  box-shadow:
    0 10px 26px rgba(245, 166, 35, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.lb-cross-pill.active:hover { transform: none; background: #ffd700; border-color: #fff; }

/* Two-row layout used on browse / search / chat. Specificity is raised to
   `.lb-hero .lb-cross-nav.lb-{primary|secondary}` (3 classes) so it wins
   against per-page inline overrides that use `.lb-hero .lb-cross-nav`
   (2 classes) and zero out the margin — that collision was making the two
   rows visually overlap. */
.lb-hero .lb-cross-nav.lb-primary,
.ld-hero .lb-cross-nav.lb-primary {
  margin: 0 auto 14px;
  padding: 0;
}
.lb-hero .lb-cross-nav.lb-secondary,
.ld-hero .lb-cross-nav.lb-secondary {
  margin: 0 auto 24px;
  padding: 0;
  opacity: 0.86;
}
.lb-hero .lb-cross-nav.lb-secondary .lb-cross-pill,
.ld-hero .lb-cross-nav.lb-secondary .lb-cross-pill {
  padding: 8px 16px;
  font-size: 0.82rem;
}
@media (max-width: 640px) {
  .lb-hero .lb-cross-nav.lb-primary,
  .ld-hero .lb-cross-nav.lb-primary { margin-bottom: 10px; }
  .lb-hero .lb-cross-nav.lb-secondary,
  .ld-hero .lb-cross-nav.lb-secondary { margin-bottom: 18px; }
}

/* Brand owl in the hero — small, glowing, sits above the nav rows. Matches
   the .mk-hero treatment on /librarians, scaled down so it's a brand mark
   rather than a marketing splash. */
.lb-hero-logo {
  display: block;
  margin: 0 auto 14px;
  height: 56px;
  width: auto;
  filter:
    drop-shadow(0 0 5px #fff)
    drop-shadow(0 0 5px #fff)
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.65));
}
@media (max-width: 640px) {
  .lb-hero-logo { height: 44px; margin-bottom: 10px; }
}

.lb-cross-pill span:first-child {
  font-size: 1.05em;
  line-height: 1;
}

/* Dark-area variant (e.g. dashboard hero spillover) — opt-in via .dark class */
.lb-cross-nav.dark .lb-cross-pill {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lb-cross-nav.dark .lb-cross-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (max-width: 640px) {
  .lb-cross-nav { gap: 8px; padding: 0 14px; margin-top: 18px; }
  .lb-cross-pill { padding: 9px 16px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-cross-pill { transition: none; }
}

/* Print: hide pills */
@media print {
  .lb-cross-nav { display: none !important; }
}

/* Ambient spinning light inside the hero — restored from legacy.
   A soft white radial slowly rotates behind the hero content, so the
   frosted-glass nav pills sit inside a moving halo of purple-tinted
   light rather than a flat gradient. */
.lb-hero, .ld-hero { position: relative; overflow: hidden; }
.lb-hero::after, .ld-hero::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  animation: lb-hero-spin 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}
/* Keep hero content above the spinning radial — needed because per-page
   inline CSS sets `.lb-hero > * { z-index: 1 }` but child stacking contexts
   (e.g. <nav> elements) can otherwise paint under absolutely-positioned
   pseudo-elements depending on browser. */
.lb-hero > *, .ld-hero > * { position: relative; z-index: 2; }
@keyframes lb-hero-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .lb-hero::after, .ld-hero::after { animation: none; }
}
