/* ═══════════════════════════════════════════════
   ŻeloTV — Layout
   Navbar · app shell · sidebar
   ═══════════════════════════════════════════════ */

/* ── Navbar ──────────────────────────────────── */
.navbar {
  height: var(--navbar-h); padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50; position: relative;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 12px; }
.nav-brand {
  font-weight: 600; font-size: 15px; color: var(--text);
  letter-spacing: -0.3px;
  line-height: var(--navbar-h);
  display: flex; align-items: center;
}
.nav-brand:hover { text-decoration: none; color: #fff; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.nav-user:hover { background: var(--bg-elevated); text-decoration: none; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; pointer-events: auto; }
.nav-username { font-size: 13px; font-weight: 500; color: var(--text-dim); }

/* ── App shell layout ────────────────────────── */
.app-shell { display: none; flex-direction: column; height: 100vh; }
.app-body { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: rgba(10,10,10,0.6);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width .3s cubic-bezier(.4,0,.2,1), min-width .3s cubic-bezier(.4,0,.2,1);
  z-index: 10;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); min-width: var(--sidebar-w-collapsed); }
.sb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px;
}
.sb-title {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden;
  opacity: 1; transition: opacity .2s ease;
}
.sidebar.collapsed .sb-title { opacity: 0; width: 0; height: 0; overflow: hidden; }
.sb-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-dim); cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.sb-toggle-btn:hover { background: var(--bg-elevated); color: var(--text); }
.sb-toggle-btn svg { pointer-events: none; }
.sidebar.collapsed .sb-header { justify-content: center; padding: 10px 4px 6px; }
.sb-list {
  flex: 1; overflow-y: auto; padding: 0 8px 12px;
}
.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 0 5px; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), gap .3s cubic-bezier(.4,0,.2,1);
  text-decoration: none; color: var(--text);
  position: relative;
  overflow: hidden;
  height: 46px; box-sizing: border-box;
}
.sb-user:hover { background: var(--bg-card-hover); text-decoration: none; }
.sb-user { animation: sidebarSlideIn .3s ease both; justify-content: flex-start; }
.sb-user:nth-child(1) { animation-delay: 0s; }
.sb-user:nth-child(2) { animation-delay: 0.02s; }
.sb-user:nth-child(3) { animation-delay: 0.04s; }
.sb-user:nth-child(4) { animation-delay: 0.06s; }
.sb-user:nth-child(5) { animation-delay: 0.08s; }
.sb-user:nth-child(6) { animation-delay: 0.1s; }
.sb-user:nth-child(7) { animation-delay: 0.12s; }
.sb-user:nth-child(8) { animation-delay: 0.14s; }
@keyframes sidebarSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.sb-avatar-wrap { position: relative; flex-shrink: 0; width: 28px; height: 28px; }
.sb-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sb-status {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--bg);
}
.sb-status.live { background: var(--live-red); }
.sb-status.active { background: var(--green); }
.sb-status.offline { background: var(--text-muted); }
.sb-name {
  font-size: 13px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sb-clan {
  font-size: 10px; font-weight: 600; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}
.sb-user.is-live .sb-name { color: var(--live-red); }
.sb-user.is-offline { opacity: 0.4; }
.sb-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.sb-activity {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1; margin-top: 2px;
}
/* Activity labels — streamer name & stream title should be WHITE */
.sb-act-label { font-weight: 600; }
.sb-act-label.live { color: var(--live-red); }
.sb-act-label.watching { color: var(--green); }
.sb-act-label.online { color: var(--green); }
.sb-act-label.offline { color: var(--text-muted); }
.sb-act-detail { color: var(--text); font-weight: 400; margin-left: 0; }
.sb-name,
.sb-clan,
.sb-activity,
.sb-text {
  transition: opacity .2s ease, width .3s ease;
}
.sidebar.collapsed .sb-name,
.sidebar.collapsed .sb-clan,
.sidebar.collapsed .sb-activity,
.sidebar.collapsed .sb-text { opacity: 0; pointer-events: none; }

/* ── Main content ────────────────────────────── */
.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  position: relative; min-width: 0;
}
