/* 읽기 레슨 본문 공용 스타일.
   기존 글마다 <style>로 반복 삽입되던 ~7.5KB를 한 파일로 통합(2026-09-14).
   본문의 .korean-lesson / .lesson-header / .vocab-table 등에 적용된다. */
.korean-lesson {
    font-family: 'Source Serif 4', 'Noto Sans KR', Georgia, serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(180deg, #fefefe 0%, #f8f6f3 100%);
    color: #2d2a26;
    line-height: 1.8;
}

/* 헤더 스타일 */
.lesson-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.lesson-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25%, 25%); }
}

.lesson-header h1,
.lesson-header .lesson-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    position: relative;
    letter-spacing: -0.02em;
}

.lesson-header .subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lesson-header .date-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* 섹션 제목 */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e8c547;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e8c547 0%, #d4a84b 100%);
    color: #1a1a2e;
    border-radius: 50%;
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 600;
}

/* 인트로 섹션 */
.intro-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #e8c547;
    font-size: 1.05rem;
    color: #4a4a4a;
}

/* 어휘 테이블 */
.vocab-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.vocab-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.95rem;
}

.vocab-table thead {
    background: #1a1a2e !important;
}

.vocab-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    background: #1a1a2e !important;
    color: #ffffff !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vocab-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.vocab-table tbody tr {
    transition: background 0.2s ease;
}

.vocab-table tbody tr:hover {
    background: #faf9f7;
}

.vocab-table tbody tr:last-child td {
    border-bottom: none;
}

.vocab-table .korean-word {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a2e;
}

.vocab-table .romanization {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
}

.vocab-table .meaning {
    color: #2d2a26;
}

.vocab-table .example {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.vocab-table .example .ko {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.vocab-table .example .en {
    display: block;
    font-style: italic;
    color: #888;
}

/* 본문 텍스트 (한영 병렬) */
.reading-section {
    margin: 2rem 0;
}

.text-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.text-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.text-block .korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a2e;
    line-height: 1.9;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #ddd;
}

.text-block .english {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    color: #666;
    font-style: italic;
    line-height: 1.7;
}

/* 독해 문제 */
.questions-section {
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ede8 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.questions-section ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: question-counter;
}

.questions-section li {
    counter-increment: question-counter;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    padding-left: 4rem;
    transition: transform 0.2s ease;
}

.questions-section li:hover {
    transform: translateX(4px);
}

.questions-section li::before {
    content: 'Q' counter(question-counter);
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e8c547 0%, #d4a84b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Serif 4', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
}

.questions-section li:last-child {
    margin-bottom: 0;
}

/* 문화 노트 */
.cultural-notes {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.cultural-notes::before {
    content: '文化';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: 0.05;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
}

.cultural-notes p {
    position: relative;
    z-index: 1;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
}

/* 소스 정보 */
.source-info {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #888;
}

.source-info a {
    color: #e8c547;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-info a:hover {
    color: #d4a84b;
    text-decoration: underline;
}

/* 반응형 */
@media (max-width: 640px) {
    .korean-lesson {
        padding: 1rem;
    }
    
    .lesson-header {
        padding: 2rem 1.5rem;
    }
    
    .lesson-header h1,
.lesson-header .lesson-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .text-block {
        padding: 1.25rem 1.5rem;
    }
    
    .text-block .korean {
        font-size: 1.1rem;
    }
    
    .vocab-table th,
    .vocab-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .questions-section li {
        padding-left: 3.5rem;
    }
}
