/**
 * Voting system styles
 */

/* Button active states */
.upvote-btn.active {
    color: #059669; /* text-green-600 */
}

.downvote-btn.active {
    color: #dc2626; /* text-red-600 */
}

/* Vote animation */
.vote-animation {
    animation: pulse 0.5s ease-in-out;
}

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

/* Floating vote animation */
.floating-vote {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
    z-index: 100;
    transform: translate(-50%, -50%);
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1.5);
    }
}

/* Toast container */
#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Login modal */
#login-modal {
    display: none;
}

#login-modal > div {
    transition: all 0.3s ease;
}
