/**
 * NAPLAN Quiz Styles
 * Upload this to: /wp-content/themes/twentytwentyfive/css/naplan-quiz.css
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Container */
.naplan-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #EBF4FF 0%, #E0E7FF 100%);
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .naplan-container {
        padding: 3rem 2rem;
    }
}

/* Quiz Header */
.quiz-header {
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.quiz-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .quiz-header h1 {
        font-size: 2.5rem;
    }
}

.question-counter {
    font-size: 1.125rem;
    color: #4B5563;
}

/* Progress Bar */
.progress-bar-container {
    max-width: 48rem;
    margin: 0 auto 2rem;
    background: #E5E7EB;
    height: 1rem;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
    transition: width 0.5s ease-out;
}

/* Card */
.naplan-card {
    max-width: 48rem;
    margin: 0 auto;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .naplan-card {
        padding: 2rem;
    }
}

/* Question Badge */
.question-badge {
    display: inline-block;
    background: #E0E7FF;
    color: #3730A3;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Question Text */
.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .question-text {
        font-size: 1.5rem;
    }
}

/* Options List */
.options-list {
    margin-bottom: 2rem;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: 4px solid #E5E7EB;
    background: #F9FAFB;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .option-btn {
        padding: 1.5rem;
    }
}

.option-btn:hover:not(:disabled) {
    border-color: #C7D2FE;
    transform: scale(1.02);
}

.option-btn:disabled {
    cursor: default;
}

.option-btn.selected {
    background: #E0E7FF;
    border-color: #6366F1;
    color: #3730A3;
}

.option-btn.correct {
    background: #D1FAE5;
    border-color: #10B981;
    color: #065F46;
}

.option-btn.incorrect {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-letter {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    background: #D1D5DB;
    color: #4B5563;
}

.option-btn.selected .option-letter {
    background: #6366F1;
    color: white;
}

.option-btn.correct .option-letter {
    background: #10B981;
    color: white;
}

.option-btn.incorrect .option-letter {
    background: #EF4444;
    color: white;
}

.option-text {
    flex: 1;
}

.check {
    font-size: 1.875rem;
}

/* Feedback Box */
.feedback-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
}

.feedback-box.correct {
    background: #D1FAE5;
    border-color: #10B981;
}

.feedback-box.info {
    background: #DBEAFE;
    border-color: #3B82F6;
}

.feedback-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feedback-text {
    color: #374151;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: #6366F1;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #4F46E5;
    transform: scale(1.05);
}

/* Results Page */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .results-header h1 {
        font-size: 2.5rem;
    }
}

.big-score {
    font-size: 3.75rem;
    font-weight: 700;
    color: #6366F1;
    margin-bottom: 0.5rem;
}

.percentage {
    font-size: 1.5rem;
    color: #4B5563;
}

/* Category Scores */
.category-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.category-card.numeracy {
    background: #DBEAFE;
}

.category-card.language {
    background: #F3E8FF;
}

.category-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.category-score {
    font-size: 1.875rem;
    font-weight: 700;
}

.category-card.numeracy .category-score {
    color: #2563EB;
}

.category-card.language .category-score {
    color: #9333EA;
}

/* Review Section */
.review-section {
    margin-bottom: 2rem;
}

.review-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid;
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.review-item.correct {
    background: #D1FAE5;
    border-color: #10B981;
}

.review-item.incorrect {
    background: #FEE2E2;
    border-color: #EF4444;
}

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

.review-content {
    flex: 1;
}

.review-title {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.review-question {
    font-size: 0.875rem;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.review-explanation {
    font-size: 0.875rem;
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
}

.correct-label {
    font-weight: 600;
    color: #059669;
}

.explanation-text {
    margin-top: 0.5rem;
    color: #4B5563;
}

/* Progress Section */
.progress-section {
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #EEF2FF 0%, #F3E8FF 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.progress-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.progress-date {
    font-size: 0.875rem;
    color: #4B5563;
}

.progress-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-score {
    font-size: 0.875rem;
}

.score-numbers {
    font-weight: 600;
}

.score-percentage {
    color: #6B7280;
    margin-left: 0.5rem;
}

.progress-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-badge.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.progress-badge.good {
    background: #FEF3C7;
    color: #92400E;
}

.progress-badge.practice {
    background: #FED7AA;
    color: #9A3412;
}
