/*
 * member-follow-list.css — Followers / Following list page
 * Depends on: tokens.css + jertam.css
 */

/* ── Skip link ─────────────────────────────────────────────────────────────── */
.jt-skip-link {
    position: absolute; top: -40px; left: 8px; z-index: 100;
    background: var(--jt-ink, #1A2B1F); color: white; padding: 8px 16px; border-radius: 8px;
}
.jt-skip-link:focus { top: 8px; }

/* ── Mini hero ─────────────────────────────────────────────────────────────── */
.jt-fl-hero {
    padding: 16px 0;
    border-bottom: 1px solid var(--jt-line, #E6E4D9);
    background: white;
}
.jt-fl-hero .container {
    display: flex; align-items: center; gap: 12px;
}
.jt-fl-hero__back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--jt-ink-2, #4A5A4D); text-decoration: none;
    transition: background 0.15s;
    flex-shrink: 0;
}
.jt-fl-hero__back:hover { background: var(--jt-cream, #F4F2EA); }

.jt-fl-hero__avatar {
    display: block; width: 40px; height: 40px; border-radius: 50%;
    overflow: hidden; text-decoration: none; flex-shrink: 0;
}
.jt-fl-hero__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jt-fl-hero__info { display: flex; flex-direction: column; min-width: 0; }
.jt-fl-hero__name {
    font-weight: 700; font-size: 15px; color: var(--jt-ink, #1A2B1F);
    text-decoration: none; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jt-fl-hero__name:hover { text-decoration: underline; }
.jt-fl-hero__handle {
    font-size: 12px; color: var(--jt-muted, #8A9387);
}

/* ── Tab switcher ──────────────────────────────────────────────────────────── */
.jt-fl-tabs {
    border-bottom: 1px solid var(--jt-line, #E6E4D9);
    background: white;
}
.jt-fl-tabs .container {
    display: flex; gap: 0;
}
.jt-fl-tab {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 24px; text-decoration: none;
    color: var(--jt-ink-2, #4A5A4D);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    gap: 2px;
}
.jt-fl-tab:hover { color: var(--jt-ink, #1A2B1F); text-decoration: none; }
.jt-fl-tab.is-active {
    color: var(--jt-ink, #1A2B1F);
    border-bottom-color: var(--jt-ink, #1A2B1F);
}
.jt-fl-tab__num {
    font-weight: 700; font-size: 17px; line-height: 1;
    color: inherit;
}
.jt-fl-tab__label { font-size: 12px; color: var(--jt-muted, #8A9387); }
.jt-fl-tab.is-active .jt-fl-tab__label { color: var(--jt-ink-2, #4A5A4D); }

/* ── Search ────────────────────────────────────────────────────────────────── */
.jt-fl-search-wrap {
    padding: 12px 0;
    border-bottom: 1px solid var(--jt-line, #E6E4D9);
    background: white;
}
.jt-fl-search {
    position: relative; max-width: 480px;
}
.jt-fl-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--jt-muted, #8A9387); pointer-events: none;
}
.jt-fl-search .form-control {
    padding-left: 38px; border-radius: 20px;
    background: var(--jt-paper, #FAFBF5);
    border-color: var(--jt-line, #E6E4D9);
}
.jt-fl-search .form-control:focus {
    background: white;
    border-color: var(--jt-ink-2, #4A5A4D);
    box-shadow: 0 0 0 3px rgba(74, 90, 77, 0.12);
}

/* ── Main / List ───────────────────────────────────────────────────────────── */
.jt-fl-main { padding-top: 8px; padding-bottom: 48px; }

.jt-fl-list { display: flex; flex-direction: column; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.jt-fl-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--jt-line, #E6E4D9);
}
.jt-fl-card:last-of-type { border-bottom: none; }

.jt-fl-card__avatar {
    display: block; width: 48px; height: 48px; border-radius: 50%;
    overflow: hidden; text-decoration: none; flex-shrink: 0;
}
.jt-fl-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jt-fl-card__info { flex: 1; min-width: 0; }
.jt-fl-card__name {
    display: block; font-weight: 600; font-size: 14px;
    color: var(--jt-ink, #1A2B1F); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jt-fl-card__name:hover { text-decoration: underline; }
.jt-fl-card__handle {
    font-size: 12px; color: var(--jt-muted, #8A9387); display: block;
}
.jt-fl-card__bio {
    font-size: 12px; color: var(--jt-ink-2, #4A5A4D);
    margin: 4px 0 0; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Card actions ──────────────────────────────────────────────────────────── */
.jt-fl-card__actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.jt-fl-follow {
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    border-radius: 20px; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.jt-fl-follow.is-following {
    background: transparent;
    border-color: var(--jt-line, #E6E4D9);
    color: var(--jt-ink-2, #4A5A4D);
}
.jt-fl-follow.is-following:hover {
    background: var(--jt-cream, #F4F2EA);
}

.jt-fl-remove {
    color: var(--jt-muted, #8A9387) !important;
    text-decoration: none !important;
    display: flex; align-items: center;
    transition: color 0.15s;
}
.jt-fl-remove:hover { color: #dc3545 !important; }

/* ── Sentinel / End / Empty ────────────────────────────────────────────────── */
.jt-fl-sentinel {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 24px;
    color: var(--jt-muted, #8A9387); font-size: 13px;
}
.jt-fl-end {
    text-align: center; padding: 24px;
    font-size: 13px; color: var(--jt-muted, #8A9387);
}
.jt-fl-empty {
    padding: 48px 0; text-align: center;
    color: var(--jt-muted, #8A9387);
}
.jt-fl-empty p { margin: 0; font-size: 14px; }

/* ── Toast (shared pattern) ────────────────────────────────────────────────── */
.jt-toast-container {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.jt-toast {
    background: var(--jt-ink, #1A2B1F); color: white;
    padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 500;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}
.jt-toast.show { opacity: 1; transform: translateY(0); }
.jt-toast--warn { background: #b91c1c; }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .jt-fl-tab { padding: 12px 16px; }
    .jt-fl-tab__num { font-size: 15px; }
    .jt-fl-card { padding: 12px 0; }
    .jt-fl-card__avatar { width: 42px; height: 42px; }
    .jt-fl-follow { padding: 5px 12px; font-size: 12px; }
}
