/* Font Awesome 아이콘 수정을 위한 전용 CSS */

/* Font Awesome 폰트가 제대로 로드되지 않을 경우를 대비한 fallback */
@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: block;
}

/* 전역 Font Awesome 강제 적용 - 최고 우선순위 */
html body *[class*="fa-"],
html body i[class*="fa-"],
html body .fas,
html body .far,
html body .fab,
html body .fal,
html body .fad,
html body .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;
}

/* 모든 Font Awesome 아이콘에 대한 강제 설정 */
.fas, .far, .fab, .fal, .fad, .fa,
[class^="fa-"], [class*=" fa-"],
i[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;
}

/* 특정 아이콘들에 대한 개별 설정 */
.fa-exclamation-triangle:before { content: "\f071"; }
.fa-paragraph:before { content: "\f1dd"; }
.fa-align-left:before { content: "\f036"; }
.fa-align-center:before { content: "\f037"; }
.fa-align-right:before { content: "\f038"; }
.fa-align-justify:before { content: "\f039"; }
.fa-bold:before { content: "\f032"; }
.fa-italic:before { content: "\f033"; }
.fa-underline:before { content: "\f0cd"; }
.fa-strikethrough:before { content: "\f0cc"; }
.fa-undo:before { content: "\f0e2"; }
.fa-redo:before { content: "\f01e"; }
.fa-save:before { content: "\f0c7"; }
.fa-heart:before { content: "\f004"; }
.fa-copy:before { content: "\f0c5"; }
.fa-arrow-right:before { content: "\f061"; }

/* 에디터 툴바 내 모든 아이콘 강제 설정 */
.blog-editor-toolbar *[class*="fa-"],
.blog-editor-toolbar i,
.blog-editor-toolbar .fas,
.blog-editor-toolbar .far,
.blog-editor-toolbar .fab {
    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;
    display: inline-block !important;
}

/* 액션 버튼 내 아이콘 */
.action-btn i,
.action-btn .fas,
.action-btn .far,
.action-btn .fab {
    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;
    display: inline-block !important;
}

/* 경고 배너 아이콘 */
.warning-icon,
.blog-warning-banner i,
.blog-warning-banner .fas {
    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;
    display: inline-block !important;
}

/* 최고 우선순위 - 모든 Font Awesome 아이콘 강제 적용 */
html body *[class*="fa-"]:not([class*="font-"]),
html body i[class*="fa-"]:not([class*="font-"]),
html body .fas:not([class*="font-"]),
html body .far:not([class*="font-"]),
html body .fab:not([class*="font-"]),
html body .fal:not([class*="font-"]),
html body .fad:not([class*="font-"]),
html body .fa:not([class*="font-"]) {
    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;
}

/* 관리자 사이드바 아이콘 특별 처리 */
.admin-sidebar i,
.admin-sidebar .fas,
.admin-sidebar .far,
.admin-sidebar .fab,
.admin-sidebar [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;
    display: inline-block !important;
}

/* 사이드바 아이콘 특별 처리 */
.sidebar-item i,
.sidebar-item .fas,
.sidebar-item .far,
.sidebar-item .fab,
.sidebar-item [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;
    display: inline-block !important;
}
