/* Interactive Quiz Builder Styles - Minimalist List Layout */
.iqb-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    padding: 20px;
    color: #333;
}

.iqb-quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.iqb-quiz-title {
    font-size: 2em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #222;
}

.iqb-quiz-subtitle {
    font-size: 1em;
    color: #666;
    margin: 0;
}

.iqb-question-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 80px; /* Large margin for ad placement */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.iqb-question-container:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.iqb-question-header {
    margin-bottom: 25px;
}

.iqb-question-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.iqb-question-text {
    font-size: 1.25em;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.iqb-options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.iqb-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.iqb-option:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.iqb-option.selected {
    background: #5c7cfa;
    border-color: #5c7cfa;
    color: white;
}

.iqb-option.selected .iqb-option-letter {
    background: white;
    color: #5c7cfa;
}

.iqb-option.correct {
    background: #51cf66;
    border-color: #51cf66;
    color: white;
}

.iqb-option.correct .iqb-option-letter {
    background: white;
    color: #51cf66;
}

.iqb-option.incorrect {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.iqb-option.incorrect .iqb-option-letter {
    background: white;
    color: #ff6b6b;
}

.iqb-option-letter {
    background: #5c7cfa;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 0.95em;
}

.iqb-option-text {
    font-size: 1.05em;
    line-height: 1.4;
    margin: 0;
}

.iqb-progress-container {
    display: none; /* Hide progress bar for list layout */
}

.iqb-submit-container {
    text-align: center;
    margin: 60px 0;
}

.iqb-submit-button {
    background: #5c7cfa;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 124, 250, 0.3);
}

.iqb-submit-button:hover {
    background: #4c6ef5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 124, 250, 0.4);
}

.iqb-submit-button:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.iqb-results-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.iqb-score-display {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.iqb-score-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #666;
}

.iqb-performance-message {
    font-size: 1.1em;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.iqb-performance-excellent {
    background: #d3f9d8;
    color: #2b8a3e;
}

.iqb-performance-good {
    background: #fff3cd;
    color: #e67700;
}

.iqb-performance-poor {
    background: #ffe0e0;
    color: #c92a2a;
}

.iqb-explanation-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-left: 4px solid #5c7cfa;
}

.iqb-explanation-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.iqb-explanation-number {
    background: #51cf66;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 0.9em;
}

.iqb-explanation-number.incorrect {
    background: #ff6b6b;
}

.iqb-explanation-question {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

.iqb-explanation-answers {
    margin-bottom: 15px;
    padding-left: 45px;
}

.iqb-explanation-answer {
    margin: 8px 0;
    font-size: 0.95em;
}

.iqb-explanation-answer.correct {
    color: #2b8a3e;
    font-weight: 600;
}

.iqb-explanation-answer.incorrect {
    color: #c92a2a;
    font-weight: 600;
}

.iqb-explanation-text {
    background: white;
    border-radius: 6px;
    padding: 15px;
    font-size: 0.95em;
    line-height: 1.6;
    margin-left: 45px;
    color: #495057;
}

.iqb-restart-button {
    background: #5c7cfa;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.iqb-restart-button:hover {
    background: #4c6ef5;
    transform: translateY(-2px);
}

/* Ad space styling - subtle divider */
.iqb-ad-space {
    height: 80px;
    margin: 40px 0;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iqb-quiz-container {
        padding: 15px;
    }
    
    .iqb-question-container {
        padding: 25px;
        margin-bottom: 60px;
    }
    
    .iqb-quiz-title {
        font-size: 1.6em;
    }
    
    .iqb-question-number {
        font-size: 1.5em;
    }
    
    .iqb-question-text {
        font-size: 1.15em;
    }
    
    .iqb-option {
        padding: 14px 16px;
    }
    
    .iqb-score-display {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .iqb-quiz-container {
        padding: 10px;
    }
    
    .iqb-question-container {
        padding: 20px;
        margin-bottom: 50px;
    }
    
    .iqb-option-text {
        font-size: 0.95em;
    }
    
    .iqb-explanation-text {
        margin-left: 0;
    }
    
    .iqb-explanation-answers {
        padding-left: 0;
    }
}