/* RobX shared profile-pill — light glassmorphism chip used in blox.php and
 * other public pages. All styles scoped under `.pp-root` so the module
 * never bleeds onto the host page.
 *
 * Public DOM: a single host div is replaced by either `.pp-login` (anon)
 * or `.pp-pill` (signed in). The dropdown menu is portalled to the body
 * with position:fixed so it always escapes parent overflow/transform.
 */

.pp-root { font-family: "Nunito Sans", "Roboto", system-ui, sans-serif; }

/* Anonymous: login chip */
.pp-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(180deg, #4aa9ff, #005BFF);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 91, 255, 0.32);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.pp-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 91, 255, 0.42); filter: brightness(1.05); }
.pp-login i { font-size: 12px; }

/* Signed in: avatar + name chip */
.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 14px 3px 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  color: #3c4043;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.12);
  transition: background 140ms ease, box-shadow 140ms ease;
}
.pp-pill:hover { background: #fff; box-shadow: 0 4px 14px rgba(60, 64, 67, 0.18); }
.pp-pill.open  { background: #fff; box-shadow: 0 4px 14px rgba(60, 64, 67, 0.22); }

.pp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eaed;
  flex-shrink: 0;
}
.pp-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #005BFF;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}
.pp-avatar[hidden], .pp-avatar-fallback[hidden] { display: none; }

.pp-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-caret { font-size: 9px; color: #5f6368; opacity: 0.8; }

/* Dropdown menu (portalled to body) */
.pp-menu {
  position: fixed;
  z-index: 5300;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(60, 64, 67, 0.18);
  font-family: "Nunito Sans", "Roboto", system-ui, sans-serif;
  font-size: 14px;
  animation: pp-menu-in 140ms ease;
}
@keyframes pp-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pp-menu .pp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #3c4043;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}
.pp-menu .pp-item:hover { background: #f1f3f4; color: #005BFF; }
.pp-menu .pp-item i { width: 16px; text-align: center; color: #5f6368; }
.pp-menu .pp-item:hover i { color: #005BFF; }
.pp-menu .pp-sep { height: 1px; background: rgba(0, 0, 0, 0.06); margin: 4px 6px; }
