/* 기본 스타일 및 레이아웃 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.7;
    color: #333;
    margin: 0;
    background-color: #fcfcfc;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 메인 페이지: 요약 및 목록 */
#summary-section h2, #article-list-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.summary-text {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: #444;
    line-height: 1.8;
}

/* 요약본 내 기사 제목 링크 스타일 */
.summary-text a {
    transition: color 0.2s, background-color 0.2s;
    padding: 0 2px;
    border-radius: 3px;
}

.summary-text a:hover {
    background-color: #ebf5ff;
    color: #2980b9 !important;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.article-list li:hover {
    transform: translateX(5px);
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-list li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    display: block;
    padding: 15px 20px;
    font-size: 1.5rem;
}

/* 상세 페이지: 기사 내용 */
.article-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-out;
}

.article-title {
    font-size: 2.0rem;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* 원문/번역본 토글 스위치 */
.toggle-container {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    margin-bottom: 25px;
    width: fit-content;
    border: 1px solid #ddd;
}

.toggle-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
    color: #777;
}

.toggle-btn:hover {
    color: #333;
}

.toggle-btn.active {
    background: #fff;
    color: #3498db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 텍스트 본문 영역 */
.lang-content {
    margin-bottom: 20px;
}

.text-body {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #333;
}

/* 네비게이션 버튼 */
.nav-controls {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.back-button:hover {
    background: #e9ecef;
    border-color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .toggle-container {
        width: 100%;
    }
    .toggle-btn {
        flex: 1;
        text-align: center;
    }
}