/* 아카데믹리딩 결과 화면 스타일 - 일상리딩1/2와 동일한 모던하고 간결한 디자인 */

/* 세트 섹션 */
.result-set-section {
    margin-bottom: 30px;
}

.result-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.result-section-title i {
    color: var(--primary-color);
}

/* 지문 패널 - 간격 축소 */
.academic-passage-panel-result {
    margin-bottom: 20px;
}

.result-passage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* 문장별 해석 - 간격 축소 */
.sentence-pair {
    margin-bottom: 8px;
    line-height: 1.7;
}

.sentence-original {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 2px;
}

.sentence-translation {
    font-size: 14px;
    color: #6b7280;
    padding-left: 16px;
    position: relative;
}

.sentence-translation::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

/* 인터랙티브 단어 */
.interactive-word {
    color: #3b82f6;
    border-bottom: 1px dotted #93c5fd;
    cursor: help;
    transition: all 0.15s;
    padding: 0 2px;
}

.interactive-word:hover {
    background: #dbeafe;
    border-bottom-color: #3b82f6;
}

/* 툴팁 */
.academic-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    color: #1f2937;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none;
}

.tooltip-translation {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.tooltip-explanation {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #e5e7eb;
}

/* 문제 카드 - 테두리 추가 + 패딩 */
.academic-result-item {
    margin-bottom: 20px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.academic-result-item.correct {
    border-color: #d1fae5;
    background: #f0fdf4;
}

.academic-result-item.incorrect {
    border-color: #fecaca;
    background: #fef2f2;
}

.academic-result-item.correct .academic-question-text strong {
    color: var(--success-color);
}

.academic-result-item.incorrect .academic-question-text strong {
    color: var(--danger-color);
}

.academic-result-icon {
    display: none; /* 아이콘 숨김 */
}

.academic-result-content {
    width: 100%;
}

/* 문제 텍스트 */
.academic-question-text {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.6;
}

.academic-question-text strong {
    font-weight: 700;
    margin-right: 8px;
}

/* 문제 해석 - 간결하게 */
.question-translation {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
}

.question-translation::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.question-translation i {
    display: none; /* 아이콘 숨김 */
}

/* 내 답변 영역 - 모던하게 재디자인 */
.academic-answer-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    margin-right: 20px;
}

.academic-answer-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.academic-answer-value {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-primary);
    border: 1.5px solid #e5e7eb;
}

.academic-answer-value.correct {
    background: #dcfce7;
    color: #059669;
    border-color: #10b981;
}

.academic-answer-value.incorrect {
    background: #fee2e2;
    color: #dc2626;
    border-color: #ef4444;
}

/* 보기 해설 컨테이너 */
.options-explanation-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* 펼치기/접기 버튼 - 버튼 스타일로 변경 */
.toggle-explanation-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toggle-explanation-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-explanation-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

/* 보기 해설 컨텐츠 */
.options-details {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 보기 아이템 - 간결하게 */
.option-detail {
    padding: 0;
    background: transparent;
    border: none;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.option-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.option-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.correct-badge {
    background: #dcfce7;
    color: #065f46;
}

.incorrect-badge {
    background: #fee2e2;
    color: #991b1b;
}

/* 보기 해석 - 간격 축소 */
.option-translation {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
    margin-left: 16px;
    margin-bottom: 2px;
}

/* 보기 설명 - 왼쪽 바 제거, 간격 축소 */
.option-explanation {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.option-explanation strong {
    font-size: 13px;
    font-weight: 600;
    margin-right: 2px;
}

.option-explanation.correct {
    background: #f0fdf4;
    color: #065f46;
}

.option-explanation.incorrect {
    background: #fef2f2;
    color: #991b1b;
}

/* 문제 헤더 */
.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.question-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-status i {
    font-size: 24px;
}

/* 지문 섹션 */
.passage-section {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.passage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.passage-content-bilingual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 문제 섹션 */
.questions-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 답변 요약 */
.answer-summary {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 결과 섹션 간격 */
.result-set-section:last-child {
    margin-bottom: 20px;
}

/* 반응형 */
@media (max-width: 768px) {
    .result-section-title {
        font-size: 20px;
    }
    
    .daily2-question-text {
        font-size: 16px;
    }
    
    .sentence-original {
        font-size: 15px;
    }
    
    .sentence-translation {
        font-size: 13px;
    }
    
    .question-translation {
        font-size: 14px;
    }
    
    .option-header {
        flex-wrap: wrap;
    }
    
    .academic-tooltip {
        max-width: 240px;
        font-size: 12px;
    }
    
    .academic-result-item {
        padding: 16px;
    }
    
    .passage-section {
        padding: 16px;
    }
}
