/* ═══════════════════════════════════════════════════
   GC TOPBAR ADDON — gc-topbar-addon.css
   Adds wallet chips + icon buttons to existing ns-topbar.
   Load AFTER topbar.css
═══════════════════════════════════════════════════ */

/* ── RIGHT CLUSTER injected into ns-topbar ── */
.gct-right {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  border-left: 1px solid rgba(8,238,254,0.14);
  flex-shrink: 0;
}

/* wallet chips */
.gct-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 0 11px; height: 36px;
  font-size: 0.71rem; font-weight: bold;
  font-family: 'MS PGothic', sans-serif;
  cursor: pointer; white-space: nowrap;
  border-right: 1px solid rgba(8,238,254,0.1);
  transition: background 0.12s;
  user-select: none;
}
.gct-chip:hover { background: rgba(8,238,254,0.07); }
.gct-chip.garnet  .gct-chip-val { color: #08EEFE; }
.gct-chip.glimmose .gct-chip-val { color: #59b8ff; }
.gct-chip-val { color: #f0f0f0; }

.gct-chip, .gct-icon-btn {
  height: 36px;
  background: none;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
}

.gct-chip:hover, .gct-icon-btn:hover {
  background: linear-gradient(to bottom, var(--bg, #00010a), var(--gradientBottom, #000d1a));
  box-shadow: inset 0 0 10px rgba(8,238,254,0.2), inset 0 -2px 0 #08EEFE;
}

/* icon buttons */
.gct-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-right: 1px solid rgba(8,238,254,0.1);
  font-size: 0.95rem; cursor: pointer; position: relative;
  transition: background 0.12s; flex-shrink: 0;
  user-select: none;
}
.gct-icon-btn:hover { background: rgba(8,238,254,0.07); }
.gct-icon-btn:last-child { border-right: none; }

/* notification/friend badge dot */
.gct-badge {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff453a;
  border: 1.5px solid rgba(0,1,14,0.9);
  pointer-events: none;
}

/* ── DROPDOWN SHARED STYLES ── */
/* wallet balance block */
.gct-wallet-balance {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(8,238,254,0.12);
}
.gct-wb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; font-family: 'MS PGothic', sans-serif;
}
.gct-wb-label { font-size: 0.62rem; color: rgba(240,240,240,0.5); }
.gct-wb-val   { font-size: 0.88rem; font-weight: bold; color: #f0f0f0; }
.gct-wb-val.g { color: #08EEFE; }
.gct-wb-val.m { color: #59b8ff; }

/* dropdown action row (non-link) */
.gct-dd-action {
  display: block; padding: 6px 10px 6px 14px;
  font-size: 0.8rem; font-family: 'MS PGothic', sans-serif;
  color: rgba(240,240,240,0.75);
  border-bottom: 1px solid rgba(8,238,254,0.08);
  cursor: pointer; transition: background 0.1s, padding-left 0.1s, color 0.1s;
}
.gct-dd-action:hover {
  background: rgba(8,238,254,0.06);
  color: #f0f0f0; padding-left: 18px;
}
.gct-dd-action:last-child { border-bottom: none; }

/* friends list items */
.gct-friend-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(8,238,254,0.07);
  transition: background 0.1s; font-family: 'MS PGothic', sans-serif;
}
.gct-friend-row:hover { background: rgba(8,238,254,0.04); }
.gct-friend-row:last-child { border-bottom: none; }

.gct-friend-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(8,238,254,0.1);
  border: 1px solid rgba(8,238,254,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; flex-shrink: 0; position: relative;
  overflow: hidden;
}
.gct-friend-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gct-status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid rgba(0,1,14,0.95);
}
.gct-status-dot.online  { background: #30d158; }
.gct-status-dot.dnd     { background: #ff453a; }
.gct-status-dot.offline { background: #bf5af2; }

.gct-friend-info { flex: 1; min-width: 0; }
.gct-friend-name   { font-size: 0.7rem; color: #f0f0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gct-friend-status { font-size: 0.58rem; color: rgba(240,240,240,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gct-friend-status.playing { color: #30d158; }

.gct-friend-btn {
  font-size: 0.65rem; padding: 2px 6px;
  background: rgba(8,238,254,0.08);
  border: 1px solid rgba(8,238,254,0.2);
  border-radius: 4px; color: #08EEFE;
  cursor: pointer; transition: background 0.1s;
  font-family: 'MS PGothic', sans-serif; flex-shrink: 0;
}
.gct-friend-btn:hover { background: rgba(8,238,254,0.16); }

/* notification items */
.gct-notif-item {
  display: flex; gap: 9px; padding: 9px 12px;
  border-bottom: 1px solid rgba(8,238,254,0.07);
  cursor: pointer; font-family: 'MS PGothic', sans-serif;
  transition: background 0.1s;
}
.gct-notif-item:hover { background: rgba(8,238,254,0.04); }
.gct-notif-item.unread { border-left: 2px solid #08EEFE; }
.gct-notif-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.gct-notif-body { flex: 1; min-width: 0; }
.gct-notif-title { font-size: 0.7rem; color: #f0f0f0; margin-bottom: 2px; }
.gct-notif-desc  { font-size: 0.6rem; color: rgba(240,240,240,0.5); line-height: 1.4; }
.gct-notif-time  { font-size: 0.55rem; color: rgba(8,238,254,0.35); margin-top: 3px; }
.gct-notif-empty {
  padding: 18px 12px; font-size: 0.66rem;
  color: rgba(240,240,240,0.35); text-align: center;
  font-family: 'MS PGothic', sans-serif;
}

/* hide chips text on very small screens */
@media (max-width: 680px) {
  .gct-chip-val { display: none; }
  .gct-chip { padding: 0 8px; }
}
@media (max-width: 480px) {
  .gct-right { display: none; }
}