/**
 * AAP UGC CAPTCHA Styles
 * Math CAPTCHA styling for UGC submission form
 * 
 * @version 1.0
 */

/* CAPTCHA Field Container */
.aap-ugc-captcha-field {
    margin-bottom: 0;
}

.aap-ugc-captcha-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.aap-ugc-captcha-field label svg {
    flex-shrink: 0;
}

/* Question Wrapper */
.captcha-question-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
}

/* Math Question Display */
.captcha-question {
    font-size: 17px;
    font-weight: 600;
    background: #ffffff;
    padding: 10px 16px;
}

/* Answer Input */
.captcha-input {
    width: 90px !important;
    padding: 10px 4px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
    transition: all 0.2s ease;
}

.captcha-input:focus {
    border-color: #0073aa !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1) !important;
}

.captcha-input:valid {
    border-color: #10b981 !important;
}

/* CAPTCHA Container */
#aap-ugc-captcha-container {
    margin-bottom: 20px;
}

/* Loading State */
.aap-ugc-captcha-loading {
    padding: 20px;
    text-align: center;
}

.aap-ugc-captcha-loading::after {
    content: '🔄 Loading security check...';
    color: #64748b;
    font-size: 14px;
    animation: captchaPulse 2s infinite;
}

/* Error Message */
.aap-ugc-captcha-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.aap-ugc-captcha-error strong {
    display: block;
    margin-bottom: 4px;
}

/* Animations */
@keyframes captchaPulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .captcha-question-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-question,
    .captcha-input {
        width: 100% !important;
        text-align: center;
    }
    
    .captcha-question {
        font-size: 16px;
        padding: 12px;
    }
}
