/* ==========================================================================
   ek.css - Ön yüz tasarım düzeltmeleri (mobil / tablet / masaüstü)
   style.php'den SONRA yüklenir; marka renkleri style.php'nin tanımladığı
   --renk1 / --renk2 / --renk3 değişkenlerinden gelir (yedek değerler var).
   Bölümler: 1 temel  2 ön yükleyici  3 üst bar  4 yerleşim/sütun  5 başlık/geri
   6 kategori+kart  7 ürün listesi  8 ürün/içerik detay  9 form  10 modal
   11 slider  12 alt bilgi  13 garson butonu  14 erişilebilirlik  15 404
   ========================================================================== */

/* ---------- 1. Temel ---------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(80, 108, 105, .18);
}

body {
    font-size: 16px;                 /* mobilde gövde >= 16px (iOS yakınlaştırma + okunurluk) */
    line-height: 1.5;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img { height: auto; }                /* en-boy oranı: genişlik sınırlanınca bozulmasın */
svg { max-width: 100%; }

/* Panelden (TinyMCE) gelen serbest içerik taşmasın */
.recipe-description img,
.recipe-description video,
.recipe-description iframe,
.recipe-description embed,
.recipe-description object,
#prevCom img,
#prevCom iframe,
.lrc-text img {
    max-width: 100% !important;
    height: auto;
}
.recipe-description iframe,
#prevCom iframe { aspect-ratio: 16 / 9; height: auto; }
.recipe-description table,
#prevCom table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.recipe-description p,
.recipe-description li,
#prevCom p,
.lrc-text,
.yml-food-text,
.bc-text,
.lrc-title {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------- 2. Ön yükleyici (JS yüklenmezse takılı kalmasın) ---------- */
@-webkit-keyframes ek-preload-gizle { to { opacity: 0; visibility: hidden; } }
@keyframes ek-preload-gizle { to { opacity: 0; visibility: hidden; } }
.preloading {
    -webkit-animation: ek-preload-gizle .4s ease 5s forwards;
    animation: ek-preload-gizle .4s ease 5s forwards;   /* en geç ~5,4 sn'de kendiliğinden kapanır */
}

/* ---------- 3. Üst bar ---------- */
.bg-header { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
.navbar .container-fluid { padding-left: 12px; padding-right: 12px; }
.navbar .logo {
    height: auto;
    min-height: 30px;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.navbar .logo a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    max-width: 100%;
    font-size: clamp(13px, 4vw, 18px) !important;   /* satır içi 11-17px stilini ezer */
    line-height: 1.15;
    white-space: normal !important;
    text-wrap: balance;
    max-height: 50px;
    overflow: hidden;
}
#content { top: calc(56px + env(safe-area-inset-top)); }

/* ---------- 4. Yerleşim / sütun ---------- */
#content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
}
#content > .content-wrap {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
}
#content > .footer { -ms-flex: 0 0 auto; flex: 0 0 auto; }

