/* Voting System Styles */

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

.vote-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
    justify-content: center;
}

.vote-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vote-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vote-count {
    font-weight: bold;
    color: inherit;
    min-width: 20px;
    text-align: center;
}

/* Vote statistics display */
.vote-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.vote-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.vote-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.vote-stat-value {
    font-weight: bold;
    color: var(--text-color);
}

/* Vote progress bar */
.vote-progress {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 5px 0;
}

.vote-progress-bar {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* Vote animations */
@keyframes votePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.vote-btn:active {
    animation: votePulse 0.2s ease;
}

/* Vote message styles */
.vote-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.vote-message.success {
    background: #4CAF50;
}

.vote-message.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Vote button variants */
.vote-btn.upvote-btn:hover {
    background: #4CAF50;
    border-color: #4CAF50;
}

.vote-btn.downvote-btn:hover {
    background: #f44336;
    border-color: #f44336;
}

.vote-btn.upvote-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.vote-btn.downvote-btn.active {
    background: #f44336;
    border-color: #f44336;
}

/* Vote button groups */
.vote-button-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.vote-button-group .vote-btn {
    flex: 1;
    min-width: 50px;
}

/* Vote summary display */
.vote-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.vote-summary-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Responsive voting */
@media (max-width: 768px) {
    .vote-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .vote-btn {
        width: 100%;
        justify-content: center;
    }
    
    .vote-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .vote-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .vote-btn:hover {
    background: var(--accent-color);
    color: white;
}

[data-theme="dark"] .vote-stats {
    background: var(--card-bg);
    border-color: var(--border-color);
} 