/* Quiz Ortak Stilleri */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9e9e9;
}

.quiz-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.quiz-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.quiz-info-item {
    text-align: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.quiz-info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.quiz-info-value {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.quiz-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2baae1, #1e88e5);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-container {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2baae1;
}

.question-number {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    border-color: #2baae1;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 170, 225, 0.2);
}

.option-item.selected {
    border-color: #2baae1;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(43, 170, 225, 0.1);
}

.option-item.correct {
    border-color: #28a745;
    background: #d4edda;
}

.option-item.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.option-radio {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #2baae1;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.4;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9e9e9;
}

.quiz-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, #2baae1 0%, #1e88e5 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 170, 225, 0.3);
}

.quiz-btn-primary:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 170, 225, 0.4);
    color: #fff;
    text-decoration: none;
}

.quiz-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.quiz-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.quiz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.quiz-results {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-top: 30px;
}

.quiz-score {
    font-size: 48px;
    font-weight: 700;
    color: #2baae1;
    margin-bottom: 10px;
}

.quiz-score-label {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

.quiz-performance {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quiz-performance.excellent {
    color: #28a745;
}

.quiz-performance.good {
    color: #17a2b8;
}

.quiz-performance.average {
    color: #ffc107;
}

.quiz-performance.poor {
    color: #dc3545;
}

.quiz-message {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 10px;
        padding: 15px;
    }
    
    .quiz-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .quiz-info-item {
        padding: 8px 15px;
    }
    
    .question-container {
        padding: 20px 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .option-item {
        padding: 12px 15px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .quiz-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .quiz-actions .quiz-btn {
        width: 100%;
    }
}

/* Loading Animation */
.quiz-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.quiz-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #2baae1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.quiz-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}