/* Tablet ve masaüstünde sütun: eski %25 (1366px'te ~340px, 1024px'te 256px) çok dardı */
@media only screen and (min-width: 768px) {
    .content-wrap { max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media only screen and (min-width: 1024px) {
    .content-wrap { max-width: 520px; }
}
@media only screen and (min-width: 1600px) {
    .content-wrap { max-width: 560px; }
}

/* ---------- 5. Başlık satırı / geri düğmesi ---------- */
.heading-page {
    font-size: 16px;
    height: auto;
    min-height: 54px;
    padding: 0 15px 0 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.heading-page .back-btn { height: 100%; min-height: 54px; width: 48px; }
.heading-page > a {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    padding: 15px 8px 15px 0;          /* dokunma alanı >= 44px yükseklik */
    min-height: 54px;
    line-height: 24px;
    color: #212529;
}
.heading-page .hope {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    height: auto;
    margin: 0;
    font-size: 15px;
    text-align: right;
}
.heading-page .hope h1 {
    margin: 0 !important;
    font-size: inherit !important;
    overflow-wrap: anywhere;
}
.wrap-food-recipe .heading-page { font-size: 16px; }

/* ---------- 6. Anasayfa: kategori kutuları, başlıklar, kartlar ---------- */
.section-home .sa-title { font-size: 17px; line-height: 1.25; }
.home-category-list .home-box-category { height: 109px; }
.home-category-list .home-text-category .bc-text {
    font-size: 17px;
    line-height: 1.1;
    padding: 0 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 8px rgba(0, 0, 0, .55);   /* fotoğraf üstünde okunurluk */
}
.home-category-list .home-image-category img { height: 100%; object-fit: cover; }
.home-category-list a:focus-visible .home-box-category { outline: 3px solid #0b57d0; outline-offset: 1px; }

.you-might-like .yml-box .yml-img img { object-fit: cover; }     /* kare fotoğraf 109x71'e ezilmesin */
.you-might-like .yml-box .yml-food-text {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    min-height: 2.4em;
}
.section-home.home-banner img { width: auto; max-width: 100%; height: auto; max-height: 270px; margin: 0 auto; display: block; object-fit: contain; }
.section-subscribe .subcontainer .textsub { font-size: 16px; }
.theme-button { min-height: 44px; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; justify-content: center; padding: 8px 20px; font-size: 16px; }
.theme-button:hover { background-color: var(--renk1, #506c69); -webkit-filter: brightness(.88); filter: brightness(.88); }   /* #708a00 hover beyaz yazıda 3,9:1 idi */
.section-home .more-category .mcbutton { font-size: 16px; }

.blog-card .title { font-size: 16px; }
.blog-card img { width: 100%; }
.section-heading .title { font-size: 21px; line-height: 1.2em; }

/* ---------- 7. Ürün listesi ---------- */
.wrap-list-rc .lrc-item .lrc-button { color: #6b6b6b; }      /* #7b7b7b: #f0f0f0 üstünde 3,7:1 -> 4,7:1 */
.wrap-list-rc .lrc-item .lrc-button .lrcb-left .svg-inline--fa { color: #6b6b6b; }
.lrc-text { font-size: 14px; line-height: 1.4; }
.lrc-title h5 { line-height: 1.25; }
.no_stock_text { font-size: 13px; color: #a30d0d; }
.wrap-list-rc .lrc-item .lrc-content .lrc-img img { border-radius: 8px; }
.wrap-list-rc .lrc-item > a { display: block; }
.wrap-list-rc .lrc-item > a:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }

/* ---------- 8. Ürün / içerik detay ---------- */
.wrap-food-recipe .recipe-description { padding: 16px 16px 24px; font-size: 16px; }
.wrap-food-recipe .recipe-description p,
.wrap-food-recipe .recipe-description li { font-size: 16px; }
.webofs1, .webofs2, .baslik { font-size: 18px; line-height: 1.3; }
.webofs1 { margin-bottom: 0; padding-top: 12px; }
.nav-tabs.h29 { height: auto !important; min-height: 29px; }
.nav-tabs.h29 .nav-item { font-size: 15px; }
.cm-hour { font-size: 15px !important; }
.wrap-food-recipe #food-recipe-image .pgp-img img { height: 229px; }
@supports (aspect-ratio: 1 / 1) {
    .wrap-food-recipe #food-recipe-image .pgp-img img {
        height: auto;
        aspect-ratio: 375 / 229;
        max-height: 340px;
    }
}
#likes, #dislike { min-height: 44px; font-size: 16px; }
.webofs1 b { color: #212529; }

/* ---------- 9. İletişim formu ---------- */
.tab-comment .add-new-comment .input.your-msg,
.add-new-comment select.form-control {
    font-size: 16px;                 /* 16px altı alanlarda iOS odakta sayfayı yakınlaştırır */
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #8a9694;       /* alan sınırı >= 3:1 */
    background-color: #fff;
    color: #212529;
}
input.h31,
select.h31 { height: 46px !important; }
#subject, .add-new-comment select.form-control { height: 46px; font-size: 16px; padding: 0 12px; margin-bottom: 10px; color: #212529; border: 1px solid #8a9694; border-radius: 8px; }
textarea.h135 { height: 150px !important; resize: vertical; }
.add-new-comment ::-webkit-input-placeholder { color: #66706f; opacity: 1; }
.add-new-comment ::-moz-placeholder { color: #66706f; opacity: 1; }
.add-new-comment :-ms-input-placeholder { color: #66706f; opacity: 1; }
.add-new-comment ::placeholder { color: #66706f; opacity: 1; }
body .form-control:focus,
.add-new-comment .input:focus {
    border-color: var(--renk1, #506c69);
    -webkit-box-shadow: 0 0 0 3px rgba(80, 108, 105, .35);
    box-shadow: 0 0 0 3px rgba(80, 108, 105, .35);
    outline: 0;
}
.grdnt-green,
input.btn.grdnt-green { height: 48px; min-width: 140px; padding: 0 22px; font-size: 16px; }
.btn:disabled, .btn.disabled { opacity: .55; }
#the-count { font-size: 13px; }
.add-new-comment hr + p { font-size: 13px; line-height: 1.4; color: #4a4a4a; }
#ok .section-text { padding: 8px 0 24px; }

/* ---------- 10. Modallar (dil seçimi, duyuru, garson, açılır pencere) ---------- */
.modal-dialog { margin-left: 12px; margin-right: 12px; }
@media (min-width: 576px) { .modal-dialog { margin-left: auto; margin-right: auto; } }
.modal-content { border-radius: 12px; }
.modal-min .modal-body { padding: 2.5rem 1.5rem 2rem; }
.modal-min .modal-body .close,
.modal-header .close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    font-size: 28px;
    line-height: 44px;
    opacity: .75;
    color: #212529;
    text-shadow: none;
}
.modal-min .modal-body .close { top: 4px; right: 4px; }
.modal-header .close { margin-left: auto; }
.btna { min-height: 44px; font-size: 16px; font-weight: 600; border: 1px solid #a20010; border-radius: 8px; cursor: pointer; }
.lang a {
    color: #555;                     /* #9d9d9d beyaz üstünde 2,7:1 idi */
    border-color: #6b6b6b;
    min-height: 44px;
    align-items: center;
    padding: 6px 16px;
    font-size: 16px;
}
.lang a:hover { border-color: #000; color: #000; }
.activelang, .lang a.activelang {
    opacity: 1;
    color: var(--renk1, #506c69);
    border-color: var(--renk1, #506c69);
    border-width: 2px;
    font-weight: 600;
    background: #f1f5f5;
}
#actionsModal .modal-body img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    object-fit: contain;
    margin: 0 auto;
}
#actionsModal .modal-footer label { margin: 0; min-height: 44px; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-size: 15px; }
#actionsModal .modal-check { width: 20px; height: 20px; margin-right: 8px; }
#exampleModalCenter .btn { min-height: 52px; font-size: 18px; }
.mfp-close { width: 44px; height: 44px; line-height: 44px; }

/* ---------- 11. Slick (slider / carousel) ---------- */
.slick-dots li button { position: relative; }
.slick-dots li button::after {                      /* görünür nokta küçük kalır, dokunma alanı büyür */
    content: "";
    position: absolute;
    top: -14px;
    bottom: -14px;
    left: -3px;
    right: -3px;
}
.yml-carousel .slick-arrow,
.blog-carousel .slick-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    z-index: 3;
}
.yml-carousel .slick-arrow:hover,
.yml-carousel .slick-arrow:focus,
.blog-carousel .slick-arrow:hover,
.blog-carousel .slick-arrow:focus { background: #fff; }
.yml-carousel .slick-arrow::before,
.blog-carousel .slick-arrow::before {
    color: var(--renk1, #506c69);       /* varsayılan beyaz ok beyaz kartta görünmüyordu */
    opacity: 1;
    font-size: 20px;
    line-height: 36px;
}
.yml-carousel .slick-prev,
.blog-carousel .slick-prev { left: -10px; }
.yml-carousel .slick-next,
.blog-carousel .slick-next { right: -10px; }
.yml-carousel .slick-arrow.slick-disabled { opacity: .35; }
@media (hover: none) and (pointer: coarse) {
    .yml-carousel .slick-arrow,
    .blog-carousel .slick-arrow { display: none !important; }   /* dokunmatikte sürükleme yeterli */
}

/* ---------- 12. Alt bilgi ---------- */
.footer {
    height: auto;
    min-height: 0;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
}
.footer small, .footer p, .footer .footer-heading { font-size: 14px; line-height: 1.5; }
.footer .footer-heading p { margin-bottom: 0; }
.footer .footer-heading { max-width: 640px; margin-left: auto; margin-right: auto; }
.footer hr { border-top-color: rgba(255, 255, 255, .35); }
.footer a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }   /* dokunma alanı */
.footer a:hover { text-decoration: underline; color: #fff; }
.footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* garson düğmesi örtmesin (varsayılan: güvenli taraf) */
@supports selector(:has(a)) {
    body:not(:has(.garson_container)) .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* ---------- 13. Garson çağır düğmesi ---------- */
.garson_container {
    margin: 0;
    bottom: calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;           /* tam genişlikli kapsayıcı altındaki bağlantıları örtmesin */
}
.garson_container a { pointer-events: auto; }
.btn-whatsapp-pulse { width: 60px !important; height: 60px; }

/* ---------- 14. Erişilebilirlik ---------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #0b57d0;
    outline-offset: 2px;
}
.bg-header a:focus-visible,
.footer a:focus-visible,
.section-subscribe a:focus-visible { outline-color: #fff; }
/* Atla bağlantısı (index.php): odaklanınca sabit üst çubuğun arkasında kalmasın */
.skip-link:focus,
.skip-link:active {
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 2000000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    overflow: visible;
    background: #fff;
    color: #212529;
    font-weight: 600;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 14px rgba(0, 0, 0, .4);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .4);
    outline: 3px solid #0b57d0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: .01ms !important;
        animation-duration: .01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .preloading { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-animation-delay: 2s !important; animation-delay: 2s !important; }
    .btn-whatsapp-pulse, .btn-whatsapp-pulse-border::before { -webkit-animation: none !important; animation: none !important; }
}

/* ---------- 15. 404 sayfası ---------- */
.error-404 {
    padding: 56px 24px 64px;
    text-align: center;
}
.error-404 .e404-kod {
    display: block;
    font-size: clamp(64px, 22vw, 112px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--renk1, #506c69);
}
.error-404 h1 { margin: 12px 0 8px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.error-404 p { margin: 0 auto 24px; max-width: 32em; color: #4a4a4a; }
.error-404 .theme-button { color: #fff; }
