/* Container principal */
.wp-rating-widget {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container de notation */
.rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Étoiles */
.rating-stars {
    display: inline-flex;
    gap: 5px;
    font-size: 40px;
    color: #ddd;
}

.star {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: #ffc107;
}

.star:hover {
    transform: scale(1.1);
}

.star.hover {
    color: #ff9800;
}

.star.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.already-voted .star {
    cursor: default;
}

.already-voted .star:hover {
    transform: none;
}

/* Informations de notation */
.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.rating-average {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.rating-total {
    color: #999;
    font-size: 14px;
}

/* Messages */
.rating-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.rating-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rating-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
    .wp-rating-widget {
        padding: 15px;
    }
    
    .rating-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .star {
        font-size: 32px;
    }
}

/* Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.star:active {
    animation: pulse 0.3s ease;
}

/* Vote de l'utilisateur */
.star.user-voted {
    color: #ff9800 !important;
    font-weight: bold;
}

.user-rating-info {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Hover sur le vote existant */
.wp-rating-widget:not(.voting) .star.user-voted:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}