/* Progressive Voting Styles */

.voting-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
}

/* Representative Connection Banner */
.rep-connection-banner {
    background: linear-gradient(135deg, #EBF8FF, #DBEAFE);
    border-left: 4px solid #2563EB;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rep-connection-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.rep-connection-text {
    flex: 1;
}

.rep-connection-text strong {
    display: block;
    color: #1E40AF;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 700;
}

.rep-connection-text p {
    color: #1E40AF;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.question-label {
    display: block;
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
    font-weight: 600;
}

.question-container {
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-btn {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.vote-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.vote-btn:hover::before {
    left: 100%;
}

.vote-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.vote-icon {
    font-size: 20px;
}

.vote-text {
    font-size: 15px;
}

/* Button variants */
.vote-btn-support:hover {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-color: #10B981;
    color: #065F46;
}

.vote-btn-oppose:hover {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #EF4444;
    color: #991B1B;
}

.vote-btn-unsure:hover {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-color: #6B7280;
    color: #374151;
}

.vote-btn-help:hover {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-color: #10B981;
    color: #065F46;
}

.vote-btn-hurt:hover {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #EF4444;
    color: #991B1B;
}

.vote-btn-neutral:hover {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-color: #6B7280;
    color: #374151;
}

.vote-btn-notsure:hover {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-color: #F59E0B;
    color: #92400E;
}

.vote-btn-yes:hover {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-color: #10B981;
    color: #065F46;
}

.vote-btn-no:hover {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #EF4444;
    color: #991B1B;
}

.vote-btn-decide:hover {
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    border-color: #8B5CF6;
    color: #5B21B6;
}

.vote-status {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.privacy-notice {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.privacy-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Results Display */
.vote-results {
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.result-section {
    margin-bottom: 16px;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-label {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.result-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 70px;
}

.result-bar-bg {
    flex: 1;
    height: 28px;
    background: #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.result-bar-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.result-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    min-width: 45px;
    text-align: right;
}

/* ZIP Prompt */
.zip-prompt {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question-buttons {
        flex-direction: column;
    }
    
    .vote-btn {
        width: 100%;
        min-width: auto;
        min-height: 48px;
    }
    
    .rep-connection-banner {
        padding: 14px 16px;
    }
    
    .rep-connection-icon {
        font-size: 28px;
    }
    
    .rep-connection-text strong {
        font-size: 14px;
    }
    
    .rep-connection-text p {
        font-size: 12px;
    }
    
    .result-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-bar-label {
        min-width: auto;
    }
    
    .result-bar-bg {
        width: 100%;
    }
    
    .result-bar-value {
        align-self: flex-end;
    }
}

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

.question-buttons {
    animation: fadeIn 0.3s ease-in-out;
}
