/**
 * IRL Felt Difficulty Voting - Styles
 */

/* Vote UI Container */
.irl-difficulty-vote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

/* Vote Prompt */
.irl-vote-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.irl-vote-question {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4a5568;
}

/* Vote Buttons Container */
.irl-vote-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Vote Buttons */
.irl-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.irl-vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.irl-vote-btn:active {
    transform: translateY(0);
}

.irl-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.irl-vote-btn--loading {
    position: relative;
}

.irl-vote-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: irl-spin 0.6s linear infinite;
    right: 0.75rem;
}

@keyframes irl-spin {
    to { transform: rotate(360deg); }
}

/* Easy Button */
.irl-vote-easy {
    border-color: #7dffa9;
    color: #22543d;
}

.irl-vote-easy:hover {
    background: #7dffa9;
    color: #1a4731;
}

.irl-vote-easy svg {
    color: #38a169;
}

/* Hard Button */
.irl-vote-hard {
    border-color: #ff7d92;
    color: #742a2a;
}

.irl-vote-hard:hover {
    background: #ff7d92;
    color: #fff;
}

.irl-vote-hard svg {
    color: #e53e3e;
}

.irl-vote-hard:hover svg {
    color: #fff;
}

/* Thank You Message */
.irl-vote-thanks {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #38a169;
}

.irl-vote-thanks span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Vote Totals Display */
.irl-vote-totals {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.irl-vote-total {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #718096;
}

.irl-vote-total svg {
    flex-shrink: 0;
}

.irl-vote-total-hard svg {
    color: #e53e3e;
}

.irl-vote-total-easy svg {
    color: #38a169;
}

/* Responsive */
@media (max-width: 480px) {
    .irl-difficulty-vote {
        padding: 0.875rem 1rem;
    }

    .irl-vote-buttons {
        flex-direction: column;
        width: 100%;
    }

    .irl-vote-btn {
        width: 100%;
        justify-content: center;
    }

    .irl-vote-totals {
        padding: 0.625rem 0.875rem;
    }
}

/* Dark mode support (if theme uses it) */
@media (prefers-color-scheme: dark) {
    .irl-difficulty-vote {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }

    .irl-vote-question {
        color: #e2e8f0;
    }

    .irl-vote-btn {
        background: #2d3748;
        color: #e2e8f0;
    }

    .irl-vote-totals {
        background: #2d3748;
    }

    .irl-vote-total {
        color: #a0aec0;
    }
}
