/* Système de vote pour les défis */

.challenge-vote-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.vote-buttons {
    display: flex;
    gap: 10px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-btn.upvote {
    color: #28a745;
    border-color: #28a745;
}

.vote-btn.upvote:hover:not(:disabled) {
    background-color: #28a745;
    color: white;
}

.vote-btn.upvote.active {
    background-color: #28a745;
    color: white;
}

.vote-btn.downvote {
    color: #dc3545;
    border-color: #dc3545;
}

.vote-btn.downvote:hover:not(:disabled) {
    background-color: #dc3545;
    color: white;
}

.vote-btn.downvote.active {
    background-color: #dc3545;
    color: white;
}

.vote-count {
    font-weight: bold;
}

.vote-score {
    margin-left: auto;
    padding: 8px 16px;
    background-color: white;
    border-radius: 20px;
    font-weight: bold;
    color: #6c757d;
}

.challenge-disabled-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .challenge-vote-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vote-buttons {
        justify-content: center;
    }
    
    .vote-score {
        text-align: center;
    }
}
