/* ── Page header ───────────────────────────────────────── */
#staff-header {
    text-align: center;
    margin-bottom: 36px;
    padding-top: 8px;
}
#staff-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color-4);
    margin-bottom: 6px;
}

/* ── Staff Plugin — Modern Dark Card Style ───────────────── */

#staff {
    padding: 0 4px;
}

/* Page title */
#staff-title {
    text-align: center;
    margin-bottom: 40px;
}
#staff-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color-4);
}
#staff-title p {
    color: var(--text-color-6);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ── Card ──────────────────────────────────────────────── */
.staff-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.staff-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Header: avatar + name ─────────────────────────────── */
.staff-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-avatar-wrap {
    flex-shrink: 0;
}
.staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.staff-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.2);
}

.staff-identity {
    flex: 1;
    min-width: 0;
}
.staff-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.staff-role-icon {
    font-size: 0.8rem;
    opacity: 0.8;
    flex-shrink: 0;
}
.staff-role {
    font-size: 0.78rem;
    color: var(--text-color-6);
    margin-top: 2px;
}

/* ── Tags / description ────────────────────────────────── */
.staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}
.staff-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    color: var(--tag-color, var(--text-color-6));
}
.staff-desc {
    font-size: 0.8rem;
    color: var(--text-color-6);
    line-height: 1.4;
    min-height: 24px;
}
.staff-tags-spacer {
    min-height: 24px;
}

/* ── Footer: Discord button ────────────────────────────── */
.staff-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 12px;
}
.staff-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-color-6) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.staff-discord-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    color: #7289da !important;
}

/* ── Tags-group separator ──────────────────────────────── */
#staff .staff-group-title {
    color: var(--text-color-4);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
#staff .staff-group-title .badge {
    font-size: 0.75rem;
}

/* ── Large cards when few members ──────────────────────── */
.staff-large .staff-avatar {
    width: 96px;
    height: 96px;
}
.staff-large .staff-avatar-placeholder {
    width: 96px;
    height: 96px;
    font-size: 2.4rem;
}
.staff-large .staff-name {
    font-size: 1.15rem;
}
.staff-large .staff-role {
    font-size: 0.85rem;
}

/* ── Tag color accent on card ──────────────────────────── */
.staff-card {
    --staff-accent: rgba(255,255,255,0.08);
    border-color: color-mix(in srgb, var(--staff-accent) 40%, transparent) !important;
}
.staff-card:hover {
    border-color: var(--staff-accent) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--staff-accent) !important;
}

/* ── Role badge ────────────────────────────────────────── */
.staff-role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 4px;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
