/* ════════════════════════════════════════════════════════════════════════
   zFeed.css — brush for the live feed (zViews/zUI.zFeed.zolo). Opt in with
   zMeta.zBrush: [zFeed]. First stylesheet this page ever had: the Phase-1
   mock declared the brush but styles/zFeed.css was never written. Same
   visual family as myapps.css/subscriptions.css — the zc-* token set from
   zC_Main.css plus the brand glow language.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Ribbon — honest aggregates as stat chips riding the hero's tail ── */
.zc-feed-ribbon {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             1rem;
    margin:          -1rem auto 1.75rem;   /* tucks under the masthead's glow */
    max-width:       720px;
    padding:         0 1rem;
}
.zc-feed-ribbon > div {
    display:       flex;
    align-items:   baseline;
    gap:           0.5rem;
    padding:       0.5rem 1.1rem;
    background:    rgba(255, 255, 255, 0.04);
    border:        1px solid rgba(255, 255, 255, 0.1);
    border-radius: 980px;
}
.zc-feed-ribbon p { margin: 0; text-align: center; }
.zc-feed-ribbon > div > p:first-child {
    font-size:   1.1rem;
    font-weight: 800;
    color:       var(--text-light);
}
.zc-feed-ribbon > div > p:last-child {
    font-size:      0.68rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color:          var(--text-gray);
}
/* the seats chip carries the brand — it's the one that converts */
.zc-feed-ribbon > div:last-child {
    border-color: rgba(162, 212, 110, 0.45);
}
.zc-feed-ribbon > div:last-child > p:first-child {
    color: var(--color-primary, #A2D46E);
}

/* ── Guest CTA band — the free-seat pitch (authed:false twin of Composer) ── */
.zc-feed-join {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             1rem 2rem;
    max-width:       720px;
    margin:          0 auto 1.75rem;
    padding:         1.25rem 1.5rem;
    background:      linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(162, 212, 110, 0.07));
    border:          1px solid rgba(196, 181, 253, 0.35);
    border-radius:   16px;
}
.zc-feed-join p { margin: 0; }
.zc-feed-join-title {
    font-size:   1.05rem;
    font-weight: 800;
    color:       var(--text-light);
}
.zc-feed-join-body {
    margin-top: 0.3rem !important;
    color:      var(--text-gray);
    font-size:  0.88rem;
    max-width:  380px;
}
.zc-feed-join-doors {
    display:     flex;
    align-items: center;
    gap:         0.75rem;
    flex-wrap:   wrap;
}

/* ── Composer — the CLI is the composer, so it reads like one ── */
.zc-feed-composer {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             1rem;
    max-width:       720px;
    margin:          0 auto 1.75rem;
    padding:         0.9rem 1.25rem;
    background:      rgba(124, 58, 237, 0.06);
    border:          1px solid rgba(196, 181, 253, 0.25);
    border-radius:   16px;
}
.zc-feed-composer p { margin: 0; }
.zc-feed-composer > div:first-child p {
    color:     var(--text-gray);
    font-size: 0.9rem;
}
.zc-feed-composer > div:last-child p {
    font-family:   ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size:     0.85rem;
    color:         var(--text-light);
    padding:       0.4rem 0.9rem;
    background:    rgba(0, 0, 0, 0.35);
    border:        1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    white-space:   nowrap;
}

/* ── Shell — the two-column room the feed lives in ──
   DOM order is Main → Rail; on desktop the rail sits BESIDE the stream and
   sticks while you scroll (it never did before this brush pass: without a
   grid the "right rail" rendered below the sentinel, bottom-left). */
.zc-feed-shell {
    display:               grid;
    grid-template-columns: minmax(0, 720px) 280px;
    justify-content:       center;
    align-items:           start;
    gap:                   2rem;
    padding:               0 1rem;
}
.zc-feed-rail {
    position: sticky;
    top:      5.5rem;                 /* clears the fixed navbar */
    display:  flex;
    flex-direction: column;
    gap:      1rem;
}
@media (max-width: 900px) {
    .zc-feed-shell { grid-template-columns: minmax(0, 720px); }
    .zc-feed-rail  { display: none; }
}

/* ── Stream — the post cards ── */
.zc-feed-stream {
    display:        flex;
    flex-direction: column;
    gap:            1rem;
}
.zc-feed-post {
    padding:       1.1rem 1.3rem;
    background:    var(--zc-surface, rgba(255, 255, 255, 0.03));
    border:        1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    transition:    border-color 0.2s ease, transform 0.2s ease;
}
.zc-feed-post:hover {
    border-color: rgba(196, 181, 253, 0.35);
    transform:    translateY(-1px);
}
/* the card photo — the visual anchor of every post. NOTE: a single-child
   block's _zClass is hoisted onto the rendered element itself, so
   .zc-feed-cover IS the <img> (no wrapper div). */
img.zc-feed-cover {
    display:       block;
    width:         100%;
    aspect-ratio:  16 / 9;
    object-fit:    cover;
    margin-top:    0.75rem;
    border-radius: 12px;
}
.zc-feed-post-head {
    display:         flex;
    align-items:     baseline;
    justify-content: space-between;
    gap:             0.75rem;
}
.zc-feed-post-author {
    margin:      0;
    font-weight: 700;
    color:       var(--text-light);
    font-size:   0.9rem;
}
.zc-feed-post-when {
    margin:    0;
    color:     var(--text-gray);
    font-size: 0.75rem;
}
.zc-feed-post h3 {
    margin:      0.5rem 0 0;
    font-size:   1.15rem;
    font-weight: 800;
    color:       var(--text-light);
}
.zc-feed-post-tagline {
    margin:    0.25rem 0 0;
    color:     var(--text-gray);
    font-size: 0.88rem;
}
.zc-feed-post-tags {
    margin:    0.35rem 0 0;
    color:     rgba(196, 181, 253, 0.8);
    font-size: 0.75rem;
}

