/* Global notifications bell. Loaded by /feed/ inline; the bell drawer
   is mounted into nav-10 by ga-feed.js. The drawer is a fixed
   floating panel anchored to the bell button. */

.ga-bell { position: relative; display: inline-block; }
.ga-bell-host { display: inline-flex; align-items: center; }

.ga-bell-btn {
  background: none;
  border: 0;
  padding: 6px;
  margin: 0 6px;
  position: relative;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ga-bell-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.ga-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.ga-bell-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: 480px;
  margin-top: 8px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 1080;
  overflow: hidden;
}

.ga-bell-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ga-bell-mark-all {
  background: none;
  border: 0;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}
.ga-bell-mark-all:hover { color: #111; }

.ga-bell-list {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.ga-bell-list .ga-feed-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
}
.ga-bell-list .ga-feed-item:last-child { border-bottom: 0; }
.ga-bell-list .ga-feed-item-unread { background: rgba(230, 57, 70, 0.06); }
.ga-bell-list .ga-feed-link { display: flex; gap: 10px; color: inherit; text-decoration: none; }
.ga-bell-list .ga-feed-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover;
}
.ga-bell-list .ga-feed-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: #eee; font-size: 11px; font-weight: 600;
}
.ga-bell-list .ga-feed-text { font-size: 14px; line-height: 1.35; }
.ga-bell-list .ga-feed-time { font-size: 11px; color: #888; margin-top: 2px; display: block; }
.ga-bell-list .ga-bell-empty,
.ga-bell-list .ga-bell-loading { padding: 24px 16px; text-align: center; }

.ga-bell-drawer-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 13px;
}

.ga-bell-floating { position: fixed; top: 16px; right: 16px; z-index: 1080; }
