/* Styles for interactive question blocks */

.escobar-question-block {
    background-color: var(--jp-layout-color1, #f8f9fa);
    border: 1px solid var(--jp-border-color1, #ddd);
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
}

.escobar-question {
    font-size: 1em;
    margin-bottom: 8px;
    color: var(--jp-content-font-color0, #333);
    line-height: 1.4;
}

.escobar-question-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.escobar-question-option {
    background-color: var(--jp-layout-color2, #eee);
    border: 1px solid var(--jp-border-color2, #ccc);
    border-radius: 3px;
    padding: 6px 10px;
    text-align: left;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--jp-content-font-color1, #444);
    font-family: var(--jp-content-font-family, sans-serif);
    width: 100%;
    margin-bottom: 4px;
    display: block;
}

.escobar-question-option:hover {
    background-color: var(--jp-layout-color3, #e0e0e0);
    border-color: var(--jp-brand-color1, #2196f3);
}

.escobar-question-option.selected {
    background-color: var(--jp-brand-color1, #2196f3);
    color: white;
    border-color: var(--jp-brand-color1, #2196f3);
}

/* Dark theme adjustments */
body[data-jp-theme-light="false"] .escobar-question-block {
    background-color: var(--jp-layout-color1, #252526);
    border-color: var(--jp-border-color1, #444);
}

body[data-jp-theme-light="false"] .escobar-question {
    color: var(--jp-content-font-color0, #eee);
}

body[data-jp-theme-light="false"] .escobar-question-option {
    background-color: var(--jp-layout-color2, #333);
    border-color: var(--jp-border-color2, #555);
    color: var(--jp-content-font-color1, #ddd);
}

body[data-jp-theme-light="false"] .escobar-question-option:hover {
    background-color: var(--jp-layout-color3, #444);
    border-color: var(--jp-brand-color1, #2196f3);
}

body[data-jp-theme-light="false"] .escobar-question-option.selected {
    background-color: var(--jp-brand-color1, #2196f3);
    color: white;
    border-color: var(--jp-brand-color1, #2196f3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .escobar-question-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .escobar-question-option {
        flex: 1 0 calc(50% - 4px);
        min-width: 120px;
        margin-bottom: 0;
    }
}

/* Compact mode for very small screens */
@media (max-width: 480px) {
    .escobar-question-block {
        padding: 6px;
        margin: 6px 0;
    }

    .escobar-question {
        margin-bottom: 6px;
        font-size: 0.95em;
    }

    .escobar-question-option {
        padding: 4px 8px;
        font-size: 0.9em;
        margin-bottom: 3px;
    }
}