/* ── Utsuk UPSC Quiz – Frontend Styles ── */
.utsuk-quiz-wrap {
    margin: 40px 0;
    font-family: 'Noto Sans Devanagari', 'Hind', sans-serif;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #e8e0d5;
}

/* Header */
.utsuk-quiz-header {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}
.utsuk-quiz-icon { font-size: 42px; margin-bottom: 8px; }
.utsuk-quiz-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.utsuk-quiz-intro {
    margin: 0 0 12px;
    opacity: 0.9;
    font-size: 14px;
}
.utsuk-quiz-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    opacity: 0.85;
}
.utsuk-quiz-meta span {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Body */
.utsuk-quiz-body { background: #fffaf5; padding: 28px 32px; }

/* Question block */
.utsuk-question-block {
    background: #fff;
    border: 1px solid #f0e8df;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: box-shadow .2s;
}
.utsuk-question-block:hover { box-shadow: 0 2px 10px rgba(230,100,0,.1); }

.utsuk-q-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c1a0a;
    margin: 0 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.utsuk-q-number {
    background: #ff6b00;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Options */
.utsuk-options-list { display: flex; flex-direction: column; gap: 10px; }
.utsuk-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e8ddd5;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: all .2s;
    width: 100%;
}
.utsuk-opt:hover:not([disabled]) {
    border-color: #ff6b00;
    background: #fff5ee;
    transform: translateX(3px);
}
.utsuk-opt-badge {
    background: #f0e8df;
    color: #e65100;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

/* Answer states */
.utsuk-opt.correct {
    border-color: #2e7d32;
    background: #f1f8e9;
}
.utsuk-opt.correct .utsuk-opt-badge {
    background: #2e7d32; color: #fff;
}
.utsuk-opt.wrong {
    border-color: #c62828;
    background: #ffebee;
}
.utsuk-opt.wrong .utsuk-opt-badge {
    background: #c62828; color: #fff;
}
.utsuk-opt.highlight-correct {
    border-color: #2e7d32;
    background: #f1f8e9;
    opacity: 0.7;
}

/* Explanation */
.utsuk-explanation {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #5d4037;
    line-height: 1.6;
}
.utsuk-exp-icon { font-size: 16px; }

/* Submit button */
.utsuk-quiz-actions { margin-top: 24px; text-align: center; }
.utsuk-submit-btn {
    background: linear-gradient(135deg, #ff6b00, #e65100);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 15px rgba(230,100,0,.35);
}
.utsuk-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,100,0,.45);
}
.utsuk-submit-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

/* Result box */
.utsuk-result-box {
    background: linear-gradient(135deg, #fff5ee, #fff);
    padding: 36px 32px;
    text-align: center;
    border-top: 1px solid #f0e8df;
}
.utsuk-score-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 6px solid #ff6b00;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 20px rgba(230,100,0,.2);
}
.utsuk-score-num { font-size: 40px; font-weight: 800; color: #ff6b00; line-height: 1; }
.utsuk-score-total { font-size: 14px; color: #888; }

.utsuk-grade-label { font-size: 24px; margin: 0 0 8px; color: #2c1a0a; }
.utsuk-score-pct { font-size: 16px; color: #666; margin: 0 0 16px; }
.utsuk-score-breakdown { font-size: 14px; color: #555; margin-bottom: 20px; }

.utsuk-retry-btn {
    background: #fff;
    color: #ff6b00;
    border: 2px solid #ff6b00;
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
}
.utsuk-retry-btn:hover { background: #ff6b00; color: #fff; }

/* Responsive */
@media (max-width: 600px) {
    .utsuk-quiz-header, .utsuk-quiz-body, .utsuk-result-box { padding: 20px 16px; }
    .utsuk-quiz-header h3 { font-size: 18px; }
    .utsuk-opt { font-size: 14px; }
}
