/* Almanca Test Generator - Frontend Styles */

/* Test Container */
.atg-test-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Test Meta */
.test-meta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.test-meta span {
    font-size: 14px;
}

.test-description {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Okuma Parçası */
.atg-reading-passage {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.atg-reading-passage h3 {
    margin: 0 0 15px 0;
    color: #92400e;
}

.passage-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1f2937;
}

.passage-translation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #f59e0b;
    color: #78716c;
    font-size: 14px;
}

/* Soru Kartları */
.atg-question {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.atg-question:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.atg-question .question-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
}

.atg-question .question-number {
    font-size: 14px;
}

.atg-question .question-text {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

.atg-question .question-translation {
    padding: 15px 20px;
    background: #f9fafb;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* Seçenekler */
.atg-question .question-options {
    padding: 15px 20px;
}

.atg-question .option-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin: 10px 0;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.atg-question .option-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.atg-question .option-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.atg-question .option-item.selected {
    background: #dbeafe;
    border-color: #3b82f6;
}

.atg-question .option-item.correct {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
}

.atg-question .option-item.incorrect {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

/* Cevap Alanı */
.atg-question .question-answer {
    padding: 20px;
    background: #f0fdf4;
    border-top: 3px solid #22c55e;
}

.atg-question .correct-answer {
    font-weight: 700;
    color: #166534;
    font-size: 15px;
    margin-bottom: 12px;
}

.atg-question .answer-explanation {
    font-size: 14px;
    color: #166534;
    line-height: 1.6;
    margin-top: 10px;
}

.atg-question .answer-explanation-de {
    font-size: 13px;
    color: #15803d;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #86efac;
}

/* Test Butonları */
.test-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.test-actions button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atg-check-answers {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
}

.atg-check-answers:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.atg-show-answers {
    background: #f59e0b;
    color: #fff;
}

.atg-show-answers:hover {
    background: #d97706;
}

.atg-reset-test {
    background: #6b7280;
    color: #fff;
}

.atg-reset-test:hover {
    background: #4b5563;
}

/* Sonuç Alanı */
.test-results {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.test-results h3 {
    margin: 0 0 15px 0;
    color: #166534;
    font-size: 20px;
}

.results-summary {
    font-size: 18px;
    color: #166534;
}

.results-summary .score {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin: 15px 0;
}

.results-summary .score.excellent {
    color: #22c55e;
}

.results-summary .score.good {
    color: #84cc16;
}

.results-summary .score.average {
    color: #f59e0b;
}

.results-summary .score.poor {
    color: #ef4444;
}

/* Test Özeti */
.test-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.test-summary h3 {
    color: #1e40af;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeafe;
}

.topic-explanation {
    margin-bottom: 20px;
}

.topic-explanation p {
    line-height: 1.7;
    color: #374151;
}

.study-tips h3,
.common-mistakes h3 {
    font-size: 16px;
    margin: 20px 0 10px 0;
}

.study-tips ul,
.common-mistakes ul {
    margin: 0;
    padding-left: 20px;
}

.study-tips li,
.common-mistakes li {
    margin: 8px 0;
    line-height: 1.5;
    color: #4b5563;
}

.study-tips {
    background: #eff6ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.common-mistakes {
    background: #fef3c7;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .test-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .test-actions {
        flex-direction: column;
    }
    
    .test-actions button {
        width: 100%;
    }
    
    .atg-question .option-item {
        padding: 12px 14px;
        font-size: 14px;
    }
}
