/* Quiz Page Styles */

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.quiz-title {
    color: #1a237e;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quiz-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    color: #1a237e;
}

/* Question Card */
.question-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.question-number {
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Answer Options */
.answer-options {
    display: grid;
    gap: 1rem;
}

.answer-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.answer-option:hover {
    border-color: #1a237e;
    background: #f5f5f5;
}

.answer-option.selected {
    border-color: #1a237e;
    background: #e8eaf6;
}

.answer-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.answer-option.incorrect {
    border-color: #f44336;
    background: #ffebee;
}

/* Timer */
.quiz-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-icon {
    color: #f44336;
}

.timer-text {
    font-weight: 600;
    color: #333;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a237e, #283593);
    transition: width 0.3s ease;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    background: #283593;
    transform: translateY(-2px);
}

.nav-button:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    text-align: center;
    padding: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid #1a237e;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .quiz-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .quiz-timer {
        position: static;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.timer-warning {
    animation: pulse 1s infinite;
    color: #f44336;
}
