/* session3.css - Specific styles for the literature review session */

/* --- Recycled Styles from session2.css for Consistency --- */

/* Agenda & Section Dividers */
.agenda-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.agenda-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-top: 5px;
}

.agenda-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2em;
}

.agenda-text p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

hr.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin: 3rem 0;
}

hr.section-divider+h2 {
    margin-top: 0;
}

h2 span {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    margin-right: 10px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Workshop & Info Boxes */
.workshop-task-box {
    background-color: #e3f2fd;
    /* Light blue */
    border-left: 5px solid #2196F3;
    /* Blue */
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.workshop-task-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #0d47a1;
}

/* Collapsible & Resource Lists */
.collapsible-box {
    margin-bottom: 1rem;
}

.collapsible-trigger {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
    padding: 12px 18px;
    width: 100%;
    border: 1px solid #ddd;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible-trigger:hover {
    background-color: #e2e6ea;
}

.collapsible-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.collapsible-content ul {
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin: 0;
}

.collapsible-content li {
    margin-bottom: 0.75rem;
}

/* Homework Box */
.homework-box {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.homework-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.homework-header .icon {
    font-size: 2rem;
    line-height: 1;
}

.homework-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5em;
}

.homework-box p,
.homework-box ol {
    padding: 0 1.5rem;
}

.homework-box p:first-of-type {
    padding-top: 1.5rem;
}

.homework-box ol {
    padding-bottom: 1.5rem;
}

/* --- New Styles for Session 3 --- */

/* Research Gap Funnel */
.funnel-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    font-family: var(--font-family);
}

.funnel-stage {
    padding: 15px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.funnel-stage:hover {
    transform: scale(1.03);
}

#funnel-1 {
    width: 80%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#funnel-2 {
    width: 65%;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

#funnel-3 {
    width: 50%;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    font-weight: bold;
}

#funnel-4 {
    width: 90%;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.funnel-arrow {
    font-size: 2rem;
    color: #adb5bd;
    margin: 0.5rem 0;
}

/* --- Styles for Integrated Research Process Models --- */

/* Tabs */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 25px;
}

.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.tab-button:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* SVG Styles */
.process-model-svg {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    background-color: #ffffff;
    display: block;
    box-sizing: border-box;
}

/* General SVG element styles from forschungsprozess.html */
:root {
    --svg-text-size: 11px;
    --svg-text-size-small: 9.5px;
    --svg-text-size-label: 10px;
}

