Another option is to order a title search on the property from a local title company. This will tell you who else has an interest in the property. For example, if the foreclosure is on a second mortgage, the first mortgage runs with the property. The first mortgage holder could turn around and foreclose on the property for the balance of their loan. If the new buyer does not pay that, they could lose their purchase price. A title search will identify these problems. This also costs around $100 and the attorney is going to order it anyway.
I would recommend starting here and then if you are still nervous you can get an attorney.
You have the paperwork, call the association and find out how much is owed in HOA- it is part of the debt and will have to paid.
Get reasonable paid attorney to get the papers ready but only after you see what is damaged.
Then either your offer is accepted or not.
Forget all these "opinions" you can roof failing down or broken toilet yourself.
However if you are getting a loan, than a county certified appraiser is needed to get one. That person will find all there is wrong with it.