/*
 * Hover profile card ("popout") — a small Discord-style card shown when the
 * pointer rests on an element carrying the .profile-card-trigger class and
 * data-pc-* attributes (see templates using member_directory avatars).
 */
.pc-card {
    position: fixed;
    z-index: 1080;
    width: 300px;
    background: #1e1f22;
    color: #dbdee1;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px) scale(0.97);
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
}

.pc-card.pc-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pc-banner {
    height: 84px;
    background-size: cover;
    background-position: center;
    background-color: #0b4f8a;
}

.pc-avatar-row {
    padding: 0 16px;
    margin-top: -34px;
    display: flex;
    align-items: flex-end;
}

.pc-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 6px solid #1e1f22;
    object-fit: cover;
    background: #2b2d31;
}

.pc-body {
    padding: 10px 16px 14px;
}

.pc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f3f5;
    line-height: 1.2;
}

.pc-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.pc-chip {
    background: #2b2d31;
    color: #c4c9ce;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pc-chip-role {
    background: #5865f2;
    color: #fff;
}

.pc-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #949ba4;
    margin: 12px 0 4px;
}

.pc-bio {
    font-size: 0.85rem;
    color: #dbdee1;
    white-space: pre-line;
    word-break: break-word;
}

.pc-bio-placeholder {
    color: #80848e;
    font-style: italic;
}

.pc-divider {
    border-top: 1px solid #2b2d31;
    margin: 12px -16px 0;
}

.pc-view-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.pc-view-btn:hover {
    background: #4752c4;
    color: #fff;
}

@media (max-width: 575.98px) {
    /* Hover cards are a pointer affordance; keep them off touch layouts */
    .pc-card {
        display: none;
    }
}
