/* Sympathy Score Gauge */
.sympathy-gauge-container {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    padding: 10px;
    display: none;
}

.sympathy-gauge {
    position: relative;
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.gauge-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(90deg, 
        #e74c3c 0%,      /* Rouge */
        #e67e22 20%,     /* Orange */
        #f39c12 40%,     /* Jaune */
        #95a5a6 50%,     /* Gris (neutre) */
        #52c234 60%,     /* Vert clair */
        #27ae60 80%,     /* Vert */
        #3498db 100%     /* Bleu */
    );
}

.gauge-pointer {
    position: absolute;
    top: 50%;
    left: 50%; /* Position neutre par défaut */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #2c3e50;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: left 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-pointer::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #2c3e50;
}

.gauge-value {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
}

/* États de la jauge selon le score */
.gauge-pointer.negative-high {
    border-color: #e74c3c;
}

.gauge-pointer.negative-medium {
    border-color: #e67e22;
}

.gauge-pointer.negative-low {
    border-color: #f39c12;
}

.gauge-pointer.neutral {
    border-color: #95a5a6;
}

.gauge-pointer.positive-low {
    border-color: #52c234;
}

.gauge-pointer.positive-medium {
    border-color: #27ae60;
}

.gauge-pointer.positive-high {
    border-color: #3498db;
}

/* Animation de mise à jour */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.gauge-pointer.updating {
    animation: pulse 0.5s ease-out;
}