/* 프리텐다드 폰트 안전 적용 - Font Awesome과 충돌 방지 */

/* 구글 폰트 임포트 */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&display=swap');

/* 텍스트 요소에만 프리텐다드 폰트 적용 */
html, 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;
}

/* 텍스트 요소들에만 프리텐다드 폰트 적용 */
h1, h2, h3, h4, h5, h6,
p, span, div, a, label, input, textarea, select,
table, th, td,
ul, ol, li,
button:not([class*="fa-"]):not(.toolbar-btn):not(.action-btn),
.btn:not([class*="fa-"]) {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* Font Awesome 아이콘은 절대 건드리지 않음 */
.fas, .far, .fab, .fal, .fad, .fa,
[class*="fa-"],
i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Tailwind CSS 클래스 오버라이드 */
.font-sans, .font-mono, .font-serif {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* 특정 컴포넌트들 */
.sidebar-item:not([class*="fa-"]), 
.btn-primary:not([class*="fa-"]), 
.btn-secondary:not([class*="fa-"]), 
.form-label, 
.form-input {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* 온보딩 관련 요소들 */
.onboarding-progress-bar:not([class*="fa-"]), 
.onboarding-header-icon:not([class*="fa-"]), 
.onboarding-input, 
.onboarding-next-btn:not([class*="fa-"]) {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* 키워드 관련 요소들 */
.keyword-switch-btn:not([class*="fa-"]), 
.blog-option-btn:not([class*="fa-"]), 
.analyze-btn:not([class*="fa-"]), 
.ai-recommend-btn:not([class*="fa-"]), 
.keyword-input {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* 블로그 관련 요소들 */
.blog-type-btn:not([class*="fa-"]), 
.mobile-blog-type-btn:not([class*="fa-"]), 
.generate-btn:not([class*="fa-"]) {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* 게이지 관련 요소들 */
.gauge-title, 
.gauge-value, 
.gauge-labels span {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
