/* Text Visibility Fixes - 텍스트 가독성 개선 */

/* 기본 텍스트 가독성 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 헤딩 가독성 개선 */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* 본문 텍스트 개선 */
p {
    margin-bottom: 1rem;
    color: #555;
}

/* 링크 가독성 */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 사이드바 텍스트 가독성 */
.sidebar {
    color: #fff;
}

.sidebar a {
    color: #f8f9fa;
}

.sidebar a:hover {
    color: #fff;
}

/* 메뉴 텍스트 개선 */
.menu-item {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 버튼 텍스트 */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* 테이블 텍스트 */
.table th {
    font-weight: 600;
    color: #495057;
}

.table td {
    color: #6c757d;
}

/* 코드 및 프리포맷 텍스트 */
code, pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.5;
}

/* 작은 텍스트 */
small, .small {
    font-size: 0.875em;
    color: #6c757d;
}

/* 강조 텍스트 */
strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* 목록 텍스트 */
ul li, ol li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 인용 텍스트 */
blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

/* 대비 개선 */
.text-contrast {
    color: #212529;
    background: #fff;
}

/* 반응형 폰트 크기 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}