/**
 * Local Font Definitions - Kayseri Birlik Vakfı
 * Version: 2.0 - Fixed paths with system fallbacks
 * 
 * Note: If fonts fail to load, system fonts will be used as fallback
 */

/* ============================================
   POPPINS FONT FAMILY
   Primary body font
============================================ */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Poppins Light'),
         url('/assets/fonts/poppins/poppins-light.woff2') format('woff2'),
         url('/assets/fonts/poppins/poppins-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins Regular'),
         url('/assets/fonts/poppins/poppins-regular.woff2') format('woff2'),
         url('/assets/fonts/poppins/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Poppins Medium'),
         url('/assets/fonts/poppins/poppins-medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Poppins SemiBold'),
         url('/assets/fonts/poppins/poppins-semibold.woff2') format('woff2'),
         url('/assets/fonts/poppins/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Poppins Bold'),
         url('/assets/fonts/poppins/poppins-bold.woff2') format('woff2'),
         url('/assets/fonts/poppins/poppins-700.woff2') format('woff2');
}

/* ============================================
   PLAYFAIR DISPLAY FONT FAMILY
   Display/heading font
============================================ */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Regular'),
         url('/assets/fonts/playfair-display/playfair-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Playfair Display Medium'),
         url('/assets/fonts/playfair-display/playfair-medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Playfair Display SemiBold'),
         url('/assets/fonts/playfair-display/playfair-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Playfair Display Bold'),
         url('/assets/fonts/playfair-display/playfair-bold.woff2') format('woff2');
}

/* ============================================
   TÜRKÇE KARAKTER DESTEĞİ VE GLOBAL FONT STANDARTLARI
   
   Poppins ve Playfair Display fontları Latin Extended
   karakter setini destekler (ş, ğ, ü, ö, ç, İ, ı dahil).
   
   Fallback zinciri:
   1. Poppins / Playfair Display (lokal)
   2. Sistem fontları (Türkçe desteği olan)
   3. System-ui fallback
============================================ */

/* Türkçe karakterler için unicode-range tanımı */
/* Latin Extended-A: Türkçe karakterler için gerekli */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins Regular'),
         url('/assets/fonts/poppins/poppins-regular.woff2') format('woff2'),
         url('/assets/fonts/poppins/poppins-400.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   GLOBAL FONT VARİABLES - TEK MERKEZDEN YÖNETİM
============================================ */
:root {
    /* Ana fontlar - Türkçe karakter destekli fallback zinciri */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', 'Noto Serif', serif;
    
    /* Fallback fontlar - Türkçe karakter garantili */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Body için global font uygulaması */
html {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Türkçe karakter test sınıfı (debug için) */
.turkish-test::after {
    content: 'Türkçe: ş Ş ğ Ğ ü Ü ö Ö ç Ç ı İ';
    font-size: 0;
    visibility: hidden;
}
