/* 03-sidebar.css — Minhs_art v3 */

.sb { display: contents; }

/* ============================
   RAIL
   ============================ */
.sbCatsRail {
  position: sticky; top: 0; height: 100vh;
  background: rgba(0,0,0,.3);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 5px; z-index: 20;
  overflow-y: auto; overflow-x: hidden;
}
.sbCatsRail::-webkit-scrollbar { display: none; }

.sbCatSquare {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,232,224,.3);
  transition: all .15s;
  position: relative; flex-shrink: 0;
}

.sbCatSquareSm {
  width: 28px; height: 28px; border-radius: 8px;
}

.sbCatSquare:hover {
  background: rgba(58,184,160,.08);
  border-color: rgba(58,184,160,.3);
  color: var(--teal, #3ab8a0);
}

.sbCatSquare.is-active {
  background: rgba(58,184,160,.14);
  border-color: rgba(58,184,160,.45);
  color: var(--teal, #3ab8a0);
  box-shadow: 0 0 14px rgba(58,184,160,.2);
}

/* Tooltip */
.sbCatSquare::after {
  content: attr(title);
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: rgba(6,15,18,.97); border: 1px solid rgba(58,184,160,.2);
  color: var(--teal, #3ab8a0); font-size: 10px; letter-spacing: .8px;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 50;
}
.sbCatSquare:hover::after { opacity: 1; }

.sbRailSpacer { flex: 1; min-height: 8px; }

.sbRailSocial {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding-bottom: 4px;
}

.sbRailIcon {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: rgba(200,232,224,.35);
  text-decoration: none; transition: all .15s;
}
.sbRailIcon:hover {
  border-color: rgba(58,184,160,.3); color: var(--teal, #3ab8a0);
  background: rgba(58,184,160,.07);
}

/* ============================
   PANNEAU
   ============================ */
.sbInner {
  position: sticky; top: 0; height: 100vh;
  background: rgba(5,14,18,.97);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; overflow: hidden; z-index: 20;
}

.sbTop {
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1; overflow-y: auto;
}
.sbTop::-webkit-scrollbar { width: 2px; }
.sbTop::-webkit-scrollbar-thumb { background: rgba(58,184,160,.15); border-radius: 99px; }

/* Brand */
.sbBrandRow { display: flex; align-items: flex-start; gap: 8px; }

.sbLogo {
  width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; margin-top: 2px;
  border: 1px solid rgba(58,184,160,.25); background: rgba(58,184,160,.08);
}

.sbBrand {
  font-family: var(--font-brand, monospace);
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--txt, #c8e8e0); line-height: 1.1;
}

.sbBrandSub {
  font-size: 8px; color: rgba(58,184,160,.4); letter-spacing: 1.5px; margin-top: 3px;
}

/* Profil */
.sbProfile {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; background: rgba(0,0,0,.15); padding: 9px;
}

.sbAvatarWrap {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(58,184,160,.35); overflow: hidden;
  background: rgba(58,184,160,.1); position: relative;
}

.sbAvatarFallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand, monospace); font-size: 16px;
  color: var(--teal, #3ab8a0);
}

.sbAvatar {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.sbProfileInfo { min-width: 0; }

.sbProfileName {
  font-size: 12px; font-weight: 500; color: var(--txt, #c8e8e0);
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sbLiveRow { display: flex; align-items: center; gap: 5px; }

.sbLiveDot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.15); flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}
.sbLiveDot.live { background: #e03333; box-shadow: 0 0 8px rgba(224,51,51,.5); }

.sbLiveTxt { font-size: 10px; color: var(--muted, #3a6060); letter-spacing: .05em; }
.sbLiveDot.live ~ .sbLiveTxt { color: var(--teal, #3ab8a0); }
.sbLiveMeta { font-size: 10px; color: var(--muted, #3a6060); line-height: 1.4; white-space: pre-line; margin-top: 2px; }

/* Divider */
.sbDivider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }

/* Nav title */
.sbSectionTitle {
  font-size: 8px; color: rgba(58,184,160,.4); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: -4px;
}

/* ============================
   NAVIGATION LINKS
   ============================ */
.sbNav { display: flex; flex-direction: column; gap: 2px; }

.sbNavLink {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 9px;
  border: 1px solid transparent;
  font-size: 11px; color: rgba(200,232,224,.6);
  transition: all .12s; text-decoration: none;
  position: relative;
}

.sbNavLink:hover {
  background: rgba(58,184,160,.05);
  border-color: rgba(58,184,160,.1);
  color: var(--txt, #c8e8e0);
}

.sbNavLink.is-active {
  background: rgba(58,184,160,.08);
  border-color: rgba(58,184,160,.22);
  color: var(--teal, #3ab8a0);
}

.sbNavLink.sbNavSoon {
  color: rgba(200,232,224,.34);
  cursor: pointer;
}
.sbNavLink.sbNavSoon:hover {
  background: rgba(58,184,160,.035);
  border-color: rgba(58,184,160,.11);
  color: rgba(200,232,224,.52);
}

/* Icône nav */
.sbNavIcon {
  font-size: 11px; flex-shrink: 0;
  width: 16px; text-align: center;
  opacity: .7;
  transition: opacity .12s;
}
.sbNavLink:hover .sbNavIcon,
.sbNavLink.is-active .sbNavIcon { opacity: 1; }

/* Label */
.sbNavLabel { flex: 1; }

/* Badge "bientôt" */
.sbNavSoonBadge {
  font-size: 8px; padding: 1px 5px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(200,232,224,.2); letter-spacing: .3px;
  flex-shrink: 0;
}

/* Hint */
.sbHint { font-size: 10px; color: rgba(255,255,255,.15); line-height: 1.6; }

/* ============================
   TOPBAR BREADCRUMB
   ============================ */
.topbarBread {
  position: fixed; top: 0;
  left: calc(var(--sb-rail, 46px) + var(--sb-w, 180px));
  right: 0; height: var(--topbar-h, 34px);
  background: rgba(4,12,15,.9);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center;
  padding: 0 20px; gap: 8px;
  z-index: 10; backdrop-filter: blur(4px);
}

.topbarBreadSite { font-size: 11px; color: rgba(200,232,224,.3); }
.topbarBreadSep  { font-size: 11px; color: rgba(200,232,224,.15); }
.topbarBreadPage { font-size: 11px; color: var(--teal, #3ab8a0); font-weight: 500; }
.topbarBreadStars { margin-left: auto; font-size: 9px; color: rgba(58,184,160,.2); letter-spacing: 3px; }
