/* ── NaijaBuzz overlays.css — PWA banners, cookie, nudge bar, back-to-top ── */
#nb-new-banner {
  position: fixed;
  top: calc(var(--header-h) + 32px);
  left: 0; right: 0;
  z-index: 1001;
  background: #16a34a; color: #fff;
  display: flex; visibility: hidden;
  align-items: center; justify-content: center;
  gap: 0.6rem; padding: 0.6rem 1rem;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: none; width: 100%;
  letter-spacing: 0.01em;
  transition: visibility 0s .3s, opacity .3s ease, transform .3s ease;
  box-shadow: 0 3px 12px rgba(22,163,74,0.4);
  transform: translateY(-100%); opacity: 0;
  pointer-events: none;
}
#nb-new-banner.visible {
  visibility: visible; transform: translateY(0);
  opacity: 1; pointer-events: auto;
  transition: visibility 0s, opacity .3s ease, transform .3s ease;
}
#nb-new-banner:hover { background: #15803d; }
.nb-banner-arrow { font-size: 0.9rem; line-height: 1; opacity: 0.85; }
#nb-banner-msg { flex: 0 1 auto; }
#nb-banner-close {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  font-size: 0.75rem; cursor: pointer; line-height: 1;
  padding: 2px 7px; border-radius: 9999px; font-weight: 900;
  margin-left: 0.25rem; flex-shrink: 0;
}
#nb-banner-close:hover { background: rgba(255,255,255,0.3); }
#nb-back-top {
  position: fixed; bottom: 5rem; right: 1.5rem;
  background: var(--primary); color: var(--gold);
  border: none; border-radius: 9999px;
  width: 44px; height: 44px;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: all .2s; z-index: 900;
}
#nb-back-top.visible { display: flex; }
#nb-back-top:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
#nb-back-top svg { width: 20px; height: 20px; }
#nb-install-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1c1c1c; color: #fff;
  padding: .9rem 1.2rem; display: none;
  align-items: center; gap: .8rem;
  z-index: 3000; box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  border-top: 2px solid var(--gold);
  transform: translateY(100%); transition: transform .35s ease;
}
#nb-install-banner.visible { display: flex; transform: translateY(0); }
#nb-install-banner.pushed { transform: translateY(-80px); }
.nb-install-info { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.nb-install-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-install-text strong { font-size: 0.9rem; }
.nb-install-text span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.nb-install-btn { background: var(--gold); color: var(--primary); border: none; border-radius: 8px; padding: 0.45rem 1.1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; flex-shrink: 0; font-family: inherit; transition: background .2s; }
.nb-install-btn:hover { background: var(--gold-dark); }
.nb-install-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.4rem; cursor: pointer; padding: 0 0.2rem; flex-shrink: 0; line-height: 1; }
#nb-ios-banner {
  display: none; position: fixed; bottom: 1.2rem;
  left: 50%; transform: translateX(-50%);
  background: rgba(28,28,28,0.97);
  color: #fff; border-radius: 16px;
  padding: 1.2rem 1.4rem; text-align: center;
  z-index: 3000; width: min(320px, calc(100vw - 2rem));
  border: 1px solid rgba(255,255,255,0.12);
}
#nb-ios-banner.visible { display: block; }
.nb-ios-close { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.nb-ios-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.nb-ios-hint { font-size: 0.82rem; opacity: .65; line-height: 1.6; }
#nb-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; color: #fff;
  padding: 1.1rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; z-index: 4000;
  box-shadow: 0 -6px 30px rgba(0,0,0,0.6);
  border-top: 3px solid #e63946;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
  visibility: hidden; pointer-events: none;
}
#nb-cookie-banner.visible { transform: translateY(0); visibility: visible; pointer-events: auto; }
.nb-cookie-text { display: flex; flex-direction: row; align-items: center; flex: 1; min-width: 0; gap: 1.5rem; flex-wrap: wrap; }
.nb-cookie-text strong { font-size: 1.1rem; font-weight: 900; color: #fff; white-space: nowrap; }
.nb-cookie-text span { font-size: 0.92rem; color: rgba(255,255,255,0.85); line-height: 1.5; flex: 1; }
.nb-cookie-link { color: var(--gold); text-decoration: underline; font-size: 0.78rem; }
.nb-cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.nb-cookie-btn { padding: 0.55rem 1.3rem; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity .2s, transform .15s; }
.nb-cookie-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.nb-cookie-accept { background: #e63946; color: #fff; }
.nb-cookie-decline { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25); }

/* ── Category sheet (mobile bottom nav) ── */
#nb-cats-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}
#nb-cats-overlay.open { display: block; }
#nb-cats-sheet {
  position: fixed;
  bottom: 56px;
  left: 0; right: 0;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  border-top: 2px solid var(--gold);
  z-index: 1600;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  max-height: 70vh;
  overflow-y: auto;
}
#nb-cats-sheet.open { transform: translateY(0); }
.nb-cats-sheet-inner { padding: 0 1rem 1.5rem; }
.nb-cats-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--card);
}
.nb-cats-sheet-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.nb-cats-sheet-close {
  background: var(--border);
  border: none;
  color: var(--text2);
  font-size: 1.1rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nb-cats-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.nb-cats-sheet-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: all .15s;
}
.nb-cats-sheet-item:hover,
.nb-cats-sheet-item.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
