/* ==========================================================
 * Find People (Kişi Bul) — global stil dosyası
 * contactSyncModal her sayfada bulunduğu için base.html'den
 * yüklenir. Daha önce connections/center.css içindeydi.
 * ========================================================== */

.find-people-panel {
    padding: 0.5rem 0;
}

.find-people-search .input-group-text,
.find-people-search .form-control,
.find-people-search .btn {
    border-color: rgba(148, 163, 184, 0.35);
}

.find-people-search .form-control:focus {
    box-shadow: none;
    border-color: var(--primary, #1e3a5f);
}

.find-people-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #64748b);
}

.find-people-state__icon {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.find-people-spinner {
    width: 2rem;
    height: 2rem;
}

.find-people-state h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.4rem;
}

.find-people-state p {
    font-size: 0.875rem;
    margin: 0;
}

.find-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#contactSyncModal .find-people-grid {
    grid-template-columns: 1fr;
}

.find-people-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--bg-surface, #fff);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    transition: box-shadow 0.16s ease, border-color 0.16s ease;
    min-width: 0;
}

#contactSyncModal .find-people-card__actions {
    flex-direction: row;
    align-items: center;
}

#contactSyncModal #findPeopleResults {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.find-people-card:hover {
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    border-color: rgba(251, 146, 60, 0.45);
}

.find-people-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #3b82f6;
}

.find-people-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.find-people-card__initials {
    line-height: 1;
    user-select: none;
}

.find-people-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.find-people-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.find-people-card__name:hover {
    color: var(--primary, #1e3a5f);
    text-decoration: underline;
}

.find-people-card__title,
.find-people-card__company {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    line-height: 1.4;
}

.find-people-card__reason {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e3a5f;
    background: rgba(251, 146, 60, 0.14);
    padding: 1px 7px;
    border-radius: var(--radius-2026-btn, 14px);
    margin-top: 0.15rem;
    align-self: flex-start;
}

.find-people-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.find-people-card__connect,
.find-people-card__profile {
    white-space: nowrap;
    border-radius: 8px;
}

#findPeopleSentinel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.85rem;
}

#findPeopleSentinel .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 479.98px) {
    .find-people-grid {
        grid-template-columns: 1fr !important;
    }

    .find-people-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .find-people-card__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Pastel production pass: find people */
.find-people-search .input-group-text,
.find-people-search .form-control,
.find-people-search .btn,
.find-people-card {
    border-color: #b8dff1;
}

.find-people-search .form-control:focus {
    border-color: #b8dff1;
    box-shadow: 0 0 0 4px rgba(184, 223, 241, 0.34);
}

.find-people-card:hover {
    border-color: #b8dff1;
    box-shadow: 0 14px 30px rgba(40, 93, 119, 0.08);
}

.find-people-card__avatar {
    border: 1px solid #b8dff1;
    background: #e8f4fb;
    color: #285d77;
}

.find-people-card__name:hover,
.find-people-card__reason {
    color: #285d77;
}

.find-people-card__reason {
    border: 1px solid #b8dff1;
    background: #e8f4fb;
}

.find-people-card__connect,
.find-people-card__connect:hover {
    border-color: #b8dff1;
    background: #e8f4fb;
    color: #285d77;
}