.process-box {
    fill: #ffffff;
    stroke: #adb5bd;
    stroke-width: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.process-box.multi-part {
    stroke-dasharray: 5, 3;
    stroke-width: 1;
}

.process-box.dashed-border {
    stroke-dasharray: 5, 3;
    stroke-width: 1;
    fill: none;
    pointer-events: none;
}

.process-box:hover {
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

.process-box.highlighted {
    stroke: var(--accent-color);
    stroke-width: 2.5;
    fill: #fffaf8;
}

.process-text {
    font-family: var(--font-family);
    font-size: var(--svg-text-size);
    fill: var(--text-color);
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.process-text tspan {
    pointer-events: none;
}

.process-text.small {
    font-size: var(--svg-text-size-small);
}

.process-text.label {
    font-size: var(--svg-text-size-label);
    font-style: italic;
    fill: #555;
}

.process-text.phase-label {
    font-size: var(--svg-text-size-label);
    font-weight: bold;
    fill: var(--primary-color);
    text-anchor: end;
}

.process-text.context-label {
    font-family: var(--font-family);
    font-size: var(--svg-text-size-label);
    font-style: italic;
    fill: #666;
    text-anchor: end;
}

.process-text.rotated {
    font-size: var(--svg-text-size-label);
    font-style: italic;
    fill: #666;
    text-anchor: middle;
}

.arrow {
    stroke: #526b7e;
    stroke-width: 1.3;
    fill: none;
}

.arrow-head {
    fill: #526b7e;
    stroke: none;
}

.phase-line {
    stroke: #adb5bd;
    stroke-width: 1;
    stroke-dasharray: 4, 2;
}

.context-separator {
    stroke: #ced4da;
    stroke-width: 1;
    stroke-dasharray: 6, 3;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: rgba(44, 62, 80, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    max-width: 280px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tooltip.visible {
    opacity: 1;
}

/* AI-Generated Help Sections */
.toggle-help-button {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.toggle-help-button:hover {
    background-color: #004488;
}

.specific-help-content {
    margin-top: 10px;
    padding: 15px;
    background-color: #fdfdff;
    border: 1px solid #e0e0ff;
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.5s;
}

.specific-help-content h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

/* === ENHANCED Homework Box for Session 3 === */

.homework-box .deliverable-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 1.5rem 0 1.5rem;
    /* Add spacing */
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
}

.deliverable-item .icon {
    font-size: 2.25rem;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 5px;
}

.deliverable-item h5 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.2em;
    color: var(--primary-color);
}

.deliverable-item p {
    margin: 0;
    padding: 0;
    /* Override default p padding inside box */
    font-size: 0.95em;
    color: #555;
}

.deliverable-item code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.homework-pro-tip {
    margin: 1.5rem;
    padding: 1.25rem;
    background-color: #e3f2fd;
    /* Light blue */
    border: 1px solid #cce5ff;
    border-radius: var(--border-radius);
    font-size: 0.9em;
}

.homework-pro-tip h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #0d47a1;
}

.homework-pro-tip p {
    margin-bottom: 0;
    padding: 0;
}

/* =================================================================== */
/* CSS for Theory Recommender Tool                                     */
/* =================================================================== */

#theory-recommender-tool {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h4 {
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Hide the actual radio button */
.quiz-options input[type="radio"] {
    display: none;
}

.option-card {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

/* Style for the selected card */
.quiz-options input[type="radio"]:checked+.option-card {
    border-color: var(--accent-color);
    background-color: #fffaf8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) scale(1.03);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.option-card strong {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.option-desc {
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
}

.quiz-controls {
    text-align: center;
    margin-top: 2rem;
}

.recommender-button {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background-color: var(--accent-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.recommender-button:hover {
    background-color: #d73a0a;
    transform: scale(1.05);
}

#recommendation-results {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd;
    transition: opacity 0.5s ease-in-out;
}

#recommendation-results.results-hidden {
    display: none;
    opacity: 0;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.theory-card {
    flex-basis: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.theory-card.secondary {
    border-left-color: #adb5bd;
    /* Gray for secondary recommendations */
}

.theory-card h5 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.theory-card .reason {
    font-size: 0.9em;
    margin-bottom: 1rem;
    color: #444;
}

.theory-card .read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.theory-card .read-more-btn:hover {
    background-color: #e2e6ea;
    color: var(--accent-color);
}

.results-footer {
    text-align: center;
    margin-top: 2rem;
}

.reset-button {
    background: none;
    border: 1px solid #888;
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
}

.score-bar-container {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.score-bar {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 10px 0 0 10px;
    transition: width 0.5s ease-in-out;
}

.theory-card.secondary .score-bar {
    background-color: #6c757d;
    /* Gray for secondary */
}

.score-bar-container span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* =================================================================== */
/* CSS for Inquiry Design Lab Tool                                     */
/* =================================================================== */

#inquiry-design-lab {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Path Selection --- */
.path-selection h4 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.path-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.path-buttons button {
    flex: 1;
    max-width: 400px;
    padding: 1.5rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
}

.path-buttons button:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.path-buttons button.selected {
    border-color: var(--accent-color);
    background-color: #fffaf8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.path-title {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.path-desc {
    display: block;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* --- Builder Containers --- */
.builder-container {
    display: none;
    /* Hidden by default */
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd;
    animation: fadeIn 0.5s ease-in-out;
}

.inquiry-builder-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.preview-box {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.preview-box strong {
    color: #0d47a1;
}

.live-preview {
    margin-top: 0.5rem;
    font-weight: bold;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    min-height: 1.6em;
    /* Prevent layout jump */
}

.quality-checklist {
    margin-top: 1.5rem;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
}

.quality-checklist strong {
    display: block;
    margin-bottom: 0.5rem;
}

.quality-checklist ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* === ENHANCED Inquiry Architecture Section === */

#s3-rq-hypothesis h2 span {
    background-color: #6f42c1; /* A different color for this key section */
}

.inquiry-paths-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.inquiry-path {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-top: 5px solid;
}

.inquiry-path-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.inquiry-path-header .icon {
    font-size: 2.5rem;
}

.inquiry-path-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.inquiry-path-header p {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
}

.quantitative-path {
    border-color: var(--primary-color);
}
.quantitative-path .inquiry-path-header h3 {
    color: var(--primary-color);
}

.qualitative-path {
    border-color: #fd7e14; /* Orange */
}
.qualitative-path .inquiry-path-header h3 {
    color: #fd7e14;
}

.inquiry-path h4 {
    margin-top: 1.5rem;
    color: var(--text-color);
}

.inquiry-path .example-box {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.inquiry-path .example-box blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 1em;
    font-style: normal;
}

.hypothesis-formats {
    margin-top: 1rem;
}

.hypothesis-formats .format-item {
    font-size: 0.9em;
    margin-bottom: 0.5rem;
}

.hypothesis-formats strong {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .inquiry-paths-container {
        grid-template-columns: 1fr;
    }
}