/* Shared NotToBla.me header. Keep this file last in each page's stylesheet list. */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  width: min(1080px, calc(100% - 2rem));
  min-height: 56px;
  margin: 0;
  padding: .45rem .7rem;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(157,177,205,.22);
  border-radius: 999px;
  background: rgba(7,11,20,.78);
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.topbar-left,
.topbar-center,
.topbar-right { min-width: 0; }
.topbar-left { display: flex; align-items: center; gap: .65rem; }
.topbar-left .profile-image { width: 36px; height: 36px; border: 1px solid rgba(157,177,205,.3); border-radius: 50%; object-fit: cover; }
.topbar-left .name { color: #eef2fb; font-size: .92rem; letter-spacing: -.02em; }
.topbar-socials { display: flex; align-items: center; gap: .3rem; margin-left: .15rem; }
.topbar-socials .social-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #9ba9be;
  border: 1px solid rgba(157,177,205,.18);
  border-radius: 7px;
  background: rgba(157,177,205,.06);
  font-size: .7rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.topbar-socials .social-link i { font-size: .72rem; }
.topbar-socials .social-link:hover { color: #eef2fb; border-color: rgba(139,124,255,.46); background: rgba(139,124,255,.15); transform: translateY(-1px); }
.topbar-center { display: flex; justify-content: center; justify-self: center; }
.topbar-center .nav-links { gap: 2rem; }
.topbar-center .nav-links li a {
  padding: .55rem .72rem;
  color: #9ba9be;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.topbar-center .nav-links li a i { display: inline-block; margin-right: .42rem; color: currentColor; font-size: .72rem; transition: transform .2s ease, color .2s ease; }
.topbar-center .nav-links li a:hover,
.topbar-center .nav-links li a.active { color: #eef2fb; border-color: rgba(139,124,255,.18); background: rgba(139,124,255,.16); box-shadow: inset 0 -2px 0 #8b7cff; transform: translateY(-1px); }
.topbar-center .nav-links li a:hover i,
.topbar-center .nav-links li a.active i { color: #8b7cff; transform: translateY(-1px); }
body.chat-widget-page .topbar-center .nav-links li a { border-radius: 999px !important; }
.topbar-right { display: flex; align-items: center; justify-self: end; gap: .5rem; }
.topbar-right .social-link { width: 28px; height: 28px; }
.topbar::after { display: none !important; }
body > .topbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); }
.compact-product-banner { padding-top: 1.65rem; padding-bottom: 1.5rem; }
.compact-product-banner .hero-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.compact-product-banner .hero-subtitle { margin-top: .55rem; font-size: .95rem; }
.compact-product-banner .hero-blurb { max-width: 58ch; margin-top: .45rem; font-size: .88rem; }
.compact-product-banner .hero-cta { margin-top: 1rem; }

/* Resource-pack pages use the pinned shared header, so keep their first
   content block clear of it when the page opens at scroll position zero. */
.resource-pack-page > .page-banner { margin-top: 90px; }

@media (max-width: 720px) {
  .topbar { width: calc(100% - 1rem); min-height: 50px; padding: .35rem .5rem; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; }
  .topbar-left { gap: .42rem; overflow: hidden; }
  .topbar-left .profile-image { width: 32px; height: 32px; }
  .topbar-left .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
  .topbar-socials { flex: 0 0 auto; gap: .22rem; }
  .topbar-socials .social-link { width: 24px; height: 24px; border-radius: 6px; }
  .topbar-center { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-top: .2rem; overflow-x: auto; justify-self: stretch; scrollbar-width: none; }
  .topbar-center::-webkit-scrollbar { display: none; }
  .topbar-center .nav-links { justify-content: center; }
  .resource-pack-page > .page-banner { margin-top: 118px; }
}

@media (max-width: 640px) {
  .topbar, body > .topbar { top: 8px; }
  .topbar-left .profile-image { width: 30px; height: 30px; }
  .topbar-socials .social-link { width: 23px; height: 23px; font-size: .65rem; }
  .topbar-socials .social-link i { font-size: .66rem; }
}
