/**
 * people.css — People list styles
 */

/* ── Message states (loading, error, empty) ─────────────────── */

.people__message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-48) var(--space-24);
    text-align: center;
}

/* ── Header ─────────────────────────────────────────────────── */

.people {
    padding: var(--space-16) 0;
}

.people__header {
    margin-bottom: var(--space-24);
}

.people__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
}

.people__header h1 {
    margin-bottom: var(--space-4);
}

/* ── Table ──────────────────────────────────────────────────── */

.people__table-wrap {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.people__table {
    width: 100%;
    border-collapse: collapse;
}

.people__table thead {
    background: var(--surface-sunken);
}

.people__table th {
    padding: var(--space-8) var(--space-16);
    text-align: left;
    font-size: var(--text-14);
    font-weight: 600;
    color: var(--surface-text-medium);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.people__table td {
    padding: var(--space-12) var(--space-16);
    border-top: 1px solid var(--surface-border);
    vertical-align: middle;
}

.people__table tbody tr {
    transition: background 0.1s ease;
}

.people__table tbody tr:hover {
    background: var(--surface-raised);
}

/* ── Cell: name ─────────────────────────────────────────────── */

.people__name {
    font-weight: 500;
    color: var(--surface-text);
}

/* ── Cell: email ────────────────────────────────────────────── */

.people__email {
    color: var(--surface-text-medium);
}

/* ── Cell: actions ──────────────────────────────────────────── */

.people__th-actions {
    width: 1%;
    white-space: nowrap;
}

.people__cell-actions {
    white-space: nowrap;
    text-align: right;
}

.people__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-8);
    background: var(--surface-card);
    color: var(--surface-text-medium);
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.people__action-btn:hover {
    background: var(--surface-raised);
    color: var(--surface-text);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .people__cell-email,
    .people__cell-type {
        display: none;
    }

    .people__table th:nth-child(2),
    .people__table td:nth-child(2),
    .people__table th:nth-child(3),
    .people__table td:nth-child(3) {
        display: none;
    }
}
