/* AYS MCQ Reader - Style */

/* ── Toggle Button ── */
.ays-mcq-toggle-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    margin-bottom: 12px;
    transition: background 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.ays-mcq-toggle-btn:hover {
    background: linear-gradient(135deg, #f4511e, #e64a19);
    transform: translateY(-1px);
}

.ays-mcq-toggle-btn .ays-mcq-toggle-icon {
    font-size: 20px;
}

.ays-mcq-toggle-btn .ays-mcq-arrow {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.85;
}

/* ── Container ── */
.ays-mcq-container {
    margin-bottom: 30px;
}

/* ── MCQ Box ── */
.ays-mcq-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.ays-mcq-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

/* ── Question ── */
.ays-mcq-question {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 14px 0;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

/* ── Category Tag ── */
.ays-mcq-tag {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Options ── */
.ays-mcq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

.ays-mcq-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    transition: background 0.2s, border-color 0.2s;
}

.ays-mcq-option .ays-mcq-letter {
    font-weight: 700;
    color: #666;
    min-width: 18px;
    flex-shrink: 0;
}

/* ── Correct Option ── */
.ays-mcq-option.correct {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
    font-weight: 600;
}

.ays-mcq-option.correct .ays-mcq-letter {
    color: #2e7d32;
}

.ays-mcq-check {
    margin-left: auto;
    color: #4caf50;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Explanation ── */
.ays-mcq-explanation {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.ays-mcq-explanation summary {
    padding: 10px 14px;
    background: #fff8e1;
    color: #f57f17;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background 0.2s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ays-mcq-explanation summary::-webkit-details-marker { display: none; }

.ays-mcq-explanation[open] summary {
    background: #fff3cd;
    border-radius: 8px 8px 0 0;
}

.ays-mcq-exp-content {
    padding: 12px 14px;
    background: #fffde7;
    font-size: 13.5px;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid #ffe082;
}

/* ── Dark Mode Support ── */
@media (prefers-color-scheme: dark) {
    .ays-mcq-box {
        background: #1e1e2e;
        border-color: #333;
    }
    .ays-mcq-question {
        color: #e0e0e0;
    }
    .ays-mcq-option {
        background: #2a2a3e;
        border-color: #444;
        color: #ccc;
    }
    .ays-mcq-option.correct {
        background: #1b3a2a;
        border-color: #4caf50;
        color: #a5d6a7;
    }
    .ays-mcq-exp-content {
        background: #2a2510;
        color: #ddd;
    }
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .ays-mcq-toggle-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    .ays-mcq-box {
        padding: 14px 14px;
    }
    .ays-mcq-question {
        font-size: 14px;
    }
    .ays-mcq-option {
        font-size: 13px;
        padding: 9px 12px;
    }
}
