/* OPTIMIZED INTER FONTS - Performans Odaklı Tek Dosya */
/* Sadece gerçekten gerekli font ağırlıkları */

/* 1. CRITICAL - Hemen yüklenmesi gereken (Above the fold) */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../inter/inter-v18-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../inter/inter-v18-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. SECONDARY - Gecikmeli yükleme (Optional) */
@font-face {
  font-display: optional;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../inter/inter-v18-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: optional;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../inter/inter-v18-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 3. ITALIC - Sadece gerekli olanlar */
@font-face {
  font-display: optional;
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../inter/inter-v18-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* FALLBACK ve FOUT Önleme */
body {
  font-family: 'Inter', 
               -apple-system, 
               BlinkMacSystemFont, 
               'Segoe UI', 
               system-ui, 
               'Helvetica Neue', 
               Arial, 
               sans-serif;
  font-display: swap;
}

/* Layout Shift Önleme */
.font-loading * {
  visibility: hidden;
}

.fonts-loaded * {
  visibility: visible;
}

/* Font Loading States */
.fonts-loading {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.fonts-loaded {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-data: reduce) {
  /* Düşük data kullanımı tercih edenlerde sadece system font */
  body {
    font-family: system-ui, -apple-system, sans-serif !important;
  }
}

/* Font Weight Mapping - Performans için */
.fw-light { font-weight: 300; } /* Fallback: normal */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Responsive Font Loading */
@media (max-width: 768px) {
  /* Mobilde daha az font ağırlığı kullan */
  .fw-light,
  .fw-medium {
    font-weight: 400; /* Normal weight'e fallback */
  }
}

/* Print Optimization */
@media print {
  * {
    font-family: serif !important;
    font-weight: normal !important;
  }
}