/* ── RoomFlow OS v25 — Lost & Found ── */

/* Toolbar */
.lf-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px }
.lf-filter-row {
    display: flex; gap: 4px; flex-wrap: wrap;
}
.lf-filter-btn {
    padding: 4px 11px; border-radius: 99px; border: var(--glass-border);
    background: var(--surface2); color: var(--text-2); font-family: var(--fd);
    font-size: .67rem; font-weight: 600; cursor: pointer; transition: all .12s;
    white-space: nowrap;
}
.lf-filter-btn:hover { background: var(--surface2); border-color: var(--border2) }
.lf-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff }
.lf-search { font-size: .8rem }

/* List */
.lf-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px }
.lf-empty {
    text-align: center; padding: 32px 16px; color: var(--text-3);
    font-size: .85rem; font-weight: 600;
}

/* Rich empty state */
.lf-empty-state {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px; text-align: center;
}
.lf-empty-icon { font-size: 2.6rem; margin-bottom: 12px; opacity: .75; }
.lf-empty-title { font-family: var(--fd); font-size: .9rem; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.lf-empty-sub { font-family: var(--fd); font-size: .75rem; color: var(--text-3); font-weight: 500; max-width: 240px; line-height: 1.5; }

/* Item */
.lf-item {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 10px 12px; border-radius: var(--rs); border: var(--glass-border);
    background: var(--surface2);
    box-shadow: var(--sh0); transition: border-color .12s;
}
.lf-item.lf-claimed  { opacity: .65 }
.lf-item.lf-discarded { opacity: .4 }

/* Photo thumbnail in list */
.lf-photo-thumb {
    width: 60px; height: 60px; object-fit: cover; border-radius: calc(var(--rs) - 2px);
    flex-shrink: 0; cursor: zoom-in; border: 1px solid var(--border);
}

.lf-item-body { flex: 1; min-width: 0 }
.lf-meta {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 5px;
}
.lf-room-tag {
    font-family: var(--fm); font-size: .7rem; font-weight: 700;
    background: var(--accent-s); color: var(--accent);
    padding: 2px 7px; border-radius: 6px; border: 1px solid var(--accent-g);
}
.lf-stored,.lf-who,.lf-when {
    font-size: .69rem; color: var(--text-3); font-weight: 500; white-space: nowrap;
}
.lf-claimed-by {
    font-size: .69rem; color: var(--ready-tx); font-weight: 600;
}

/* Actions */
.lf-actions { display: flex; gap: 5px; margin-top: 4px }
.lf-action-btn {
    padding: 4px 10px; border-radius: var(--rx); border: 1px solid var(--border);
    background: var(--bg); cursor: pointer; font-family: var(--fd);
    font-size: .67rem; font-weight: 600; color: var(--text-2); transition: all .12s;
}
.lf-action-btn:hover  { background: var(--surface2); border-color: var(--border2) }
.lf-claim-btn:hover   { border-color: var(--ready-d); color: var(--ready-tx) }
.lf-discard-btn:hover { border-color: var(--dirty-d); color: var(--dirty-tx) }
.lf-reopen-btn:hover  { border-color: var(--accent); color: var(--accent) }
.lf-delete-btn:hover  { border-color: var(--dirty-d); color: var(--dirty-tx) }

/* Status badge */
.lf-status-badge {
    flex-shrink: 0; padding: 3px 9px; border-radius: 99px;
    font-family: var(--fd); font-size: .6rem; font-weight: 700;
    letter-spacing: .4px; white-space: nowrap; align-self: flex-start; margin-top: 2px;
}
.lf-badge-found     { background: var(--dnd-bg); color: var(--dnd-tx); border: 1px solid var(--dnd-bd) }
.lf-badge-claimed   { background: var(--ready-bg); color: var(--ready-tx); border: 1px solid var(--ready-bd) }
.lf-badge-discarded { background: var(--oof-bg); color: var(--oof-tx); border: 1px solid var(--oof-bd) }

/* Add form */
.lf-add-wrap {
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px;
}
.lf-add-title {
    font-family: var(--fd); font-size: .7rem; font-weight: 700;
    color: var(--text-2); margin-bottom: 8px; letter-spacing: .2px;
}
.lf-form-row {
    display: flex; gap: 8px; margin-bottom: 8px;
}

/* Photo capture button */
.lf-photo-label {
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
    width: 100%; min-height: 80px; margin-bottom: 10px; border-radius: var(--rs);
    border: 2px dashed var(--border2); cursor: pointer;
    background: var(--surface2); transition: border-color .15s,background .15s;
    overflow: hidden; position: relative;
}
.lf-photo-label:hover { border-color: var(--accent); background: var(--accent-s) }
.lf-photo-input {
    position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
    font-size: 0; /* hides any text on iOS */
}
#lfPhotoHint {
    font-size: .8rem; font-weight: 600; color: var(--text-3); pointer-events: none;
}
.lf-photo-preview {
    width: 100%; max-height: 180px; object-fit: cover; border-radius: calc(var(--rs) - 2px);
}

/* Full-screen zoom overlay */
.lf-zoom-overlay {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
}
.lf-zoom-img {
    max-width: 90vw; max-height: 90vh; border-radius: var(--rs); object-fit: contain;
}
.lf-zoom-close {
    position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.15);
    border: none; color: #fff; font-size: 1.1rem; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Lost & Found Dashboard Badge ── */
#lostFoundBtn { position: relative; }
#hkLFSection  { position: relative; }
.lf-new-badge {
    position: absolute; top: 2px; right: 2px; min-width: 14px; height: 14px;
    padding: 0 3px; border-radius: 99px; background: #e8321a; color: #fff;
    font-size: .58rem; font-weight: 800; display: flex; align-items: center;
    justify-content: center; line-height: 1; pointer-events: none;
}
