/* Simple Polls Plugin - Frontend Styles */

.sp-poll-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sp-poll-question h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.sp-poll-hint {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

/* Poll Form */
.sp-poll-form {
    margin-bottom: 1.5rem;
}

.sp-poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sp-poll-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sp-poll-option:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.sp-poll-option input[type="radio"],
.sp-poll-option input[type="checkbox"] {
    margin: 0 0.75rem 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sp-poll-option span {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.sp-poll-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.sp-poll-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.sp-poll-submit:active {
    transform: translateY(0);
}

/* Results */
.sp-poll-results {
    animation: fadeIn 0.5s ease;
}

.sp-poll-total {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.sp-poll-total strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.sp-result-item {
    margin-bottom: 1.25rem;
}

.sp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sp-result-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.sp-result-stats {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.sp-result-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.sp-result-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s ease;
    border-radius: 6px;
}

/* Messages */
.sp-poll-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

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

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sp-poll-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .sp-poll-question h3 {
        font-size: 1.25rem;
    }
    
    .sp-poll-option {
        padding: 0.75rem;
    }
    
    .sp-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
