/* ==========================================================================
   Sophicly · The Final Retrieval (v3.10.0)
   Active-recall gate. Light/dark via the shared --sc-* tokens (sophicly-theme).
   Brand purple/teal stay fixed; neutrals flip with the theme.
   ========================================================================== */

.scfr-widget {
    --scfr-correct: #1CD991;   /* brand success green */
    --scfr-wrong:   #d63638;   /* WP admin red */
    font-family: 'Proxima Soft', system-ui, -apple-system, sans-serif;
    max-width: 760px;
    margin: 24px auto;
    -webkit-font-smoothing: antialiased;
}

.scfr-card {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    padding: 28px 26px;
    color: var(--sc-text);
}

.scfr-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--sc-accent);
    margin-bottom: 10px;
}
.scfr-title { font-size: 23px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: var(--sc-text); }
.scfr-intro { font-size: 15px; line-height: 1.55; color: var(--sc-text-muted); margin: 0 0 20px; max-width: 56ch; }

.scfr-group {
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--sc-text-dim);
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--sc-border);
}

.scfr-item {
    position: relative;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-border);
    border-left: 3px solid var(--sc-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.scfr-prompt { font-size: 14.5px; line-height: 1.5; color: var(--sc-text); margin-bottom: 10px; }

.scfr-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.scfr-input {
    flex: 1 1 180px; min-width: 0;
    font-family: inherit; font-size: 14px;
    color: var(--sc-text);
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 9px;
    padding: 9px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scfr-input::placeholder { color: var(--sc-text-dim); }
.scfr-input:focus {
    outline: none;
    border-color: #5333ed;
    box-shadow: 0 0 0 3px rgba(83,51,237,0.15);
}
.scfr-input:disabled { opacity: 1; }
.scfr-input.is-correct { border-color: var(--scfr-correct); box-shadow: inset 0 0 0 1px var(--scfr-correct); }
.scfr-input.is-wrong   { border-color: var(--scfr-wrong);   box-shadow: inset 0 0 0 1px var(--scfr-wrong); }

/* Verdict on the gate */
.scfr-item--correct { border-left-color: var(--scfr-correct); }
.scfr-item--partial { border-left-color: var(--sc-accent); }
.scfr-item--wrong   { border-left-color: var(--scfr-wrong); }

.scfr-reveal {
    display: none;
    margin-top: 10px;
    font-size: 13.5px; line-height: 1.5;
    color: var(--sc-text-muted);
    padding: 10px 12px;
    background: var(--sc-accent-tint);
    border-radius: 9px;
}
.scfr-reveal.is-shown { display: block; animation: scfrReveal 0.3s ease both; }
@keyframes scfrReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.scfr-actions { display: flex; gap: 10px; margin-top: 20px; }
.scfr-btn {
    appearance: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600;
    padding: 10px 26px; border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.scfr-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5333ed 0%, #2c003e 100%);
    box-shadow: 0 6px 18px rgba(83,51,237,0.32);
}
.scfr-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(83,51,237,0.42); }
.scfr-btn-primary:disabled { opacity: 0.6; cursor: default; }
.scfr-btn-ghost {
    color: var(--sc-text-muted);
    background: transparent;
    border: 1px solid var(--sc-border);
}
.scfr-btn-ghost:hover { background: var(--sc-surface-hover); color: var(--sc-text); }

.scfr-scorebar { display: none; margin-top: 18px; }
.scfr-scorebar.is-shown { display: block; animation: scfrReveal 0.3s ease both; }
.scfr-score { font-size: 16px; font-weight: 700; color: var(--sc-text); }
.scfr-score-sub { font-size: 13px; color: var(--sc-text-muted); margin-top: 3px; }

@media (max-width: 600px) {
    .scfr-card { padding: 22px 18px; }
    .scfr-actions { flex-direction: column; }
    .scfr-btn { width: 100%; }
}
