/* Professional User Profile Dropdown Styles */

.user-profile-dropdown {
    position: relative;
    direction: ltr;
}

.user-profile-btn {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.2);
    min-width: 160px;
    direction: ltr;
    flex-direction: row;
}

.user-profile-btn:hover {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.user-profile-btn:focus {
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    margin-right: 10px;
    margin-left: 0;
}

.user-avatar i {
    font-size: 18px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
    direction: ltr;
    order: 2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: white;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    direction: ltr;
}

.user-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-align: left;
    direction: ltr;
}

.user-dropdown-menu {
    min-width: 280px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 10px;
    background: white;
    overflow: hidden;
    direction: ltr;
    text-align: left;
}

.user-dropdown-menu .dropdown-header {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: white;
    padding: 20px;
    border: none;
    margin: 0;
    text-align: left;
    direction: ltr;
}

.user-header-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    direction: ltr;
    flex-direction: row;
}

.user-header-info i {
    color: white !important;
}

.user-header-info strong {
    font-size: 16px;
    font-weight: 600;
}

.user-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #2C3E50;
    transition: all 0.2s ease;
    border: none;
    text-align: left;
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user-dropdown-menu .dropdown-item:hover {
    background: #F8F9FA;
    color: #B8860B;
    padding-left: 25px;
    padding-right: 20px;
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #6C757D;
    margin-right: 10px;
    margin-left: 0;
    order: 1;
}

.user-dropdown-menu .dropdown-item:hover i {
    color: #B8860B;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: #FFF5F5;
    color: #DC3545;
}

.user-dropdown-menu .dropdown-item.text-danger:hover i {
    color: #DC3545;
}

.user-dropdown-menu .dropdown-divider {
    margin: 8px 0;
    opacity: 0.1;
}

/* Auth Buttons for Non-logged users */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-buttons .btn {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-buttons .btn-outline-primary {
    border-color: #B8860B;
    color: #B8860B;
    background: transparent;
}

.auth-buttons .btn-outline-primary:hover {
    background: #B8860B;
    border-color: #B8860B;
    color: white;
    transform: translateY(-1px);
}

.auth-buttons .btn-primary {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    border: none;
    color: white;
}

.auth-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-profile-btn {
        min-width: 100px;
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-avatar i {
        font-size: 16px;
    }
    
    .user-dropdown-menu {
        min-width: 220px;
        right: 0;
        left: auto;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .user-profile-dropdown {
        position: static;
    }
    
    .user-dropdown-menu {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: none;
        border-radius: 10px;
        z-index: 9999;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .auth-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }
}

/* Animation for dropdown */
.user-dropdown-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User profile button focus state */
.user-profile-btn:focus-visible {
    outline: 2px solid #B8860B;
    outline-offset: 2px;
}

/* Improved dropdown positioning */
.user-profile-dropdown .dropdown-menu {
    left: 0;
    right: auto;
    direction: ltr;
    text-align: left;
}

/* Additional hover effects */
.user-profile-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.user-profile-btn:hover::after {
    opacity: 1;
}