/* PeopleFinder_Interact — contacts dashboard styles (additive, no global overrides) */

/* extra card variants for index.html */
.card-bd       h2 { color: var(--ok); }
.card-contacts h2 { color: #f59e0b; }
.card-mfa      h2 { color: #14b8a6; }

.card-actions {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}
.card-actions a { color: var(--accent); }

/* Make stat cards visually clickable when wrapped in <a>. */
a.card-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: border-color 120ms ease;
}
a.card-link:hover {
    text-decoration: none;
    border-color: var(--accent);
}
a.card-link:hover .big-number { color: var(--accent); }

/* Whole-card-clickable pattern. The `card-overlay-link` is an invisible
   anchor stretched over the whole card; inner links sit above it via
   position:relative + z-index so they still receive their own clicks. */
.card-clickable { position: relative; transition: border-color 120ms ease; }
.card-clickable:hover { border-color: var(--accent); }
.card-clickable .h2,
.card-clickable h2,
.card-clickable .card-actions,
.card-clickable .table-counts li {
    position: relative;
    z-index: 2;
}
.card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}
.card-overlay-link:hover { text-decoration: none; }

/* --- contacts overview grid --- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }

/* --- person header --- */
.person-header { margin-bottom: 32px; }
.person-head-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.person-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--panel-2);
}
.cross-link {
    color: var(--accent-rf);
    font-weight: 500;
}

