/**
 * Quiz Riddle Enhancements - Results Display Styles
 *
 * Styles for enhanced results display showing per-riddle metrics.
 *
 * @package Quiz_Riddle_Enhancements
 */

/* Detailed Results Container */
.qre-detailed-results {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.qre-results-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Individual Question Result */
.qre-question-result {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qre-question-result:last-of-type {
    margin-bottom: 0;
}

.qre-question-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #0073aa;
}

/* Timing Information */
.qre-question-times {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.qre-time-item {
    flex: 1;
}

.qre-time-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.qre-time-value {
    font-size: 16px;
    color: #0073aa;
    font-weight: bold;
}

/* Hints Section */
.qre-hints-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #fffbf0;
    border-left: 4px solid #f0ad4e;
    border-radius: 4px;
}

.qre-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.qre-hints-count {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.qre-hints-indexes {
    font-size: 13px;
    color: #777;
    font-style: italic;
}

.qre-no-hints {
    margin: 0;
    color: #5cb85c;
    font-weight: 600;
    font-size: 14px;
}

/* Answer Attempts */
.qre-attempts-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qre-attempts-list {
    margin: 10px 0 0 0;
    padding-left: 25px;
    list-style: decimal;
}

.qre-attempt-item {
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 14px;
}

.qre-attempt-item.qre-correct {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.qre-attempt-item.qre-incorrect {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.qre-attempt-answer {
    font-weight: 600;
    color: #333;
}

.qre-attempt-status {
    font-size: 13px;
    margin-left: 8px;
}

.qre-attempt-item.qre-correct .qre-attempt-status {
    color: #28a745;
    font-weight: bold;
}

.qre-attempt-item.qre-incorrect .qre-attempt-status {
    color: #dc3545;
    font-weight: bold;
}

/* Points Breakdown */
.qre-points-section {
    margin-bottom: 0;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 4px;
}

.qre-points-breakdown {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qre-points-earned {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.qre-points-deducted {
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
}

.qre-points-net {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #ddd;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Summary Stats */
.qre-summary-stats {
    margin-top: 30px;
    padding: 20px;
    background: #e7f5ff;
    border: 2px solid #0073aa;
    border-radius: 6px;
}

.qre-summary-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #0073aa;
}

.qre-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qre-summary-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid rgba(0,115,170,0.2);
}

.qre-summary-list li:last-child {
    border-bottom: none;
}

.qre-summary-list strong {
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qre-detailed-results {
        padding: 15px;
    }

    .qre-question-times {
        flex-direction: column;
        gap: 10px;
    }

    .qre-results-title {
        font-size: 20px;
    }

    .qre-question-title {
        font-size: 16px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .qre-detailed-results {
        background: #2c2c2c;
        border-color: #444;
        color: #ddd;
    }

    .qre-question-result {
        background: #333;
        border-color: #555;
        color: #ddd;
    }

    .qre-results-title,
    .qre-question-title,
    .qre-summary-title {
        color: #66b3ff;
    }

    .qre-time-label,
    .qre-hints-count,
    .qre-section-title {
        color: #ccc;
    }

    .qre-question-times {
        background: #1a1a2e;
    }

    .qre-hints-section {
        background: #2c2416;
    }

    .qre-summary-stats {
        background: #1a1a2e;
        border-color: #66b3ff;
    }

    .qre-points-section {
        background: #3a3a3a;
    }
}
