/* Profile Hover Card */
.profile-hover-card {
    position: fixed !important;
    width: 280px;
    background: #181a1c;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(76, 175, 80, 0.2) inset;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: translateY(-15px) scale(0.95);
    display: block !important;
    backdrop-filter: blur(10px);
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.profile-hover-card.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transform: translateY(0) scale(1) !important;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
}

.profile-hover-banner {
    height: 65px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.profile-hover-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.profile-hover-card.show .profile-hover-banner::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.profile-hover-content {
    padding: 0 1rem 1rem;
    margin-top: -28px;
    position: relative;
}

.profile-hover-card.show .profile-hover-content > * {
    animation: slideInContent 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(1) {
    animation-delay: 0.05s;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(3) {
    animation-delay: 0.15s;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(4) {
    animation-delay: 0.2s;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(5) {
    animation-delay: 0.25s;
}

.profile-hover-card.show .profile-hover-content > *:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes slideInContent {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-hover-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid #181a1c;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.65rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-hover-avatar:hover {
    transform: scale(1.05);
}

.profile-hover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-hover-avatar:hover img {
    transform: scale(1.1);
}

.profile-hover-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-hover-name .owner-crown,
.profile-hover-name .admin-crown {
    font-size: 0.875rem;
}

.profile-hover-username {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.65rem;
}

.profile-hover-bio {
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 0.875rem;
    max-height: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-hover-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.875rem;
    font-size: 0.8rem;
}

.profile-hover-stat {
    display: flex;
    gap: 0.25rem;
}

.profile-hover-stat-value {
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-hover-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.profile-hover-follow-btn {
    width: 100%;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.profile-hover-follow-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.profile-hover-follow-btn.following {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.profile-hover-follow-btn.following:hover {
    background: rgba(239, 83, 80, 0.2);
    border-color: rgba(239, 83, 80, 0.5);
    color: #EF5350;
}

.profile-hover-view-profile {
    width: 100%;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-align: center;
    text-decoration: none;
    display: block;
}

.profile-hover-view-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}
