/* Styles pour le système de commentaires et notations */

/* Notation avec cœurs */
.rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.rating-star {
    cursor: pointer;
    font-size: 1em;
    color: #ddd;
    transition: all 0.2s ease;
    padding: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.rating-star:hover {
    background-color: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.rating-star:hover,
.rating-star:hover ~ .rating-star {
    color: #ff6b6b;
}

.rating-input input[type="radio"]:checked ~ .rating-star,
.rating-input input[type="radio"]:checked ~ .rating-star ~ .rating-star {
    color: #ff6b6b;
}

.rating-input input[type="radio"]:checked + .rating-star {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* Affichage des notes */
.rating-display {
    display: flex;
    gap: 2px;
}

.rating-display i {
    font-size: 0.9em;
}

/* Commentaires */
.comments-list .card {
    border-left: 3px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.comments-list .card:hover {
    border-left-color: #007bff;
}

/* Réponses aux commentaires */
.comments-list .ms-5 .card {
    border-left-color: #6c757d;
    background-color: #f8f9fa;
}

.comments-list .ms-5 .card:hover {
    border-left-color: #495057;
}

/* Bouton de réponse */
.reply-btn {
    font-size: 0.85em;
    padding: 0.25rem 0.5rem;
}

/* Avatar par défaut */
.rounded-circle.bg-primary,
.rounded-circle.bg-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation pour les nouveaux commentaires */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-new {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-input {
        justify-content: center;
    }
    
    .rating-star {
        font-size: 1.8em;
    }
    
    .comments-list .ms-5 {
        margin-left: 1rem !important;
    }
}

/* Badge de note moyenne */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Style pour les messages de modération */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-success {
    border-left: 4px solid #28a745;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}
