/* ==========================================================================
   TechnoFood Web Sitesi - Tema  (Yön B: Uygulama Odaklı)
   --------------------------------------------------------------------------
   Bu dosya İKİ yerde kullanılır:
     1) ERP içindeki önizleme penceresi
     2) Yayınlanan sitede  varlik/tema.css  olarak
   Böylece önizlemede gördüğünüz ile canlıdaki site BİREBİR aynıdır.

   Renkler ERP'deki Ayarlar > Görünüm alanından gelir; yayında :root
   değişkenleri o değerlerle ezilir.
   ========================================================================== */

:root {
    --tf-vurgu:        #E8912B;
    --tf-vurgu-koyu:   #B96A12;
    --tf-koyu:         #1B1E20;
    --tf-koyu-yumusak: #2A2E31;
    --tf-zemin:        #EFF1F1;
    --tf-kart:         #FFFFFF;
    --tf-metin:        #171A1C;
    --tf-metin-soluk:  #5A6165;
    --tf-cizgi:        #DFE2E2;
    --tf-govde-font:   Corbel, Candara, "Segoe UI", system-ui, -apple-system, sans-serif;
    --tf-baslik-font:  Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
}

.tf-site * { box-sizing: border-box; }

.tf-site {
    background: var(--tf-zemin);
    color: var(--tf-metin);
    font-family: var(--tf-govde-font);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.tf-site h1, .tf-site h2, .tf-site h3, .tf-site h4 {
    font-family: var(--tf-baslik-font);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: balance;
}

.tf-site a { color: var(--tf-vurgu-koyu); }
.tf-site img { max-width: 100%; height: auto; display: block; }

.tf-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Üst bar
   -------------------------------------------------------------------------- */
.tf-head { background: var(--tf-koyu); color: #F1F0EE; }
.tf-head .tf-in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.tf-logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.tf-logo .a { color: #F1F0EE; }
.tf-logo .b { color: var(--tf-vurgu); margin-left: -3px; }
.tf-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.tf-nav a { color: #B4B3AF; text-decoration: none; font-size: 14.5px; }
.tf-nav a:hover, .tf-nav a.aktif { color: #FFFFFF; }
.tf-nav .tf-baslik { color: #B4B3AF; font-size: 14.5px; }

/* Açılır alt menü.
   Fare ile hover, klavye ile focus-within üzerinden açılır - dokunmatik
   cihazda ana başlık zaten kendi sayfasına gider, alt başlıklar o sayfada
   listelenir; bu yüzden JavaScript gerekmez. */
.tf-nav .tf-ust { position: relative; display: inline-flex; align-items: center; }
.tf-nav .tf-alt-menu {
    display: none; position: absolute; top: 100%; left: -14px;
    min-width: 220px; padding: 10px 0; z-index: 40;
    background: var(--tf-koyu); box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
.tf-nav .tf-ust:hover .tf-alt-menu,
.tf-nav .tf-ust:focus-within .tf-alt-menu { display: block; }
.tf-nav .tf-alt-menu a, .tf-nav .tf-alt-menu .tf-baslik {
    display: block; padding: 8px 18px; font-size: 14px; white-space: nowrap;
}
.tf-nav .tf-alt-menu a:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
/* Dil çubuğu: dillerin kendi adları (Deutsch, Русский, العربية) - kod yerine */
.tf-lang { display: flex; gap: 2px; font-size: 12.5px; flex-wrap: wrap; }
.tf-lang span, .tf-lang a { padding: 3px 8px; border-radius: 3px; color: #7C7B78; text-decoration: none; white-space: nowrap; }
.tf-lang [lang="ar"], .tf-lang [lang="fa"] { font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; }
.tf-lang .aktif { background: var(--tf-vurgu); color: var(--tf-koyu); font-weight: 700; }

/* --------------------------------------------------------------------------
   Bloklar
   -------------------------------------------------------------------------- */
.tf-blok { padding: 56px 0; }
.tf-blok + .tf-blok { padding-top: 0; }

.tf-etiket {
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--tf-vurgu-koyu); margin-bottom: 14px;
}
.tf-blok h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 12px; }
.tf-alt { color: var(--tf-metin-soluk); font-size: 17px; max-width: 60ch; margin-bottom: 18px; }
.tf-govde { max-width: 68ch; }
.tf-govde p { margin: 0 0 14px; }
.tf-govde ul, .tf-govde ol { margin: 0 0 14px; padding-left: 22px; }

.tf-btn {
    display: inline-block; background: var(--tf-vurgu); color: var(--tf-koyu);
    font-weight: 700; padding: 13px 26px; border-radius: 3px;
    text-decoration: none; font-size: 15px;
}
.tf-btn:hover { background: var(--tf-vurgu-koyu); color: #fff; }

/* --- Üst tanıtım bandı (hero) --- */
.tf-hero { background: var(--tf-koyu); color: #F1F0EE; padding: 72px 0 84px; position: relative; }
.tf-hero.gorselli { background-size: cover; background-position: center; }
.tf-hero.gorselli::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(27,30,32,.94) 0%, rgba(27,30,32,.72) 100%);
}
.tf-hero .tf-in { position: relative; }
.tf-hero .tf-etiket { color: var(--tf-vurgu); }
.tf-hero h1 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.06; max-width: 17ch; margin-bottom: 18px; }
.tf-hero p { color: #B4B3AF; font-size: 17px; max-width: 52ch; margin: 0 0 28px; }

/* --- Yazı + yan görsel --- */
.tf-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tf-ikili img { border-radius: 6px; }

/* --- Kart grubu --- */
.tf-kartlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tf-kart {
    background: var(--tf-kart); border-radius: 6px; overflow: hidden;
    box-shadow: 0 6px 18px -12px rgba(0,0,0,.3); display: flex; flex-direction: column;
}
.tf-kart .gorsel { aspect-ratio: 4/3; background: linear-gradient(150deg, #F6C46A, var(--tf-vurgu)); }
.tf-kart .govde { padding: 16px 17px 20px; flex: 1; }
.tf-kart h3 { font-size: 16.5px; margin-bottom: 6px; }
.tf-kart p { font-size: 13.5px; color: var(--tf-metin-soluk); margin: 0 0 10px; line-height: 1.5; }
.tf-kart a.bag { font-size: 13.5px; font-weight: 700; color: var(--tf-vurgu-koyu); text-decoration: none; }
.tf-kart h3 a { color: inherit; text-decoration: none; }
.tf-kart h3 a:hover { color: var(--tf-vurgu-koyu); }

/* --- Otomatik ürün listesi: aile grupları (menüden #aile-<kod> ile gelinir) --- */
.tf-aile { margin-top: 34px; scroll-margin-top: 90px; }
.tf-aile:first-of-type { margin-top: 0; }
.tf-aile > h3 { font-size: 20px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--tf-vurgu); display: inline-block; }
.tf-aile > .tf-alt { margin-bottom: 14px; }

/* --- Özellik listesi --- */
.tf-ozellikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tf-ozellik { display: flex; gap: 13px; }
.tf-ozellik .ikon {
    flex: none; width: 34px; height: 34px; border-radius: 6px;
    background: rgba(232,145,43,.15); color: var(--tf-vurgu-koyu);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.tf-ozellik h3 { font-size: 15.5px; margin-bottom: 4px; }
.tf-ozellik p { font-size: 13.5px; color: var(--tf-metin-soluk); margin: 0; }

/* --- Numaralı adımlar --- */
.tf-adimlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.tf-adim { background: var(--tf-kart); border: 1px solid var(--tf-cizgi); border-radius: 6px; padding: 22px; }
.tf-adim .no {
    font-family: Consolas, ui-monospace, monospace; font-size: 11.5px;
    letter-spacing: .14em; color: var(--tf-vurgu-koyu); margin-bottom: 12px;
}
.tf-adim h3 { font-size: 16.5px; margin-bottom: 7px; }
.tf-adim p { font-size: 13.8px; color: var(--tf-metin-soluk); margin: 0; }

/* --- Galeri --- */
.tf-galeri { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tf-galeri .oge { aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; background: #DDE1E2; }
.tf-galeri .oge img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Yazılı galeri (kişi kartları): dikey kırpma, yüz üstte kalsın */
.tf-galeri.yazili { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; align-items: start; }
.tf-kisi { margin: 0; background: var(--tf-kart, #fff); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tf-kisi .oge { aspect-ratio: 4/5; border-radius: 0; }
.tf-kisi .oge img { object-position: 50% 18%; }
.tf-kisi figcaption { padding: 14px 16px 18px; }
.tf-kisi h3 { font-size: 16px; margin: 0 0 3px; }
.tf-kisi .gorev { font-size: 13px; font-weight: 600; color: var(--tf-vurgu-koyu, #B86A12); margin-bottom: 8px; }
.tf-kisi .aciklama { font-size: 13.2px; color: var(--tf-metin-soluk, #666); line-height: 1.55; }
.tf-kisi .aciklama p { margin: 0 0 6px; }
.tf-kisi .aciklama p:last-child { margin-bottom: 0; }

/* --- Görsel büyütme penceresi (betiksiz :target, site.js varsa .acik) --- */
a.tf-buyut { display: block; cursor: zoom-in; }
a.tf-buyut img { transition: transform .25s ease; }
a.tf-buyut:hover img, a.tf-buyut:focus-visible img { transform: scale(1.03); }
.tf-lightbox {
    display: none; position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center; padding: 16px;
}
.tf-lightbox:target, .tf-lightbox.acik { display: flex; }
.tf-lb-arka { position: absolute; inset: 0; background: rgba(15,17,18,.86); cursor: zoom-out; }
.tf-lightbox figure { position: relative; margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.tf-lightbox figure img {
    display: block; max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto;
    margin: 0 auto; border-radius: 4px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.tf-lightbox figcaption { color: #fff; font-size: 15px; margin-top: 10px; }
.tf-lb-kapat {
    position: absolute; top: 12px; right: 16px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; line-height: 1; text-decoration: none;
    border-radius: 50%; background: rgba(255,255,255,.12);
}
.tf-lb-kapat:hover, .tf-lb-kapat:focus-visible { background: rgba(255,255,255,.25); }
body.tf-lb-kilit { overflow: hidden; }

/* --- SSS --- */
.tf-sss { max-width: 780px; }
.tf-sss .soru {
    background: var(--tf-kart); border: 1px solid var(--tf-cizgi);
    border-radius: 5px; padding: 15px 18px; margin-bottom: 9px;
}
.tf-sss .soru h3 { font-size: 15.5px; margin-bottom: 6px; }
.tf-sss .soru p { font-size: 14px; color: var(--tf-metin-soluk); margin: 0; }

/* --- Tablo --- */
.tf-tablo { width: 100%; border-collapse: collapse; background: var(--tf-kart); font-size: 14.5px; }
.tf-tablo th, .tf-tablo td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--tf-cizgi); }
.tf-tablo th { background: var(--tf-koyu); color: #fff; font-size: 12.5px; letter-spacing: .04em; }
.tf-tablo-sar { overflow-x: auto; }

/* --- İletişim çağrısı --- */
.tf-cta { background: var(--tf-koyu); color: #F2F1EF; padding: 44px 0; }
.tf-cta .tf-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.tf-cta h2 { font-size: clamp(20px, 2.6vw, 26px); max-width: 24ch; }

/* --- Form --- */
.tf-form { background: var(--tf-kart); border: 1px solid var(--tf-cizgi); border-radius: 6px; padding: 26px; max-width: 640px; }
.tf-form .satir { margin-bottom: 14px; }
.tf-form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.tf-form input, .tf-form textarea {
    width: 100%; border: 1px solid var(--tf-cizgi); border-radius: 4px;
    padding: 10px 12px; font: inherit; font-size: 15px;
}

/* --- Video --- */
.tf-video { aspect-ratio: 16/9; background: var(--tf-koyu); border-radius: 6px;
            display: flex; align-items: center; justify-content: center; color: #fff; }

/* --------------------------------------------------------------------------
   Harita - ONAYLI YÜKLEME (iki tık çözümü)

   Sayfada iframe YOKTUR; ziyaretçi onay verene kadar yalnızca bu kapak
   görünür. Onay verilince site.js iframe'i oluşturur ve kapağı kaldırır.
   -------------------------------------------------------------------------- */
.tf-harita {
    position: relative; margin-top: 22px; border-radius: 6px; overflow: hidden;
    border: 1px solid var(--tf-cizgi); background: var(--tf-kart);
    min-height: 340px;
}
.tf-harita-kapak {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background-color: #E7E4DE; background-size: cover; background-position: center;
}
/* Görsel seçilmişse metin okunabilir kalsın diye üzerine perde çekilir */
.tf-harita-kapak::before {
    content: ''; position: absolute; inset: 0; background: rgba(27,30,32,.55);
}
.tf-harita-kutu {
    position: relative; max-width: 520px; text-align: center; color: #FFFFFF;
}
.tf-harita-ikon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.tf-harita-kutu h3 { font-size: 18px; margin: 0 0 8px; color: #FFFFFF; }
.tf-harita-kutu p { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; color: #E7E4DE; }
.tf-harita-kutu .tf-btn { margin-bottom: 10px; }
.tf-harita-yol {
    display: block; font-size: 13.5px; font-weight: 600;
    color: #FFFFFF; text-decoration: underline;
}
.tf-harita-not { font-size: 12px; opacity: .8; margin: 14px 0 0 !important; }
.tf-harita-cerceve { display: block; width: 100%; height: 420px; border: 0; }
.tf-harita-kapat {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(27,30,32,.85); color: #FFFFFF; border: 0; border-radius: 4px;
    padding: 7px 13px; font: 600 12.5px/1 inherit; cursor: pointer;
}
.tf-harita-kapat:hover { background: var(--tf-koyu); }
.tf-harita.yuklendi { min-height: 0; }

@media (max-width: 767.98px) {
    .tf-harita { min-height: 380px; }
    .tf-harita-cerceve { height: 320px; }
    /* Dokunma hedefi: onay ve kapat düğmeleri parmakla rahat basılmalı */
    .tf-harita-kutu .tf-btn { padding: 13px 20px; }
    .tf-harita-kapat { padding: 11px 15px; }
}

/* --- Ayırıcı --- */
.tf-ayrac { height: 1px; background: var(--tf-cizgi); margin: 30px 0; }

/* --------------------------------------------------------------------------
   Alt bilgi
   -------------------------------------------------------------------------- */
.tf-foot { background: var(--tf-koyu); color: #B4B3AF; padding: 34px 0; font-size: 14px; }
.tf-foot .tf-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tf-foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; padding-top: 18px; }
.tf-foot-nav a { color: #8F8D89; text-decoration: none; font-size: 13px; }
.tf-foot-nav a:hover { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .tf-in { padding: 0 18px; }
    .tf-blok { padding: 38px 0; }
    .tf-hero { padding: 46px 0 54px; }
    .tf-ikili { grid-template-columns: 1fr; gap: 24px; }
    .tf-nav { gap: 14px; }
    .tf-nav a { font-size: 13.5px; }

    /* Mobilde hover yok - açılır kutu gizli kalırdı. Alt başlıklar ana
       başlığın yanında düz metin olarak akar. */
    .tf-nav .tf-ust { display: contents; }
    .tf-nav .tf-alt-menu {
        display: contents; position: static; background: none;
        box-shadow: none; padding: 0;
    }
    .tf-nav .tf-alt-menu a { display: inline; padding: 0; font-size: 12.5px; opacity: .75; }
}

/* Boş blok uyarısı - YALNIZCA önizlemede görünür, yayınlanan sitede çıkmaz */
.tf-bos {
    border: 1px dashed #B9BEC1; border-radius: 5px; padding: 18px;
    color: #8A8F92; font-size: 13.5px; text-align: center; font-style: italic;
}

/* --------------------------------------------------------------------------
   Sağdan sola diller (Arapça, Farsça)
   --------------------------------------------------------------------------
   <html dir="rtl"> ERP'den gelen dil bilgisiyle basılır (WebLanguages.IsRtl).
   Flex ve grid düzenleri kendiliğinden aynalanır; burada yalnızca YÖNE
   BAĞLI sabit değerler (sol/sağ konum, girinti) ve Latin tipografiye özgü
   ayarlar (harf aralığı, büyük harf) düzeltilir.

   Yazı tipi: Vazirmatn (SIL Open Font License) - Arapça ve Farsça'nın
   tamamını kapsar, Latin harfleri de içerir. Yalnızca Arap alfabesi
   aralığı için tanımlandığından Latin sayfalarda İNDİRİLMEZ. Dosya
   kendi sunucumuzdan sunulur (dış kaynak yok - KVKK ve CDN kuralı).
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

[dir="rtl"] .tf-site {
    --tf-govde-font:  "Vazirmatn", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
    --tf-baslik-font: "Vazirmatn", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
    line-height: 1.75;                         /* Arap alfabesi daha yüksek satır ister */
}
/* Negatif/geniş harf aralığı bitişik harfleri koparır - RTL'de sıfırlanır */
[dir="rtl"] .tf-site h1, [dir="rtl"] .tf-site h2, [dir="rtl"] .tf-site h3, [dir="rtl"] .tf-site h4,
[dir="rtl"] .tf-logo, [dir="rtl"] .tf-etiket, [dir="rtl"] .tf-tablo th, [dir="rtl"] .tf-adim .no,
[dir="rtl"] .tf-lang { letter-spacing: 0; }
[dir="rtl"] .tf-etiket { text-transform: none; font-weight: 700; }
[dir="rtl"] .tf-logo .b { margin-left: 0; margin-right: -3px; }
/* Logo ve dil kodları Latin kalır */
[dir="rtl"] .tf-logo, [dir="rtl"] .tf-lang { direction: ltr; }

/* Yöne bağlı konumlar */
[dir="rtl"] .tf-nav .tf-alt-menu { left: auto; right: -14px; }
[dir="rtl"] .tf-govde ul, [dir="rtl"] .tf-govde ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .tf-tablo th, [dir="rtl"] .tf-tablo td { text-align: right; }
[dir="rtl"] .tf-lb-kapat { right: auto; left: 16px; }
[dir="rtl"] .tf-harita-kapat { right: auto; left: 10px; }
[dir="rtl"] .tf-kisi .oge img { object-position: 50% 18%; }

/* Ürün kodları, e-posta ve telefon gibi Latin/sayısal parçalar RTL metin içinde
   soldan sağa okunur; tarayıcıya bunu bildirmek karışık satırları düzeltir */
[dir="rtl"] .tf-kart .kod, [dir="rtl"] .tf-foot .ltr, [dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
/* Üst bant karartması soldan koyu başlar; RTL'de metin sağda olduğu için aynalanır */
[dir="rtl"] .tf-hero.gorselli::before {
    background: linear-gradient(270deg, rgba(27,30,32,.94) 0%, rgba(27,30,32,.72) 100%);
}
