/* style-chat-list.css - the DESIGN of: the chat list. Part of the old single style.css (split 2026-11-03); loaded in the order listed in index.html. */
/* --- chat list --- */
#chat-list-view { display: flex; flex-direction: column; height: 100%; }
.list-actions { display: flex; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.list-actions button { flex: 1; font-size: 12.5px; padding: 10px 5px; }
#chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; background: #121212; }
#chat-list li {
  padding: 12px 14px; border-bottom: 1px solid #232325; display: flex;
  align-items: center; gap: 10px; cursor: pointer;
}
#chat-list li:active { background: #1C1C1E; }
/* Subtle on purpose (Kuma's explicit call - not a badge, not bold, just
   enough to notice at a glance) - a faint tint of the app's own accent
   green plus a thin left border, nothing that competes with the text. */
#chat-list li.unread { background: rgba(6, 199, 85, 0.07); border-left: 2px solid #06C755; }
.chat-row-text { flex: 1; min-width: 0; }
.chat-row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-badges { display: flex; gap: 4px; margin-top: 2px; }
.badge { font-size: 10.5px; padding: 2px 6px; border-radius: 10px; background: #2C2C2E; color: #9A9A9A; }
.badge.on { background: #06C755; color: #08170D; }

/* chat list, 2026-11-02 (Kuma): smaller name + two lines of the last message */
.chat-row-top { display: flex; align-items: baseline; gap: 8px; }
.chat-row-top .chat-row-title { flex: 1; min-width: 0; font-size: 15px; }
.chat-row-time { font-size: 12px; color: #8E8E93; flex-shrink: 0; }
#chat-list li.unread .chat-row-time { color: #06C755; font-weight: 600; }
.chat-row-last { font-size: 13.5px; color: #A1A1A6; line-height: 1.3; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.chat-row-last b { color: #CFCFD4; font-weight: 600; }
#chat-list li.unread .chat-row-last { color: #E5E5EA; }
.chat-row-dot { width: 10px; height: 10px; border-radius: 50%; background: #06C755; flex-shrink: 0; align-self: center; }

/* chat list step 1 (2026-11-02): presence dots, pins, events, archive, swipe options, search */
.av-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.pres-dot { position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #121212; }   /* just off the top-left of the photo, not over the face (Kuma 2026-11-02) */
.pres-dot.on { background: #30D158; } .pres-dot.away { background: #FFD60A; } .pres-dot.off { background: #FF453A; }
#friends-bar .friend-item { position: relative; }
#friends-bar .friend-item .pres-dot { left: 0; top: -2px; right: auto; bottom: auto; }
.chat-pin { font-size: 12px; margin-right: 3px; }
.chat-muted { font-size: 12px; opacity: .7; }
#chat-list li.muted .chat-row-dot { background: #8E8E93; }
#chat-list li { transition: transform .15s; }
.chat-row-typing { color: #06C755; font-style: italic; }
.ev-avatar { display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: #2C2C2E; }
.chat-event-row { background: rgba(255, 159, 10, 0.07); }
.chat-row-time.ev-today { color: #FF9F0A; font-weight: 600; }
.chat-archived-row { display: flex; justify-content: space-between; color: #8E8E93; font-size: 14px; }
.chat-search-row { padding: 8px 12px !important; gap: 6px; }
.chat-search-row input { flex: 1; }
.chat-actions button { width: 100%; margin: 4px 0; }
.chat-actions .danger { color: #FF453A; }
.chat-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0 6px; }
.chat-title-wrap #chat-title { margin: 0 !important; }
.chat-presence { font-size: 11.5px; color: #8E8E93; line-height: 1.1; }
.chat-presence.on { color: #30D158; } .chat-presence.away { color: #FFD60A; } .chat-presence.off { color: #FF453A; }


/* waiting friend requests / invites: green cards at the top of the chat list */
#chat-list li.req-card { display: flex; align-items: center; gap: 10px; background: rgba(52, 199, 89, .16); border: 1px solid #34c759; border-radius: 12px; margin: 6px 8px; padding: 8px 10px; cursor: default; }
#chat-list li.req-card .req-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#chat-list li.req-card small { color: #9A9A9A; }
/* A friend asks you to PAY for an order: serious amber card, big amount, wraps so the explanation fits (Kuma 2026-11-03) */
#chat-list li.req-card.pay-serious { flex-wrap: wrap; background: rgba(255, 159, 10, .18); border: 2px solid #FF9F0A; }
#chat-list li.req-card.pay-serious small { color: #EDEDED; white-space: normal; }
#chat-list li.req-card.pay-serious .pay-amount { font-size: 22px; font-weight: 800; color: #FF9F0A; }
#chat-list li.req-card.pay-serious .pay-warn { flex-basis: 100%; font-size: 12px; color: #FFD60A; }
