﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* ==========================================================================
   Base Layout & Global Typography
   ========================================================================== */

html, body {
    margin: 0;
    height: 100%;
    font-size: 14px;
    line-height: 1.55; /* 태국어·베트남어 성조 기호 및 한자 겹침 방지 */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Base Font Stack (기본: 영어 -> 베트남어 -> 태국어 -> 한국어 -> 일본어 -> 중국어 간체/번체) */
    font-family:
    /* 1. English & Latin (Default Base) */
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    /* 2. Vietnamese (Latin Extended) */
    "Noto Sans",
    /* 3. Thai */
    "Noto Sans Thai", "Leelawadee UI", "DB Thai Text",
    /* 4. Korean */
    "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
    /* 5. Japanese */
    "Noto Sans JP", "Hiragino Sans", "Meiryo",
    /* 6. Chinese Simplified (본토 - 간체) */
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    /* 7. Chinese Traditional (타이완/홍콩 - 번체) */
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    /* Fallback */
    sans-serif;
}

/* ==========================================================================
   Language-Specific Overrides (:lang Selector)
   * CJK 글꼴 형태(Glyph) 정확도 확보 및 언어별 시각적 크기 보정
   ========================================================================== */

/* 영어 (English - Default Base) */
:lang(en) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 한국어 (Korean) */
:lang(ko) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    word-break: keep-all; /* 단어 단위 줄바꿈으로 가독성 향상 */
}

/* 일본어 (Japanese) */
:lang(ja) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
}

/* 중국어 간체 - 중국 본토 (Simplified Chinese) */
:lang(zh-CN), :lang(zh-Hans) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14.5px; /* 복잡한 한자 획 뭉개짐 방지 */
}

/* 중국어 번체 - 대만/홍콩 (Traditional Chinese) */
:lang(zh-TW), :lang(zh-HK), :lang(zh-Hant) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 14.5px; /* 복잡한 한자 획 뭉개짐 방지 */
}

/* 베트남어 (Vietnamese) */
:lang(vi) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Roboto, sans-serif;
    line-height: 1.6; /* 위아래 성조 기호 공간 확보 */
}

/* 태국어 (Thai) */
:lang(th) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Leelawadee UI", sans-serif;
    font-size: 15px; /* 태국어 모음/자음 시각적 본체 크기 보정 */
    line-height: 1.65; /* 위아래 성조/모음 기호 겹침 방지 */
}
