/**
 * MCQ Enhancements CSS for ExamHub Theme
 */

/* Archive MCQ Specific Styles */
.archive-mcq-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.archive-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.archive-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #1a1a1a;
}

.archive-title i {
    color: #007cba;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
}

/* MCQ Archive Filters */
.mcq-archive-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-section {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #007cba;
}

.archive-stats {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* Interactive MCQ Item Styles - Single Column */
.mcq-archive-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
}

.mcq-archive-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mcq-archive-item.premium-locked {
    border: 2px solid #f093fb;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
}

.mcq-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.mcq-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mcq-number {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.mcq-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mcq-difficulty.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.mcq-difficulty.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.mcq-difficulty.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

.mcq-subject,
.mcq-topic,
.mcq-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.mcq-header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.btn-icon.bookmarked {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* MCQ Question Section */
.mcq-question-section {
    padding: 1.5rem;
}

.mcq-question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.mcq-question-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Interactive Section */
.mcq-interactive-section {
    padding: 0 1.5rem 1.5rem;
}

.mcq-options-wrapper {
    margin-bottom: 1.5rem;
}

.mcq-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mcq-option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mcq-option-item:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.mcq-option-item.correct {
    border-color: #28a745;
    background: #d4edda;
}

.mcq-option-item.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.mcq-option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.mcq-option-input:checked + .mcq-option-label .option-marker {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.mcq-option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    cursor: pointer;
}

.option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    font-weight: 600;
    color: #666;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

.option-feedback {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.mcq-option-item.correct .option-feedback {
    background: #28a745;
    color: white;
}

.mcq-option-item.incorrect .option-feedback {
    background: #dc3545;
    color: white;
}

.mcq-option-item.correct .option-marker {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.mcq-option-item.incorrect .option-marker {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* MCQ Result Section */
.mcq-result-section {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.mcq-result-section.result-correct {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.mcq-result-section.result-incorrect {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.mcq-result-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-icon {
    font-size: 1.5rem;
}

.mcq-result-section.result-correct .result-icon {
    color: #28a745;
}

.mcq-result-section.result-incorrect .result-icon {
    color: #dc3545;
}

.result-message {
    font-weight: 600;
    font-size: 1.1rem;
}

.mcq-result-section.result-correct .result-message {
    color: #155724;
}

.mcq-result-section.result-incorrect .result-message {
    color: #721c24;
}

/* MCQ Explanation */
.mcq-explanation-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.btn-toggle-explanation {
    background: none;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    width: 100%;
    justify-content: space-between;
}

.btn-toggle-explanation:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.mcq-explanation-content {
    padding: 1rem 0;
    line-height: 1.6;
    color: #555;
}

.explanation-text {
    color: #444;
}

/* Action Buttons */
.mcq-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    text-decoration: none;
    color: white;
}

/* Premium Locked State */
.mcq-premium-locked {
    padding: 1.5rem;
    text-align: center;
}

.locked-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-radius: 12px;
    border: 2px dashed #f093fb;
}

.locked-message i {
    font-size: 3rem;
    color: #f093fb;
}

.locked-message h4 {
    margin-bottom: 0.5rem;
    color: #721c24;
}

.locked-message p {
    color: #666;
    margin-bottom: 1rem;
    max-width: 400px;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
    text-decoration: none;
    color: white;
}

/* Error Message */
.mcq-error-message {
    padding: 1.5rem;
    text-align: center;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mcq-archive-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .mcq-meta-info {
        order: 2;
    }

    .mcq-header-actions {
        order: 1;
        align-self: flex-end;
    }

    .mcq-question-section,
    .mcq-interactive-section {
        padding: 1rem;
    }

    .mcq-option-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .option-marker {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .mcq-action-buttons {
        flex-direction: column;
    }

    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: auto;
    }

    .archive-stats {
        text-align: left;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .mcq-archive-item {
        border-radius: 8px;
        margin: 0 0 1.5rem 0;
    }

    .mcq-question-title {
        font-size: 1.1rem;
    }

    .mcq-meta-info {
        gap: 0.5rem;
    }

    .mcq-number,
    .mcq-subject,
    .mcq-topic {
        font-size: 0.8rem;
    }

    .mcq-option-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .option-marker {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .option-text {
        font-size: 0.9rem;
    }
}
