/* ================================================================
   FriendsByChance — components/diary.css
   FBC.ui.Diary — a diary's texts and albums (components/diary.js): a
   journey's, About me, a ghost's — one look in all three.
   ================================================================ */

.fbc-diary { border-top: 1px solid var(--color-divider); padding-top: 16px; }
.fbc-diary--view { border-top: 0; padding-top: 0; display: flex; flex-direction: column; gap: 4px; }

/* Its title on the left, its two "+" on the right — and the same two
   under the list, at its end. */
.fbc-diary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fbc-diary-adds {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: flex-end;
    gap:             6px;
    margin-left:     auto;
}
.fbc-diary-foot { display: flex; margin-top: 8px; }
/* With nothing in it, one row of "+" is enough: the foot's says the same. */
.fbc-diary-list:empty + .fbc-diary-foot { display: none; }

/* What the server refused (an album beyond the limit) — the editors' refusal look. */
.fbc-diary-error {
    color:      var(--color-danger, #c0392b);
    font-size:  0.88em;
    margin-top: 4px;
}
.fbc-diary-error[hidden] { display: none; }

.fbc-diary-list {
    display:        flex;
    flex-direction: column;
    gap:            4px;   /* slots carry their own padding + alternating bg */
}

/* ── One item ────────────────────────────────────────────────────── */
.fbc-diary-slot {
    position:      relative;
    padding:       10px 12px 10px calc(var(--fbc-grip-w) + 8px);
    border-radius: 8px;
    border-top:    2px solid transparent;
    border-bottom: 2px solid transparent;
}
.fbc-diary-slot:nth-child(even) { background: rgba(0,0,0,0.027); }
.fbc-diary--view .fbc-diary-slot { padding-left: 12px; }

/* Its grip (.fbc-drag-handle), down its left edge — a diary is drawn in
   its holder's editor only, its edit mode, so the grip is always there,
   as every list's is in its edit mode (000 §1.13). */
.fbc-diary-grip { position: absolute; left: 4px; top: 0; bottom: 0; }

/* Being moved (FBC.ui.dragReorder). */
.fbc-diary-slot.dragging    { opacity: 0.35; }
.fbc-diary-slot.drag-before { border-top-color:    var(--color-primary); }
.fbc-diary-slot.drag-after  { border-bottom-color: var(--color-primary); }

/* Under an item: its tags, then who sees it (privacy.js). */
.fbc-diary-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fbc-diary-footer > .privacy-lock { margin-left: auto; }
