.profile-hover-card {
position: fixed;
background: #1a1f2e;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 0;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
opacity: 0;
transform: translateY(-8px) scale(0.95);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
pointer-events: none;
z-index: 999999;
width: 320px;
height: 420px;
max-width: calc(100vw - 32px);
backdrop-filter: blur(16px);
overflow: hidden;
}

.profile-hover-card.show {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}

.profile-card-banner {
height: 60px;
background: linear-gradient(135deg, #3b82f6, #1d4ed8, #8b5cf6);
position: relative;
}

.profile-card-content {
padding: 18px;
position: relative;
z-index: 2;
}

.profile-card-follow-btn {
position: absolute;
top: 12px;
right: 12px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.8rem;
font-weight: 600;
z-index: 10;
backdrop-filter: blur(8px);
}

.profile-card-follow-btn:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}

.profile-card-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
border: 3px solid #1a1f2e;
margin-bottom: 12px;
margin-top: -30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-card-info h3 {
color: white;
font-size: 1.1rem;
font-weight: 700;
margin: 0 0 4px 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-card-username {
color: rgba(255, 255, 255, 0.7);
font-size: 0.85rem;
margin: 0 0 8px 0;
}

.profile-card-bio {
color: rgba(255, 255, 255, 0.85);
font-size: 0.85rem;
line-height: 1.4;
margin: 0 0 12px 0;
white-space: pre-line;
}

.profile-card-stats {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 6px;
margin-bottom: 12px;
}

.profile-stat {
background: rgba(255, 255, 255, 0.08);
padding: 8px 6px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
backdrop-filter: blur(4px);
}

.profile-stat-number {
color: #60a5fa;
font-size: 0.85rem;
font-weight: 700;
margin: 0 0 2px 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-stat-label {
color: rgba(255, 255, 255, 0.65);
font-size: 0.7rem;
margin: 0;
font-weight: 500;
}

.profile-card-details {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.05);
padding: 10px 12px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 12px;
backdrop-filter: blur(4px);
}

.profile-card-details .detail-label {
color: #34d399;
font-size: 0.75rem;
font-weight: 600;
margin: 0;
}

.profile-card-details .detail-value {
color: rgba(255, 255, 255, 0.8);
font-size: 0.75rem;
margin: 0;
font-weight: 500;
}

.profile-card-view-btn {
width: 100%;
padding: 10px 16px;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
border: 1px solid rgba(59, 130, 246, 0.3);
color: #93c5fd;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.85rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
backdrop-filter: blur(8px);
}

.profile-card-view-btn:hover {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.25));
border-color: rgba(59, 130, 246, 0.4);
color: white;
transform: translateY(-1px);
}

@media (max-width: 640px) {
.profile-hover-card {
width: 300px;
height: 380px;
}

.profile-card-content {
padding: 16px;
}

.profile-card-banner {
height: 55px;
}

.profile-card-avatar {
width: 55px;
height: 55px;
margin-top: -27px;
}

.profile-card-info h3 {
font-size: 1rem;
}

.profile-card-username {
font-size: 0.8rem;
}

.profile-card-bio {
font-size: 0.8rem;
}

.profile-card-stats {
gap: 4px;
}

.profile-stat {
padding: 6px 4px;
}

.profile-stat-number {
font-size: 0.8rem;
}

.profile-stat-label {
font-size: 0.65rem;
}
}
