/**
 * Vote System - Frontend Styles
 * @package VoteSystem
 */

/* Vote button container */
.vote-system-button-wrap {
    display: inline-block;
    margin: 5px;
}

/* Vote button */
.vote-system-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.vote-system-button:hover {
    background-color: #005177;
}

.vote-system-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Vote button states */
.vote-system-button.voted {
    background-color: #46b450;
}

.vote-system-button.loading {
    opacity: 0.6;
    cursor: wait;
}

/* Message Container */
.vote-system-message-container {
    min-height: 50px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Messages */
.vote-system-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.vote-system-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-system-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Stats display */
.vote-system-stats {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.vote-system-stats h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.vote-system-stats-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.vote-system-stats-meta p {
    margin: 5px 0;
    color: #666;
}

.vote-system-stats-list {
    margin-top: 15px;
}

.vote-system-stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 5px;
}

.vote-system-stats-label {
    font-weight: 600;
    color: #333;
}

.vote-system-stats-count {
    color: #0073aa;
    font-weight: bold;
}

.vote-system-stats-percentage {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

/* Progress bar */
.vote-system-stats-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.vote-system-stats-bar-fill {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

/* Error messages */
.vote-system-error {
    padding: 10px 15px;
    margin: 10px 0;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
}

/* Street Mode indicator */
.vote-system-button-wrap[data-street-mode="1"] .vote-system-button {
    border: 2px solid #46b450;
    box-shadow: 0 0 10px rgba(70, 180, 80, 0.3);
}

.vote-system-button-wrap[data-street-mode="1"] .vote-system-button:hover {
    border-color: #46b450;
    box-shadow: 0 0 15px rgba(70, 180, 80, 0.5);
}

/* Loading spinner */
.vote-system-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vote-system-spin 0.6s linear infinite;
}

@keyframes vote-system-spin {
    to { transform: rotate(360deg); }
}

