/* ==========================================
   screen-iq.css
   Stiluri pentru:
     - _ScreenIQ.cshtml (screen-iq + screen-iq-results)
   Referinta in: Support.cshtml, si orice alt job view care include _ScreenIQ partial
   Depinde de: screen-email.css (pentru .sa-card, .sa-btn-*, .sa-progress-*)
   ========================================== */

/* ==================== TIMER ==================== */
.sa-timer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 25px;
    width: fit-content;
    margin: 0 auto 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sa-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
}

.sa-timer.warning {
    color: #ef4444;
}

/* ==================== QUESTION AREA ==================== */
.sa-question-area {
    margin-top: 1rem;
}

.sa-question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ==================== IQ OPTIONS ==================== */
.sa-iq-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sa-iq-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.95rem;
    color: #374151;
    font-family: inherit;
}

.sa-iq-option:hover {
    border-color: #a5b4fc;
    background: #f0f4ff;
}

.sa-iq-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.sa-iq-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: #6b7280;
    transition: all 0.2s;
}

.sa-iq-letter.checked {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}



/* ==================== IQ RESULTS ==================== */
.sa-result-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.sa-result-circle span {
    font-size: 2rem;
    font-weight: 800;
}

.sa-result-circle.passed { background: #d1fae5; color: #059669; }
.sa-result-circle.failed { background: #ffedd5; color: #ea580c; }

.sa-result-sub {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.sa-result-msg {
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.sa-result-msg.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.sa-result-msg.success p { color: #065f46; }

.sa-result-msg.fail {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.sa-result-msg.fail p { color: #9a3412; }

/* ==================== IQ SCALE BAR ==================== */
.sa-iq-scale {
    max-width: 400px;
    margin: 1.5rem auto;
}

.sa-iq-scale-bar {
    height: 10px;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.sa-iq-scale-bar .seg { height: 100%; }
.sa-iq-scale-bar .seg.red    { width: 20%; background: #fca5a5; }
.sa-iq-scale-bar .seg.yellow { width: 20%; background: #fde68a; }
.sa-iq-scale-bar .seg.green  { width: 30%; background: #86efac; }
.sa-iq-scale-bar .seg.blue   { width: 30%; background: #93c5fd; }

.sa-iq-marker {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 14px;
    background: #1f2937;
    border-radius: 1px;
}

.sa-iq-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

/* ==================== LOCKED (raspuns deja dat, Back navigatie) ==================== */
.sa-iq-option.locked {
    cursor: not-allowed;
}

/* Optiunea neselectata devine gri estompat */
.sa-iq-option.locked:not(.selected) {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

/* Optiunea selectata devine gri mediu */
.sa-iq-option.locked.selected {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #6b7280;
}

.sa-iq-option.locked:hover,
.sa-iq-option.locked.selected:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Litera selectata devine gri */
.sa-iq-option.locked .sa-iq-letter.checked {
    background: #9ca3af;
    border-color: #9ca3af;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sa-iq-grid {
        grid-template-columns: 1fr;
    }
}
