/* Feedback Counter Styles */

.feedback-count-number {
    transition: color 0.3s, transform 0.3s;
    will-change: transform, color;
}

.feedback-count-number.count-updated {
    animation: countPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #4CAF50;
    }
    100% {
        transform: scale(1);
    }
}

/* Animation containers for Lottie or other feedback visuals */
.positive-animation,
.negative-animation {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.positive-animation.active,
.negative-animation.active {
    opacity: 1;
    pointer-events: auto;
}

/* Positive/negative counter color cues */
#positive-feedback-count {
    color: #4CAF50;
}
#negative-feedback-count {
    color: #F44336;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .feedback-counter-container {
        flex-direction: column;
        gap: 1.2rem;
    }
    .positive-animation,
    .negative-animation {
        width: 56px;
        height: 56px;
    }
    .feedback-count-number {
        font-size: 1.5rem;
    }
}
