/* =====================================================================
   cevatbayrak.com — teknik SEO / mobil / erisilebilirlik duzeltmeleri
   (26.11.2026) Tum temaya ortak, kucuk ve bagimsiz kurallar.
   ===================================================================== */

/* ---- Icerik: yatay tasma, tablolar, gorseller ---- */
/* body'ye "hidden" verilmez: ust menunun (sticky header) sabit kalmasini bozar */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }
.post-detail img, .cat-content img, #content img { max-width: 100%; height: auto; }
.post-detail table, .cat-content table {
  display: block; width: 100%; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse;
}
.post-detail iframe, .cat-content iframe { max-width: 100%; }
.post-detail pre { white-space: pre-wrap; word-break: break-word; }
/* width/height sonradan eklenen icerik gorselleri oranini korur */
img[data-cb-dim] { max-width: 100%; height: auto; }
/* Uzun adres/kelimeler (orn. https://...) dar ekranda kesilmesin, satira sigmazsa bolunsun */
#cbMain { overflow-wrap: break-word; }

/* Tablet (768-1199px): footer 4 yerine 2 sutun; iletisim satirlari (e-posta/telefon) dar sutuna sigmiyordu */
@media (min-width: 768px) and (max-width: 1199.98px) {
  #cbxFooter .cbx-footer__grid > .cbx-footer__col { flex: 0 0 50%; max-width: 50%; }
}

/* ---- Mobil dokunma alanlari (en az ~24px) ---- */
#cbxFooter .cbx-footer__legal a { display: inline-block; padding: 5px 2px; }
.cb-editor-card__info .social-icons a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }

/* Sabit header altinda kalmasin: icindekiler/anchor hedefleri */
.post-detail h2[id], .post-detail h3[id], .post-detail h4[id],
.post-detail h2, .post-detail h3, [id^="toc-"], .contents-toc { scroll-margin-top: 120px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Erisilebilirlik: klavye odagi her yerde gorunur ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #3030AE; outline-offset: 2px;
}
.cb-sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.cb-skip { position: absolute; left: 12px; top: -60px; z-index: 1000000; padding: 10px 14px; border-radius: 10px; background: #0D0E97; color: #fff !important; font-weight: 800; text-decoration: none; }
.cb-skip:focus { top: 12px; }

/* ---- Menu: aktif sayfa vurgusu (masaustu + mobil) ---- */
#cbyHdr .cby-nav li.active > a,
#cbyHdr .cby-nav a.active,
#cbyHdr .cby-nav a[aria-current="page"],
#cbyHdr .cby-mnav__list li.active > a,
#cbyHdr .cby-mnav__list a[aria-current="page"] {
  background: rgba(13,14,151,.10) !important;
  border-color: rgba(13,14,151,.24) !important;
  color: #0B0C88 !important;
}
#cbyHdr .cby-nav li.is-parent-active > a { color: #0B0C88 !important; border-color: rgba(13,14,151,.16) !important; }
/* Acilir menu klavye ile de acilsin */
#cbyHdr .cby-nav li:focus-within > ul,
#cbyHdr .cby-nav li:focus-within > .th-menudropdown { display: block !important; }

/* ---- Header arama ---- */
#cbyHdr .cby-hdr__search {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid rgba(15,18,32,.10); color: #0D0E97; cursor: pointer; padding: 0;
  box-shadow: 0 12px 26px rgba(15,18,32,.08);
}
#cbyHdr .cby-hdr__search svg { width: 20px; height: 20px; display: block; }
#cbyHdr .cby-srch { margin-top: 10px; }
#cbyHdr .cby-srch[hidden] { display: none !important; }
#cbyHdr .cby-srch__form {
  display: flex; gap: 8px; padding: 10px; background: #fff; border: 1px solid rgba(15,18,32,.10);
  border-radius: 22px; box-shadow: 0 10px 26px rgba(15,18,32,.08);
}
#cbyHdr .cby-srch__input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(13,14,151,.22); font-size: 16px; color: #1F2937; background: #fff;
}
#cbyHdr .cby-srch__btn {
  height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #0D0E97, #3030AE); color: #fff; font: 800 14px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* Menu acikken buton "X" olur (ust ve alt cizgi ortada birlesir) */
#cbyHdr .cby-hdr__burger.is-open span:nth-child(1),
#cbyHdr .cby-hdr__burger.is-open span:nth-child(3) { top: 21px !important; }

/* ---- Mobil menu: uzun listede kaydirilabilir, sosyal ikonlar gorunur ---- */
/* "html body" onceligi sart: header icindeki sonraki stil "overflow:hidden" ile kaydirmayi kapatiyordu */
html body #cbyHdr .cby-mnav {
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px);
  overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
