/* ─── Friends Page Styles ────────────────────────── */

body.friends-page {
    font-family: 'Inter', sans-serif;
    color: var(--text, #f8fafc);
    padding: calc(var(--topbar-h, 60px) + 24px) 16px 80px 16px;
    min-height: 100vh;
}

.friends-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.friends-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.friends-hero h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, var(--accent, #00d2c8), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friends-hero-icon {
    font-size: 2rem;
}

/* ─── Tab Bar ────────────────────────────── */
.friends-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    overflow-x: auto;
}

.friends-tab {
    background: transparent;
    border: none;
    color: var(--text-dim, #94a3b8);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.friends-tab:hover {
    color: var(--text, #f8fafc);
    background: rgba(255, 255, 255, 0.05);
}

.friends-tab.active {
    background: var(--accent, #00d2c8);
    color: #0f172a;
}

/* ─── Search Box ─────────────────────────── */
.friends-search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.friends-search-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text, #f8fafc);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}

.friends-search-input:focus {
    border-color: var(--accent, #00d2c8);
}

/* ─── Friends List & Cards ───────────────── */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s, transform 0.18s;
}

.friend-card:hover {
    border-color: rgba(0, 210, 200, 0.3);
    transform: translateY(-1px);
}

.friend-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #00d2c8), #7c3aed);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-info {
    min-width: 0;
}

.friend-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text, #f8fafc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-username {
    font-size: 0.78rem;
    color: var(--text-dim, #94a3b8);
}

.friend-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-dim, #94a3b8);
}

.friend-stat-val {
    font-weight: 700;
    color: var(--accent, #00d2c8);
}

.friend-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-friend-action {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-friend-follow {
    background: var(--accent, #00d2c8);
    color: #0f172a;
}

.btn-friend-follow:hover {
    background: #00b5ac;
}

.btn-friend-unfollow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-dim, #94a3b8);
}

.btn-friend-unfollow:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-friend-poke {
    background: rgba(255, 140, 66, 0.15);
    border: 1px solid rgba(255, 140, 66, 0.35);
    color: #ff8c42;
}

.btn-friend-poke:hover:not(:disabled) {
    background: rgba(255, 140, 66, 0.3);
}

.btn-friend-poke:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Empty state ────────────────────────── */
.friends-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-dim, #94a3b8);
}

.friends-empty-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}
