/* Sidebar footer — user identity, plan badge, sharing indicator */

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-sidebar, #16161f);
  position: absolute;
  inset: auto 0 0 0;
  overflow: hidden;   /* clip content when sidebar collapses */
  box-sizing: border-box;
}

.sidebar-footer__avatar-link {
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
  line-height: 0;
}

.sidebar-footer__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.15s;
}

.sidebar-footer__avatar-link:hover .sidebar-footer__avatar {
  opacity: 0.8;
}

.sidebar-footer__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sidebar-footer__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-footer__plan {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
}

.sidebar-footer__plan--pro {
  background: var(--accent, #d14b28);
  color: #fff;
}

.sidebar-footer__plan--free {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-footer__sharing {
  font-size: 11px;
  color: var(--green, #3a9e5c);
  font-weight: 500;
}

.sidebar-footer__settings {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.15s, background 0.15s;
}

.sidebar-footer__settings:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-footer__settings img {
  filter: invert(1);
  opacity: 0.5;
}

.sidebar-footer__settings:hover img {
  opacity: 0.9;
}
