/* Lost & Found public board (sell-audit P4, 2026-08-10).
   Every color comes from the design-system variables so the light/dark themes
   and per-tenant accent palettes apply unchanged. Mobile-first: single-column
   base, two/three-column layouts arrive at 640px. */

/* --- Two-action hero ------------------------------------------------------ */
.lf-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (min-width: 640px) {
    .lf-hero { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.lf-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease),
                border-color 0.15s var(--ease);
}
.lf-hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
    text-decoration: none;
}
.lf-hero-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}
.lf-hero-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lf-hero-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.lf-hero-arrow { margin-left: auto; color: var(--text-muted); flex-shrink: 0; }

/* --- Compact safety callout (kept, demoted below the hero) ---------------- */
.lf-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.lf-callout-info { border-left-color: var(--warning); }
.lf-callout i, .lf-callout svg { flex-shrink: 0; margin-top: 1px; }

/* --- Photo-search drop zone ----------------------------------------------- */
/* Progressive enhancement: the markup ships the plain file input; lostfound.js
   adds .lf-js to the zone, which reveals the .lf-dz-js-only affordances and
   visually hides (but keeps focusable) the native input. Without JS the native
   input renders and submits exactly as before. */
.lf-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 28px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.lf-dropzone:focus-within { border-color: var(--primary); }
.lf-dropzone.lf-dz-drag { border-color: var(--primary); background: var(--primary-light); }
.lf-dropzone.lf-js { cursor: pointer; }
.lf-dz-icon { color: var(--text-muted); }
.lf-dz-title { font-size: 14px; font-weight: 600; margin: 0; }
.lf-dz-hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.lf-dz-js-only { display: none; }
.lf-js .lf-dz-js-only { display: block; }
.lf-js label.lf-dz-js-only { display: inline-flex; }
.lf-js .lf-dz-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.lf-dz-idle { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lf-dz-has-file .lf-dz-idle { display: none; }
.lf-dz-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lf-dz-preview[hidden] { display: none; }
.lf-dz-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.lf-dz-preview-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.lf-dz-preview-meta span { overflow-wrap: anywhere; }

/* --- "How photo search works" strip --------------------------------------- */
.lf-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}
@media (min-width: 640px) {
    .lf-steps { grid-template-columns: repeat(3, 1fr); }
}
.lf-step { display: flex; gap: 10px; align-items: flex-start; }
.lf-step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}
.lf-step-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.lf-step-text { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.45; }

/* --- Empty state that demonstrates the product ---------------------------- */
.lf-demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}
@media (min-width: 640px) {
    .lf-demo-grid { grid-template-columns: 1fr 1fr; max-width: 640px; }
}
.lf-demo-card {
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.lf-demo-photo {
    height: 120px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
}
.lf-demo-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.lf-demo-line { height: 10px; border-radius: 5px; background: var(--surface-hover); }
.lf-demo-line-short { width: 55%; }
.lf-demo-caption { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
