/* ============================================================
   feed-desk.css — VoxLounge FEED-PAGE desktop overlay (qid:651)
   Floating-glass rails in the flank gutters. FEED PAGE ONLY, desktop only.
   Purely additive: no selector here touches #feed-scroll, .feed-card, or any
   node feed.js owns. Rails are fixed, floating (inset from edges), and only
   shown when #feed-view is active (JS toggles .fd-on) AND viewport >= 1024px.
   All color/shape tokens come from theme.css [data-theme] vars so it themes
   correctly in both Cyberpunk and Default.
   ============================================================ */

/* Default: hidden everywhere. Only the desktop media query below can show it,
   and only when JS has marked the feed active with .fd-on. */
.fd-rail { display: none; }

@media (min-width: 1024px) {

  /* Keep the feed's own topbar (For You / Following / Browse + bell) centered
     over the 460px feed column so it sits clear of both rails. Scoped to the
     feed view's direct topbar — never the dm/notif topbars that reuse the class. */
  #feed-view > .feed-topbar {
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 460px;
    padding-left: 20px; padding-right: 20px;
  }

  .fd-rail.fd-on {
    display: flex; flex-direction: column;
    position: fixed; z-index: 18;              /* under feed-topbar(20) & bottom-nav, over feed cards */
    top: 78px; bottom: 22px;
    gap: 14px;
    pointer-events: none;                       /* gutter is click-through; panels re-enable below */
  }
  .fd-rail.fd-on > * { pointer-events: auto; }

  .fd-right { right: 20px; width: 304px; overflow-y: auto; scrollbar-width: none; }
  .fd-right::-webkit-scrollbar { display: none; }

  /* ── floating glass panel — the shared surface ───────────────────────── */
  .fd-panel {
    background: var(--bg-overlay);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(var(--accent-primary-rgb), 0.05);
    padding: 14px;
  }
  .fd-panel + .fd-panel { margin-top: 0; }

  .fd-panel-hd {
    font-family: var(--font-heading);
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 11px;
  }
  .fd-panel-hd .fd-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-secondary); box-shadow: var(--glow-green-sm);
  }

  .fd-empty {
    font-size: 12px; color: var(--text-dim); font-style: normal;
    padding: 6px 2px; line-height: 1.5;
  }

  /* friends / live-now people rows — slice-2 wiring (qid:651) */
  .fd-person {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px;
    border-radius: 10px; cursor: pointer; border: 1px solid transparent;
    transition: background .14s, border-color .14s;
  }
  .fd-person:hover { background: rgba(var(--accent-primary-rgb), 0.07); border-color: var(--border-color); }
  .fd-person-av {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-size: cover; background-position: center;  /* MUST follow the shorthand — it resets background-size */
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: #05060a;
  }
  .fd-person-av.fd-live-ring { box-shadow: 0 0 0 2px var(--accent-tertiary), 0 0 8px var(--accent-tertiary); }
  .fd-person-meta { min-width: 0; }
  .fd-person-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fd-person-sub { font-size: 11px; color: var(--text-secondary); margin-top: 1px; display: flex; align-items: center; gap: 5px; }
  .fd-person-sub .fd-live-dot {
    width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
    background: var(--accent-tertiary); box-shadow: 0 0 6px var(--accent-tertiary);
  }
}
