/* assets/css/hovercard.css */
.profile-hovercard {
    position: absolute;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    z-index: 10000;
    overflow: hidden;
    display: none;
    animation: hc-fadein 0.2s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes hc-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hc-cover {
    height: 120px;
    background-color: #f0f2f5;
    background-size: cover;
    background-position: center;
}

.hc-body {
    padding: 0 16px 16px;
    position: relative;
    text-align: center;
}

.hc-avatar-wrapper {
    position: relative;
    margin-top: -45px;
    display: inline-block;
}

.hc-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #fff;
}

.hc-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    margin-top: 8px;
    text-decoration: none;
}

.hc-name:hover {
    text-decoration: underline;
}

.hc-mutual {
    font-size: 13px;
    color: #65676b;
    margin-top: 4px;
}

.hc-bio {
    font-size: 14px;
    color: #4b4b4b;
    margin-top: 12px;
    line-height: 1.4;
}

.hc-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
}

.hc-btn {
    flex: 1;
    height: 36px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.hc-btn-primary {
    background: #1877f2;
    color: #fff;
}

.hc-btn-primary:hover {
    background: #166fe5;
}

.hc-btn-secondary {
    background: #e4e6eb;
    color: #050505;
}

.hc-btn-secondary:hover {
    background: #d8dadf;
}

/* Dark mode support if the site has it */
[data-theme="dark"] .profile-hovercard {
    background: #242526;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hc-name {
    color: #e4e6eb;
}

[data-theme="dark"] .hc-mutual {
    color: #b0b3b8;
}

[data-theme="dark"] .hc-bio {
    color: #b0b3b8;
}

[data-theme="dark"] .hc-footer {
    border-top-color: #3e4042;
}

[data-theme="dark"] .hc-btn-secondary {
    background: #3a3b3c;
    color: #e4e6eb;
}

[data-theme="dark"] .hc-avatar {
    border-color: #242526;
}