/**
 * SD Captcha - Styles
 *
 * @author    SiDev
 * @copyright SiDev
 */

/* Honeypot - Masquer le champ piège de manière robuste */
.sdcaptcha-hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.sdcaptcha-hp-input,
.sdcaptcha-hp-label {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Question mathématique */
.sdcaptcha-math {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.sdcaptcha-math .form-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sdcaptcha-icon {
    font-size: 1.1em;
}

.sdcaptcha-question {
    color: var(--bs-primary, #0d6efd);
    font-family: monospace;
    font-size: 1.1em;
    background-color: var(--bs-light, #f8f9fa);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.sdcaptcha-answer-input {
    max-width: 150px;
}

/* Notice reCAPTCHA */
.sdcaptcha-recaptcha-notice {
    font-size: 0.75rem;
    color: var(--bs-secondary, #6c757d);
    margin-top: 0.5rem;
}

.sdcaptcha-recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}

.sdcaptcha-recaptcha-notice a:hover {
    color: var(--bs-primary, #0d6efd);
}

/* Animation subtile pour attirer l'attention */
.sdcaptcha-math:focus-within .sdcaptcha-question {
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    transition: background-color 0.3s ease;
}

/* Responsive */
@media (max-width: 576px) {
    .sdcaptcha-math .form-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sdcaptcha-answer-input {
        max-width: 100%;
    }
}

/* Mode sombre (si supporté par le thème) */
@media (prefers-color-scheme: dark) {
    .sdcaptcha-question {
        background-color: rgba(255, 255, 255, 0.1);
    }
}
