/* OCD "Quiz der Woche" widget — styles for [ig_engage_quiz_week].
   The plugin ships the ig-qw-* markup WITHOUT any CSS (the old quiz widget's
   styles live in ocd-quiz.css but target ocd-quiz-* classes). Design language
   matches the other engagement widgets: navy card, gold title, translucent
   option buttons. Enqueued site-wide via ig-includes/ig-engage-quiz-week.php. */

.ig-engage-quiz-week {
    margin: 20px 0;
    padding: 24px;
    background: linear-gradient(135deg, #26367a, #1c285a);
    border-radius: 18px;
    color: #f5f7fb;
    font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.ig-engage-quiz-week * { box-sizing: border-box; }

/* --- Header: title + progress counter --- */
.ig-engage-quiz-week .ig-qw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ig-engage-quiz-week .ig-qw-title {
    font-size: 20px;
    font-weight: 700;
    color: #fdb724;
}
.ig-engage-quiz-week .ig-qw-title::before {
    content: '🧠 ';
}
.ig-engage-quiz-week .ig-qw-progress {
    font-size: 12px;
    font-weight: 700;
    color: #a8b4c2;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 10px;
}

/* --- Question --- */
.ig-engage-quiz-week .ig-qw-question {
    font-size: 17px;
    font-weight: 700;
    color: #eee;
    line-height: 1.4;
    margin: 0 0 12px;
}

/* --- Options --- */
.ig-engage-quiz-week .ig-qw-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ig-engage-quiz-week .ig-qw-option {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #eee;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.ig-engage-quiz-week .ig-qw-option:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ig-engage-quiz-week .ig-qw-option:focus-visible {
    outline: 2px solid rgba(253, 183, 36, 0.6);
    outline-offset: 1px;
}

/* --- State messages --- */
.ig-engage-quiz-week .ig-qw-none {
    font-size: 13px;
    color: #a8b4c2;
    margin: 0;
    padding: 4px 0;
}
.ig-engage-quiz-week .ig-qw-locked {
    font-size: 14px;
    font-weight: 600;
    color: #fe7146;
    background: rgba(254, 113, 70, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
}
.ig-engage-quiz-week .ig-qw-completed {
    font-size: 14px;
    font-weight: 600;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
}

/* --- Feedback line (after answering) --- */
.ig-engage-quiz-week .ig-qw-feedback {
    font-size: 13px;
    font-weight: 700;
    color: #fdb724;
}
.ig-engage-quiz-week .ig-qw-feedback:not(:empty) {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(253, 183, 36, 0.1);
    border-radius: 8px;
}

@media (max-width: 767px) {
    .ig-engage-quiz-week { padding: 14px; }
}
