/**
 * hub-bell.css — the notifications bell and its drawer (assets/js/hub-bell.js,
 * DMD Ops #519, John 2026-10-20: mock B "Rider's drawer"). Loaded by menu.php
 * on every page. Everything is scoped to .hub-bell / .hb-*.
 */

/* ── the bell in the header ─────────────────────────────────────────────── */
.hub-bell {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.hub-bell .bx { font-size: 23px; }
.hub-bell:hover, .hub-bell[aria-expanded="true"] { background: #1c2434; }
.hub-bell:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.hub-bell.has-new { background: rgba(59, 118, 240, .22); border-color: #3b76f0; padding: 0 14px 0 11px; }
.hub-bell.has-new:hover { background: rgba(59, 118, 240, .32); }
@media (max-width: 991.98px) {
  .hub-bell .hub-bell-word { display: none; }   /* a phone shows the number only */
  .hub-bell.has-new { padding: 0 12px 0 10px; }
}

/* ── signed out: the invitation under the bell ──────────────────────────── */
.hb-invite {
  position: fixed; z-index: 13060; width: min(340px, calc(100vw - 24px));
  background: #121826; border: 1px solid #273145; border-radius: 14px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: #e6ebf3;
}
.hb-invite h3 { margin: 12px 0 0; font-size: 22px; color: #fff; }
.hb-invite p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #c3cad6; }
.hb-invite-ic { width: 48px; height: 48px; border-radius: 50%; background: #17213a; color: #8fb4ff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.hb-invite-act { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ── the drawer (desktop) / the sheet (phone) ───────────────────────────── */
html.hb-lock, html.hb-lock body { overflow: hidden; }
.hb-backdrop {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 13040;
  background: rgba(4, 7, 12, .62); opacity: 0; transition: opacity .2s ease;
}
.hb-backdrop.is-open { opacity: 1; }
.hb-drawer {
  position: fixed; right: 0; bottom: 0; z-index: 13050; width: 488px; max-width: 100vw;
  background: #10161f; border-left: 1px solid #263043; box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; color: #e6ebf3;
  transform: translateX(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.hb-drawer.is-open { transform: none; opacity: 1; }
.hb-drawer.is-sheet {
  left: 0; width: auto; border-left: 0; border-top: 1px solid #2a3446; border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); transform: translateY(40px);
}
.hb-drawer.is-sheet.is-open { transform: none; }
.hb-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: #3a4558; margin: 8px auto 0; flex: 0 0 auto; }
.hb-drawer.is-sheet .hb-grab { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hb-drawer, .hb-backdrop { transition: none; }
}

.hb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 12px 6px 22px; flex: 0 0 auto; }
.hb-title { margin: 0; font-size: 28px; line-height: 1.05; color: #fff; }
.hb-sub { margin-top: 3px; font-size: 14px; color: #9aa5b6; }
.hb-tools { display: flex; gap: 2px; }
.hb-icon {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #c3cad6;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; padding: 0; text-decoration: none;
}
.hb-icon:hover { background: #1f2838; color: #fff; }
.hb-icon:disabled { opacity: .35; cursor: default; background: transparent; }
.hb-icon-sm { width: 36px; height: 36px; font-size: 18px; margin-left: auto; }
.hb-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 24px; }
.hb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hb-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #9aa5b6; margin: 16px 0 8px; }

/* riders you follow */
.hb-riders-wrap .hb-label { margin-top: 8px; }
.hb-riders { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.hb-riders::-webkit-scrollbar { display: none; }
.hb-rider { flex: 0 0 64px; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cfd6e2; cursor: pointer; }
/* a block exactly the avatar's size, so the ring is a true circle around it (an inline
   wrapper took the line's height and drew the ring as an oval, John 20 Oct) */
.hb-rider-av { position: relative; display: block; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; box-shadow: 0 0 0 2px #10161f, 0 0 0 4px #334155; }
.hb-rider-av > .hb-av { display: flex; width: 52px !important; height: 52px !important; }
.hb-rider.is-new .hb-rider-av { box-shadow: 0 0 0 2px #10161f, 0 0 0 4px #3b76f0; }
.hb-rider.is-live .hb-rider-av { box-shadow: 0 0 0 2px #10161f, 0 0 0 4px #ff4136; }
.hb-rider:hover .hb-rider-av, .hb-rider:focus-visible .hb-rider-av { box-shadow: 0 0 0 2px #10161f, 0 0 0 4px #8fb4ff; }
.hb-rider-name { font-size: 13px; margin-top: 2px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-rider-n { position: absolute; right: -5px; top: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #3b76f0; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px #10161f; }
.hb-live-tag { background: #e5372c; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; line-height: 1.5; }
.hb-rider .hb-live-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); box-shadow: 0 0 0 2px #10161f; }

/* For you | Following */
.hb-lanes { display: flex; gap: 4px; margin: 8px 0 4px; padding: 4px; background: #0b1018; border: 1px solid #1f2837; border-radius: 12px; position: sticky; top: 0; z-index: 2; }
.hb-lane { flex: 1; height: 40px; border: 0; border-radius: 9px; background: transparent; color: #9aa5b6; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.hb-lane.is-on { background: #222b3c; color: #fff; }
.hb-lane:hover { color: #fff; }
.hb-lane-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #3b76f0; color: #fff; font-size: 12px; line-height: 20px; }

/* avatars and pictures */
.hb-av { flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #334155; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.hb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-tile { flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: #18233a; display: inline-flex; align-items: center; justify-content: center; }
.hb-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-tile .bx { font-size: 26px; }
.hb-date { background: #2b1d4a; flex-direction: column; line-height: 1; }
.hb-date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #d8b4fe; }
.hb-date b { font-size: 22px; color: #fff; }

/* cards */
.hb-card { position: relative; background: #161d29; border: 1px solid #242d3d; border-radius: 14px; padding: 14px; margin-bottom: 12px; transition: border-color .15s ease, box-shadow .3s ease; }
.hb-card:hover { border-color: #34405a; }
.hb-card.is-unread { background: #172034; }
.hb-card-live { border-color: #4a2a2c; }
.hb-flash { box-shadow: 0 0 0 2px #8fb4ff; }
.hb-dot { position: absolute; top: 16px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; }
.hb-item { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; padding-right: 18px; }
.hb-item:hover .hb-item-t { text-decoration: underline; }
.hb-item-text { min-width: 0; display: flex; flex-direction: column; }
.hb-item-t { font-weight: 700; color: #fff; font-size: 16px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hb-item-m { font-size: 13px; color: #8d98aa; font-weight: 600; margin-top: 2px; }
.hb-bubble-row { display: flex; gap: 10px; margin-top: 12px; }
.hb-bubble { flex: 1; min-width: 0; background: #1d2533; border-radius: 4px 12px 12px 12px; padding: 9px 12px; }
.hb-bname { font-size: 14px; color: #cfd6e2; }
.hb-bname b { color: #fff; }
.hb-btext { font-size: 14.5px; color: #cfd6e2; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hb-time { color: #8d98aa; font-weight: 400; white-space: nowrap; }
.hb-also { font-size: 13px; color: #9aa5b6; margin: 8px 0 0 42px; }
.hb-actions { display: flex; gap: 8px; margin: 12px 0 0 42px; flex-wrap: wrap; align-items: center; }
.hb-who { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #cfd6e2; padding-right: 18px; }
.hb-who b { color: #fff; }
.hb-who + .hb-actions, .hb-post + .hb-actions { margin-left: 0; }
.hb-live-inline { margin-left: auto; }
.hb-card-live .hb-dot { display: none; }
.hb-live-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hb-live-t { font-size: 14px; color: #cfd6e2; }
.hb-live-t b { color: #fff; }
.hb-post { font-size: 14.5px; color: #cfd6e2; margin-top: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.hb-kids { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-kids-1 { grid-template-columns: minmax(0, 1fr); }
.hb-kids-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-kid { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.hb-kid .hb-tile { width: 100%; height: 76px; border-radius: 8px; }
.hb-kids-1 .hb-kid .hb-tile { height: 140px; }
.hb-kid-t { font-size: 13px; font-weight: 600; color: #fff; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-kid-m { font-size: 12px; color: #9aa5b6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-kid:hover .hb-kid-t { text-decoration: underline; }
.hb-kids-more { display: inline-block; margin-top: 8px; font-size: 14px; }

/* one-line notifications */
.hb-rowwrap { margin-bottom: 4px; }
.hb-row { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 28px 10px 12px; border-radius: 12px; color: #cfd6e2; text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.hb-row:hover { background: #161d29; color: #cfd6e2; }
.hb-row.is-unread { background: #151d2d; }
.hb-row b { color: #fff; }
.hb-row .hb-dot { top: 50%; margin-top: -5px; right: 12px; }
.hb-ric { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.hb-rtext { min-width: 0; overflow-wrap: anywhere; }

/* buttons */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid #34405a; background: transparent; color: #e6ebf3; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.hb-btn:hover { background: #1f2838; color: #fff; }
.hb-btn-sm { min-height: 36px; padding: 0 14px; }
.hb-btn-ghost { border-color: transparent; color: #8fb4ff; }
.hb-btn-ghost:hover { color: #c3d6ff; }
.hb-btn-primary { background: #3b76f0; border-color: #3b76f0; color: #fff; }
.hb-btn-primary:hover { background: #2f63d4; border-color: #2f63d4; }
.hb-btn-live { background: #e5372c; border-color: #e5372c; color: #fff; }
.hb-btn-live:hover { background: #c82c22; border-color: #c82c22; }
.hb-btn:focus-visible, .hb-icon:focus-visible, .hb-lane:focus-visible, .hb-row:focus-visible, .hb-item:focus-visible, .hb-kid:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.hb-link { border: 0; background: transparent; color: #8fb4ff; font-weight: 600; padding: 0; cursor: pointer; text-decoration: none; }
.hb-more { width: 100%; margin-top: 8px; }

/* reply in place */
.hb-reply { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 0 42px; }
.hb-reply[hidden] { display: none; }
.hb-reply textarea {
  flex: 1; min-width: 0; resize: vertical; min-height: 44px; background: #0f141c; border: 1px solid #34405a; border-radius: 10px;
  color: #e6ebf3; padding: 9px 11px; font-size: 15px; font-family: inherit;
}
.hb-reply textarea:focus { outline: none; border-color: #8fb4ff; }
.hb-note { margin: 10px 0 0 42px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.hb-note[hidden] { display: none; }
.hb-note.is-ok { color: #86efac; }
.hb-note.is-err { color: #fca5a5; }
.hb-thread { margin-top: 12px; border-top: 1px solid #242d3d; padding-top: 10px; }
.hb-thread[hidden] { display: none; }
.hb-rowwrap .hb-thread { margin: 4px 12px 12px; }
/* a post opened in the bell: its words and photo above its conversation */
.hb-post-full { font-size: 15px; line-height: 1.5; color: #e6ebf3; white-space: pre-line; overflow-wrap: anywhere; }
.hb-post-img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-top: 10px; }
.hb-thread-mount { margin-top: 12px; }
.hb-muted { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border: 1px dashed #2c3546; border-radius: 14px; font-size: 14px; color: #9aa5b6; }
.hb-muted b { color: #cfd6e2; }
.hb-muted .hb-link { margin-left: auto; }

/* empty, loading */
.hb-loading { padding: 40px 0; text-align: center; color: #9aa5b6; }
.hb-empty { text-align: center; padding: 36px 12px; color: #a9b3c4; }
.hb-empty h3 { margin: 12px 0 4px; font-size: 19px; color: #fff; }
.hb-empty p { margin: 0 auto 14px; max-width: 340px; font-size: 15px; line-height: 1.45; }
.hb-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: #17213a; color: #8fb4ff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; }

/* ── /notifications/: the same list as a page ───────────────────────────── */
.hb-page { max-width: 720px; margin: 0 auto; color: #e6ebf3; }
.hb-page .hb-head { padding: 0 0 6px; }
.hb-page .hb-title { font-size: 34px; }
.hb-page .hb-body { overflow: visible; padding: 4px 0 24px; }
.hb-page .hb-lanes { top: 70px; }
@media (max-width: 575.98px) {
  .hb-body { padding: 4px 14px 24px; }
  .hb-head { padding-left: 16px; }
  .hb-actions, .hb-also, .hb-reply, .hb-note { margin-left: 0; }
  .hb-page .hb-body { padding: 4px 0 24px; }
}
