/* Profile Avatar Styles for Navigation Bar */

.profile-avatar-nav {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

.avatar-link {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.avatar-link:hover {
    transform: scale(1.05);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-initials {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    user-select: none;
    letter-spacing: 0.5px;
}

/* Dark mode support */
[data-theme="dark"] .avatar-circle {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .avatar-circle:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-avatar-nav {
        margin-left: 0.25rem;
        margin-right: 0.5rem;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
    }
    
    .avatar-initials {
        font-size: 14px;
    }
}

/* Animation for avatar appearance */
@keyframes fadeInAvatar {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-avatar-nav {
    animation: fadeInAvatar 0.4s ease-out;
}

/* Tooltip for profile avatar */
.avatar-link[title] {
    position: relative;
}

.avatar-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.avatar-link:hover::after {
    opacity: 1;
}