#cbyHdr .cby-mnav .social-icons {
  display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px; margin: 14px 0 6px; padding: 12px 0 4px; border-top: 1px solid rgba(15,18,32,.08);
}
/* Ikonlar menunun altinda sabit: kisa ekranda da kaydirmadan gorunur */
#cbyHdr .cby-mnav .social-icons { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 8px 0 0; padding: 10px 0; }
#cbyHdr .cby-mnav .social-icons > div { display: flex; }
/* "Incele" kartlarinin kapaklari: gorsel kendi oraninda gosterilir, kesilmez */
.cb-blog-card .cb-blog-media { aspect-ratio: auto !important; }
.cb-blog-card .cb-blog-media img { display: block; width: 100%; height: auto !important; aspect-ratio: 360 / 264; object-fit: cover; }
#cbyHdr .cby-mnav .social-icons a {
  display: inline-grid !important; place-items: center; width: 46px; height: 46px; padding: 0 !important;
  border: 1px solid rgba(15,18,32,.08) !important; border-radius: 14px !important; background: #fff !important;
}
#cbyHdr .cby-mnav .social-icons svg { width: 30px !important; height: 30px !important; margin: 0 !important; }
#cbyHdr .cby-mnav__title { margin: 4px 0 0; font: 800 12px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial; color: #6B7280; letter-spacing: .3px; text-transform: uppercase; }
html body.cb-menu-open a#cbxWpDock.cbx-wp, body.cb-menu-open .cb-mbar, body.cb-menu-open .cb-totop { display: none !important; }

/* ---- Mobilde sabit CTA cubugu: Hemen Ara / Randevu Al / WhatsApp ---- */
.cb-mbar { display: none; }
@media (max-width: 991.98px) {
  .cb-mbar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999990;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid rgba(13,14,151,.14);
    box-shadow: 0 -10px 30px rgba(15,18,32,.10);
  }
  .cb-mbar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; border-radius: 14px; text-decoration: none !important;
    font: 800 12.5px/1.1 system-ui,-apple-system,Segoe UI,Roboto,Arial; letter-spacing: .1px;
  }
  .cb-mbar__btn svg { width: 20px; height: 20px; display: block; }
  .cb-mbar__btn--call { background: #fff; color: #0B0C88 !important; border: 1px solid rgba(13,14,151,.25); }
  .cb-mbar__btn--appt { background: linear-gradient(135deg, #0D0E97, #3030AE); color: #fff !important; }
  .cb-mbar__btn--wa { background: #0F7A40; color: #fff !important; }
  /* Icerik ve footer cubugun altinda kalmasin */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* Mobilde WhatsApp ayni islevi gordugu icin yuzen balon cubuga tasindi */
  html body a#cbxWpDock.cbx-wp { display: none !important; }
  #cbxFooter .cbx-footer__agency { padding-bottom: 0 !important; }
}

/* ---- Yukari Cik butonu (CTA cubugu ve WhatsApp ile cakismaz) ---- */
.cb-totop {
  position: fixed; right: 18px; bottom: 165px; z-index: 999980;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(13,14,151,.18);
  background: #fff; color: #0D0E97; display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 12px 26px rgba(15,18,32,.14);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cb-totop svg { width: 22px; height: 22px; display: block; }
.cb-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 991.98px) {
  .cb-totop { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}
/* Yatay tutulan telefon (alcak ekran): sabit alanlar icerigi kapatmasin diye ust menu kayar, alt cubuk incelir */
@media (max-width: 991.98px) and (max-height: 500px) {
  html body #cbyHdr.cby-hdr { position: relative !important; }
  .cb-mbar { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .cb-mbar__btn { flex-direction: row; gap: 8px; min-height: 44px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .cb-totop { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---- Sayfalama (kategori / arama) ---- */
.pagination-box--visible { display: flex !important; justify-content: center; margin: 26px 0 8px; }
.pagination-box--visible .pagination { display: flex !important; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination-box--visible .page-link, .pagination-box--visible .page-item > span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(13,14,151,.18); background: #fff; color: #0B0C88; font-weight: 800; text-decoration: none;
}
.pagination-box--visible .page-item.active .page-link, .pagination-box--visible .page-item.active > span {
  background: #0D0E97; border-color: #0D0E97; color: #fff;
}
.pagination-box--visible .page-item.disabled .page-link, .pagination-box--visible .page-item.disabled > span { opacity: .45; }
.cb-loadmore-status { text-align: center; color: #4B5563; font-size: 14px; margin: 12px 0 0; min-height: 20px; }

/* ---- Iletisim/form: KVKK metni ve onay kutusu ---- */
.cb-kvkk { margin: 6px 0 14px; font-size: 14px; line-height: 1.6; color: #374151; }
.cb-kvkk a { color: #0B0C88; font-weight: 700; text-decoration: underline; }
.cb-kvkk__check { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; cursor: pointer; }
.cb-kvkk__check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: #0D0E97; }
.form-group .error, .form-group span[clas="error"] { display: block; color: #B42318; font-size: 13px; margin-top: 4px; }

/* ---- Footer yasal linkler ---- */
#cbxFooter .cbx-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
#cbxFooter .cbx-footer__legal a { color: #4B5563 !important; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
@media (max-width: 767.98px) { #cbxFooter .cbx-footer__legal { justify-content: center; } }

/* ---- Kontrast (WCAG AA): soluk gri metinler bir ton koyulastirildi ---- */
.cb-blog-excerpt, .cbx-hero__chip { color: #4B5563 !important; }
#cbxFooter .cbx-footer__about, #cbxFooter .cbx-footer__copy p, #cbxFooter .cbx-footer__noteTx { color: #4B5563 !important; }
.article-top-dates { color: #4B5563 !important; }