.bio-prose {
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* --- filter form --- */
.filter-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}
.filter-form label.grow { flex: 1; min-width: 220px; }
.filter-form input,
.filter-form select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 10px;
    font: inherit;
    min-width: 180px;
}
.filter-form input:focus,
.filter-form select:focus { outline: none; border-color: var(--accent); }
.filter-form button {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.filter-form .reset-link { color: var(--muted); font-size: 13px; }

/* --- suppression form --- */
.suppress-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.suppress-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}
.suppress-form label.grow { flex: 1; min-width: 200px; }
.suppress-form input,
.suppress-form select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 10px;
    font: inherit;
}
.suppress-form button {
    background: var(--error);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.suppress-form button:hover { filter: brightness(1.1); }

.btn-link-danger {
    background: none;
    border: none;
    color: var(--error);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* row strikethrough for suppressed entries */
.row-suppressed { opacity: 0.55; }
.row-suppressed td { text-decoration: line-through; }
.row-suppressed td:first-child,
.row-suppressed td:last-child { text-decoration: none; }

/* --- badges specific to contacts --- */

.badge-channel { background: rgba(106, 169, 255, 0.18); color: var(--accent); }
.badge-reason  { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge-dm      { background: rgba(34, 197, 94, 0.18); color: var(--ok); margin-left: 6px; }

.inline-360 {
    margin-left: 6px;
    font-size: 11px;
    color: var(--accent-rf);
    font-family: var(--mono);
    text-decoration: none;
    opacity: 0.6;
}
.inline-360:hover { opacity: 1; text-decoration: none; }

/* Make a badge act as a link without losing its pill appearance. */
.badge-link {
    cursor: pointer;
    text-decoration: none;
}
.badge-link:hover { filter: brightness(1.15); text-decoration: none; }

/* Horizontal % bar inside a table cell. */
.bar-cell {
    position: relative;
    height: 18px;
    width: 100%;
    min-width: 120px;
    background: var(--panel-2);
    border-radius: 9px;
    overflow: hidden;
}
.bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 9px;
    transition: width 200ms ease;
}
.bar-channel  { background: rgba(106, 169, 255, 0.55); }
.bar-seniority { background: rgba(192, 132, 252, 0.55); }
.bar-label {
    position: absolute;
    top: 0; right: 6px;
    line-height: 18px;
    font-size: 11px;
    color: var(--text);
}

/* Active filter chips above the table (cosmetic; the X is just text). */
.active-filters {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}
.filter-chip {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--panel-2);
    font-size: 12px;
}
.filter-chip:hover { color: var(--error); border-color: var(--error); text-decoration: none; }

/* Standalone action buttons (cancel/retry on run detail, trigger on
   contacts/mfa). Form-styled but used outside the trigger-form block. */
.btn-primary,
.btn-danger {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.btn-danger { background: var(--error); color: white; }
.btn-primary:hover,
.btn-danger:hover { filter: brightness(1.1); }

.run-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.badge-seniority-founder    { background: rgba(192, 132, 252, 0.20); color: var(--accent-rf); }
.badge-seniority-c_level    { background: rgba(106, 169, 255, 0.20); color: var(--accent); }
.badge-seniority-vp         { background: rgba(20, 184, 166, 0.20); color: #14b8a6; }
.badge-seniority-lead       { background: rgba(34, 197, 94, 0.18); color: var(--ok); }
.badge-seniority-senior     { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge-seniority-ic         { background: rgba(138, 146, 164, 0.15); color: var(--muted); }
.badge-seniority-unknown    { background: rgba(138, 146, 164, 0.15); color: var(--muted); }

.badge-role-exec      { background: rgba(192, 132, 252, 0.18); color: var(--accent-rf); }
.badge-role-growth    { background: rgba(34, 197, 94, 0.18); color: var(--ok); }
.badge-role-bd        { background: rgba(34, 197, 94, 0.18); color: var(--ok); }
.badge-role-marketing { background: rgba(251, 191, 36, 0.18); color: var(--warn); }
.badge-role-eng       { background: rgba(106, 169, 255, 0.18); color: var(--accent); }
.badge-role-product   { background: rgba(106, 169, 255, 0.15); color: var(--accent); }
.badge-role-community { background: rgba(20, 184, 166, 0.20); color: #14b8a6; }
.badge-role-investor  { background: rgba(192, 132, 252, 0.18); color: var(--accent-rf); }
.badge-role-other     { background: rgba(138, 146, 164, 0.15); color: var(--muted); }
.badge-role-design    { background: rgba(106, 169, 255, 0.18); color: var(--accent); }
.badge-role-ops       { background: rgba(138, 146, 164, 0.15); color: var(--muted); }
.badge-role-finance   { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge-role-legal     { background: rgba(138, 146, 164, 0.15); color: var(--muted); }

.badge-idle    { background: rgba(138, 146, 164, 0.15); color: var(--muted); }
.badge-error   { background: rgba(239, 68, 68, 0.18); color: var(--error); }

.subhead {
    font-size: 13px;
    color: var(--muted);
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- Phase 15: bulk-add UI on /contacts/persons ----- */

.bulk-col { width: 28px; text-align: center; }
.bulk-col input[type="checkbox"] { cursor: pointer; }
.data-table tr.no-twitter td { opacity: 0.55; }
.data-table tr.no-twitter .bulk-col input[type="checkbox"] { cursor: not-allowed; }

.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: var(--panel, #1f2937);
    border-top: 1px solid var(--border, #374151);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}
.bulk-action-bar .bulk-count {
    font-weight: 600;
    color: var(--accent);
    min-width: 92px;
}
.bulk-action-bar label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted, #94a3b8);
}
.bulk-action-bar select,
.bulk-action-bar input[type="number"] {
    background: var(--panel-inset, #111827);
    color: var(--text);
    border: 1px solid var(--border, #374151);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
}
.bulk-action-bar input[type="number"] { width: 56px; }
.bulk-action-bar label.bulk-core { gap: 4px; }
.bulk-action-bar button {
    background: var(--accent);
    color: #111827;
    border: 0;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.bulk-action-bar button.ghost {
    background: transparent;
    color: var(--muted, #94a3b8);
    border: 1px solid var(--border, #374151);
    font-weight: 400;
}
.bulk-action-bar button:disabled { opacity: 0.5; cursor: not-allowed; }
.bulk-status { font-size: 13px; }
.bulk-status.pending { color: var(--muted, #94a3b8); }
.bulk-status.ok      { color: var(--ok, #10b981); }
.bulk-status.err     { color: var(--err, #ef4444); }
