/* Styles pour les photos de profil dans les différentes vues */

/* Photos de profil dans les vues éducateur */
.user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Photos dans la liste des abonnés */
.subscriber-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.subscriber-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Photos dans la vue admin */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Photos des animaux */
.animal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.animal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-right: 15px;
    }
    
    .subscriber-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .animal-photo {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-right: 10px;
    }
}

/* Hover effects */
.user-avatar-image:hover,
.subscriber-avatar-image:hover,
.admin-user-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Placeholder icons styling */
.profile-avatar i,
.subscriber-avatar i,
.user-avatar-small i,
.animal-photo i {
    opacity: 0.8;
}

/* Badge overlay pour les statuts */
.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.avatar-badge.online {
    background: #48bb78;
    color: white;
}

.avatar-badge.premium {
    background: #f6ad55;
    color: white;
}

.avatar-badge.verified {
    background: #4299e1;
    color: white;
}

/* Container avec position relative pour les badges */
.avatar-container {
    position: relative;
    display: inline-block;
}

/* Amélioration pour les cartes d'animaux détaillées */
.animal-detailed-card .animal-photo {
    width: 100px;
    height: 100px;
    font-size: 40px;
}

/* Styles pour les messages de conversation */
.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-avatar-image,
.subscriber-avatar-image,
.admin-user-avatar {
    animation: fadeIn 0.3s ease-out;
}

/* Styles pour les photos manquantes */
.no-photo {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.no-photo i {
    opacity: 0.6;
}

/* Amélioration de l'accessibilité */
.user-avatar-image:focus,
.subscriber-avatar-image:focus,
.admin-user-avatar:focus {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}