/* ── Card actions — like · comments · launch ── */
.zc-feed-post-actions {
    display:     flex;
    align-items: center;
    gap:         0.75rem;
    margin-top:  0.85rem;
}
.zc-feed-like form, .zc-feed-comments-btn form { margin: 0; }
.zc-feed-like button, .zc-feed-comments-btn button {
    padding:       0.3rem 0.8rem;
    font-size:     0.82rem;
    font-weight:   600;
    color:         var(--text-light);
    background:    rgba(255, 255, 255, 0.05);
    border:        1px solid rgba(255, 255, 255, 0.12);
    border-radius: 980px;
    cursor:        pointer;
    transition:    border-color 0.2s ease;
}
.zc-feed-like button:hover { border-color: rgba(244, 114, 182, 0.6); }
.zc-feed-comments-btn button:hover { border-color: rgba(196, 181, 253, 0.6); }
.zc-feed-count {
    margin:    0;
    padding:   0.3rem 0.8rem;
    font-size: 0.82rem;
    color:     var(--text-gray);
}
.zc-feed-launch { margin-left: auto; }

/* ── Comment thread drawer ── */
/* FIXED overlay, not in-flow: in DOM order the Thread renders BELOW the whole
   stream, so an in-flow drawer opens off-screen and a mid-feed 💬 click looks
   like a dead button. Pinning it to the viewport means it appears where the
   user is looking, whatever card they clicked. */
.zc-feed-thread {
    position:      fixed;
    right:         1.25rem;
    bottom:        1.25rem;
    z-index:       60;
    width:         min(420px, calc(100vw - 2.5rem));
    max-height:    min(70vh, 640px);
    overflow-y:    auto;
    margin:        0;
    padding:       1.1rem 1.3rem;
    background:    rgba(23, 15, 45, 0.97);
    border:        1px solid rgba(196, 181, 253, 0.35);
    border-radius: 16px;
    box-shadow:    0 18px 48px rgba(0, 0, 0, 0.55);
}
.zc-feed-thread-head {
    display:         flex;
    align-items:     baseline;
    justify-content: space-between;
    gap:             0.75rem;
}
.zc-feed-thread-head h3 {
    margin:      0;
    font-size:   1rem;
    font-weight: 700;
    color:       var(--text-light);
}
.zc-feed-thread-close form { margin: 0; }
.zc-feed-thread-close button {
    padding:       0.2rem 0.6rem;
    font-size:     0.75rem;
    color:         var(--text-gray);
    background:    transparent;
    border:        1px solid rgba(255, 255, 255, 0.15);
    border-radius: 980px;
    cursor:        pointer;
}
.zc-feed-thread-list {
    display:        flex;
    flex-direction: column;
    gap:            0.5rem;
    margin-top:     0.85rem;
}
.zc-feed-comment {
    padding:       0.6rem 0.85rem;
    background:    rgba(255, 255, 255, 0.03);
    border:        1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}
.zc-feed-comment-author {
    margin:      0;
    font-size:   0.72rem;
    font-weight: 700;
    color:       rgba(196, 181, 253, 0.85);
}
.zc-feed-comment-body {
    margin:    0.2rem 0 0;
    color:     var(--text-light);
    font-size: 0.85rem;
}
.zc-feed-comment-composer { margin-top: 0.9rem; }
.zc-feed-signin-hint {
    margin:     0.9rem 0 0;
    color:      var(--text-gray);
    font-size:  0.8rem;
    font-style: italic;
}

/* ── Sentinel + rail cards ── */
.zc-feed-sentinel {
    margin:     1.5rem auto 2.5rem;
    text-align: center;
}
.zc-feed-sentinel p { color: var(--text-gray); font-size: 0.8rem; margin: 0; }

.zc-feed-promo {
    padding:       1.1rem 1.2rem;
    background:    rgba(255, 255, 255, 0.03);
    border:        1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
}
.zc-feed-promo p { margin: 0 0 0.5rem; color: var(--text-gray); font-size: 0.85rem; }
.zc-feed-promo > div:first-child p {
    color:       var(--text-light);
    font-weight: 800;
    font-size:   1rem;
}
.zc-feed-promo-cta {
    display:         inline-block;
    font-size:       0.85rem;
    font-weight:     700;
    color:           var(--color-primary, #A2D46E);
    text-decoration: none;
}
.zc-feed-promo-cta:hover { text-decoration: underline; }

/* guest-only seats card — the hero pitch in sticky, compact form */
.zc-feed-rail-seats {
    padding:       1.1rem 1.2rem;
    text-align:    center;
    background:    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(162, 212, 110, 0.08));
    border:        1px solid rgba(162, 212, 110, 0.35);
    border-radius: 16px;
}
.zc-feed-rail-seats p { margin: 0; }
.zc-feed-rail-seats-num {
    font-size:   2rem;
    font-weight: 800;
    color:       var(--color-primary, #A2D46E);
}
.zc-feed-rail-seats-cap {
    margin-top:     0.2rem !important;
    font-size:      0.7rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color:          var(--text-gray);
}
.zc-feed-rail-seats-cta {
    display:    inline-block;
    margin-top: 0.9rem;
    font-size:  0.85rem;
}
