/* FontAwesome CDN Optimization for Coreiten.com */
/* This replaces local FontAwesome 4.4.0 with CDN version for better performance */

/* Import FontAwesome 6.4.0 from CDN with optimization */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Override CDN with optimized font-display settings */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block; /* Block for icon fonts prevents layout shifts */
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff') format('woff');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block; /* Block for icon fonts prevents layout shifts */
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff') format('woff');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block; /* Block for icon fonts prevents layout shifts */
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff') format('woff');
}

/* FontAwesome 4.4.0 Compatibility Layer */
/* Maps old FontAwesome 4 classes to new FontAwesome 6 classes */
.fa {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900; /* Solid icons */
}

/* Common FontAwesome 4.4.0 icons mapped to FontAwesome 6 */
.fa-home:before { content: "\f015"; } /* home */
.fa-user:before { content: "\f007"; } /* user */
.fa-search:before { content: "\f002"; } /* search */
.fa-bars:before { content: "\f0c9"; } /* bars */
.fa-times:before { content: "\f00d"; } /* times */
.fa-arrow-up:before { content: "\f062"; } /* arrow-up */
.fa-arrow-down:before { content: "\f063"; } /* arrow-down */
.fa-arrow-left:before { content: "\f060"; } /* arrow-left */
.fa-arrow-right:before { content: "\f061"; } /* arrow-right */
.fa-chevron-up:before { content: "\f077"; } /* chevron-up */
.fa-chevron-down:before { content: "\f078"; } /* chevron-down */
.fa-chevron-left:before { content: "\f053"; } /* chevron-left */
.fa-chevron-right:before { content: "\f054"; } /* chevron-right */
.fa-phone:before { content: "\f095"; } /* phone */
.fa-envelope:before { content: "\f0e0"; } /* envelope */
.fa-globe:before { content: "\f0ac"; } /* globe */
.fa-calendar:before { content: "\f073"; } /* calendar */
.fa-clock:before { content: "\f017"; } /* clock */
.fa-star:before { content: "\f005"; } /* star */
.fa-heart:before { content: "\f004"; } /* heart */
.fa-thumbs-up:before { content: "\f164"; } /* thumbs-up */
.fa-thumbs-down:before { content: "\f165"; } /* thumbs-down */
.fa-share:before { content: "\f064"; } /* share */
.fa-print:before { content: "\f02f"; } /* print */
.fa-download:before { content: "\f019"; } /* download */
.fa-upload:before { content: "\f093"; } /* upload */
.fa-edit:before { content: "\f044"; } /* edit */
.fa-trash:before { content: "\f1f8"; } /* trash */
.fa-save:before { content: "\f0c7"; } /* save */
.fa-refresh:before { content: "\f021"; } /* refresh */
.fa-plus:before { content: "\f067"; } /* plus */
.fa-minus:before { content: "\f068"; } /* minus */
.fa-check:before { content: "\f00c"; } /* check */
.fa-close:before { content: "\f00d"; } /* close */
.fa-info:before { content: "\f129"; } /* info */
.fa-warning:before { content: "\f071"; } /* warning */
.fa-question:before { content: "\f128"; } /* question */
.fa-exclamation:before { content: "\f12a"; } /* exclamation */
.fa-lock:before { content: "\f023"; } /* lock */
.fa-unlock:before { content: "\f09c"; } /* unlock */
.fa-eye:before { content: "\f06e"; } /* eye */
.fa-eye-slash:before { content: "\f070"; } /* eye-slash */
.fa-cog:before { content: "\f013"; } /* cog */
.fa-settings:before { content: "\f013"; } /* settings */
.fa-menu:before { content: "\f0c9"; } /* menu */
.fa-list:before { content: "\f03a"; } /* list */
.fa-grid:before { content: "\f00a"; } /* grid */
.fa-th:before { content: "\f00a"; } /* th */

/* Social Media Icons */
.fa-facebook:before { content: "\f09a"; } /* facebook */
.fa-twitter:before { content: "\f099"; } /* twitter */
.fa-instagram:before { content: "\f16d"; } /* instagram */
.fa-youtube:before { content: "\f167"; } /* youtube */
.fa-linkedin:before { content: "\f08c"; } /* linkedin */
.fa-whatsapp:before { content: "\f232"; } /* whatsapp */
.fa-telegram:before { content: "\f2c6"; } /* telegram */
.fa-snapchat:before { content: "\f2ab"; } /* snapchat */
.fa-tiktok:before { content: "\f97b"; } /* tiktok */

/* Performance optimizations */
.fa, .fas, .far, .fal, .fab {
    font-display: block !important;
    text-rendering: optimizeSpeed !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure icons don't cause layout shifts */
.fa {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Loading state for icons */
.font-loading .fa {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.fonts-loaded .fa {
    opacity: 1;
}
