/* Q&A FlipCards Quiz Styles */

.qa-quiz-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Başlangıç Ekranı */
.qa-quiz-start {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qa-quiz-welcome h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #111827;
}

.qa-quiz-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.qa-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.qa-info-icon {
    font-size: 32px;
}

.qa-info-item strong {
    display: block;
    font-size: 18px;
    color: #111827;
    margin-bottom: 4px;
}

.qa-info-item p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.qa-category-select {
    margin: 30px 0;
}

.qa-category-select label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.qa-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
}

/* Butonlar */
.qa-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qa-btn-primary {
    background: #2563EB;
    color: #fff;
}

.qa-btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.qa-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.qa-btn-secondary:hover {
    background: #E5E7EB;
}

.qa-btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    margin-top: 20px;
}

.qa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Header */
.qa-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qa-progress-info {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.qa-current-question {
    color: #2563EB;
    font-size: 24px;
}

.qa-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #EF4444;
}

.qa-timer-icon {
    font-size: 24px;
}

.qa-score-display {
    font-size: 18px;
    font-weight: 600;
    color: #10B981;
}

.qa-current-score {
    font-size: 24px;
}

/* Progress Bar */
.qa-progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.qa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #10B981 100%);
    transition: width 0.5s ease;
}

/* Soru Kartı */
.qa-question-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qa-question-number {
    display: inline-block;
    padding: 6px 16px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.qa-question-text {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Seçenekler */
.qa-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.qa-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.qa-option:hover {
    border-color: #2563EB;
    background: #EFF6FF;
}

.qa-option input[type="radio"] {
    display: none;
}

.qa-option input[type="radio"]:checked + .qa-option-text {
    color: #2563EB;
}

.qa-option input[type="radio"]:checked ~ .qa-option-icon::before {
    content: '✓';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: #2563EB;
}

.qa-option.correct {
    border-color: #10B981;
    background: #ECFDF5;
}

.qa-option.correct .qa-option-icon::before {
    content: '✓';
    color: #10B981;
}

.qa-option.wrong {
    border-color: #EF4444;
    background: #FEF2F2;
}

.qa-option.wrong .qa-option-icon::before {
    content: '✗';
    color: #EF4444;
}

.qa-option-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #374151;
}

.qa-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 50%;
    font-weight: 600;
    color: #6B7280;
}

.qa-option input[type="radio"]:checked + .qa-option-text .qa-option-letter {
    background: #2563EB;
    color: #fff;
}

.qa-option-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

/* Soru Aksiyonları */
.qa-question-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.qa-question-actions .qa-btn {
    flex: 1;
}

/* Sonuç Ekranı */
.qa-results-card {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qa-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.qa-results-title {
    font-size: 36px;
    color: #111827;
    margin-bottom: 40px;
}

/* Skor Çemberi */
.qa-results-score {
    margin: 40px 0;
}

.qa-score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.qa-score-circle svg {
    transform: rotate(-90deg);
}

.qa-score-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 8;
}

.qa-score-progress {
    fill: none;
    stroke: #10B981;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.qa-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.qa-score-percentage {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #10B981;
}

.qa-score-label {
    display: block;
    font-size: 16px;
    color: #6B7280;
    margin-top: 4px;
}

/* İstatistikler */
.qa-results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.qa-stat {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.qa-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.qa-stat-correct {
    color: #10B981;
}

.qa-stat-wrong {
    color: #EF4444;
}

.qa-stat-score {
    color: #2563EB;
}

.qa-stat-label {
    display: block;
    font-size: 14px;
    color: #6B7280;
}

/* Sonuç Aksiyonları */
.qa-results-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.qa-results-actions .qa-btn {
    flex: 1;
}

/* Cevap İnceleme */
.qa-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.qa-review-header h2 {
    font-size: 28px;
    color: #111827;
}

.qa-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-review-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #E5E7EB;
}

.qa-review-item.correct {
    border-left-color: #10B981;
}

.qa-review-item.wrong {
    border-left-color: #EF4444;
}

.qa-review-question {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.qa-review-answer {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qa-review-answer.correct {
    background: #ECFDF5;
}

.qa-review-answer.wrong {
    background: #FEF2F2;
}

.qa-review-icon {
    font-size: 20px;
}

.qa-review-text {
    flex: 1;
}

.qa-review-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.qa-review-label.correct {
    color: #10B981;
}

.qa-review-label.wrong {
    color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .qa-quiz-container {
        padding: 0 16px;
    }
    
    .qa-quiz-start,
    .qa-question-card,
    .qa-results-card {
        padding: 24px;
    }
    
    .qa-quiz-welcome h2 {
        font-size: 24px;
    }
    
    .qa-quiz-info {
        grid-template-columns: 1fr;
    }
    
    .qa-quiz-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .qa-question-text {
        font-size: 18px;
    }
    
    .qa-question-actions {
        flex-direction: column;
    }
    
    .qa-results-stats {
        grid-template-columns: 1fr;
    }
    
    .qa-results-actions {
        flex-direction: column;
    }
    
    .qa-review-header {
        flex-direction: column;
        gap: 16px;
    }
}
