/*
 * AAB v1.3.12 — Galeri araç çubuğu köprüsü.
 * Tek override katmanı: tam genişlik sticky header, v1.1.0 sıralama düğmeleri,
 * modern kategori menüleri ve responsive hizalama.
 */

/* Elementor konteynerleri sticky alanı kesmesin. */
.aab-toolbar-host,
.aab-toolbar-host.aoig-discovery,
.aab-toolbar-host.aoig-discovery.is-sticky{
  display:contents!important;
  position:static!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

/* Arama/kategori headerı viewport boyunca boydan boya; içerik kendi padding'inde. */
.aab-toolbar-host.aoig-discovery.is-sticky > .aab-toolbar-shell.aoig-discovery__sticky{
  position:sticky!important;
  top:var(--aab-sticky-top,96px)!important;
  z-index:70!important;
  box-sizing:border-box!important;
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:0!important;
  margin-bottom:24px!important;
  padding:14px clamp(18px,2.6vw,38px) 13px!important;
  overflow:visible!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  background:rgba(255,255,255,.94)!important;
  -webkit-backdrop-filter:blur(18px) saturate(160%)!important;
  backdrop-filter:blur(18px) saturate(160%)!important;
  box-shadow:0 8px 26px rgba(20,20,28,.055)!important;
}

.aab-toolbar-shell .aoig-discovery__topbar{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
}
.aab-toolbar-shell .aoig-search-box{
  flex:1 1 420px!important;
  min-width:240px!important;
  height:52px!important;
  padding:0 16px!important;
  border:1px solid rgba(18,18,22,.06)!important;
  border-radius:16px!important;
  background:#efefef!important;
  color:#111!important;
  box-shadow:none!important;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease!important;
}
.aab-toolbar-shell .aoig-search-box:focus-within{
  background:#fff!important;
  border-color:rgba(18,18,22,.12)!important;
  box-shadow:0 0 0 4px rgba(17,17,20,.035)!important;
  transform:translateY(-1px);
}
.aab-toolbar-shell .aoig-search-input,
.aab-toolbar-shell .aoig-search-input::placeholder{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  font-size:16px!important;
}
.aab-toolbar-shell .aab-search-status{flex:0 0 24px}
.aab-toolbar-shell .aoig-search-clear[hidden]{display:none!important}

/* Keşfet / Yeni / Trend / En Çok Okunan: v1.1.0 stili. */
.aab-toolbar-shell .aab-sort-controls.aoig-discovery__utility{
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  gap:4px!important;
  width:auto!important;
  padding:4px!important;
  margin:0!important;
  overflow:visible!important;
  border:1px solid rgba(18,18,22,.075)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 4px 16px rgba(20,20,28,.03)!important;
}
.aab-toolbar-shell .aab-sort-controls .aoig-utility-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:42px!important;
  height:42px!important;
  padding:0 13px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#77777f!important;
  box-shadow:none!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
.aab-toolbar-shell .aab-sort-controls .aoig-utility-button:hover{
  background:#f2f2f4!important;
  color:#111114!important;
  transform:translateY(-1px)!important;
}
.aab-toolbar-shell .aab-sort-controls .aoig-utility-button.is-active{
  background:var(--aab-accent,#111114)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(17,17,20,.16)!important;
}

/* Ana kategoriler: gölgesiz, modern ve hafif hareketli. */
.aab-toolbar-shell > .aoig-category-strip[data-aab-topic-main]{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  margin:10px 0 0!important;
  padding:8px 0 3px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:none!important;
  box-shadow:none!important;
  filter:none!important;
}
.aab-toolbar-shell > .aoig-category-strip[data-aab-topic-main]::-webkit-scrollbar{display:none!important}
.aab-toolbar-shell > .aoig-category-strip[data-aab-topic-main]::before,
.aab-toolbar-shell > .aoig-category-strip[data-aab-topic-main]::after{box-shadow:none!important;filter:none!important;background:none!important}

.aab-toolbar-shell .aoig-category-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  min-height:40px!important;
  height:40px!important;
  width:auto!important;
  padding:0 15px!important;
  border:1px solid rgba(18,18,22,.06)!important;
  border-radius:999px!important;
  background:rgba(244,244,246,.94)!important;
  color:#222!important;
  box-shadow:none!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),background .2s ease,border-color .2s ease,color .2s ease!important;
}
.aab-toolbar-shell .aoig-category-chip span{font:inherit!important;color:inherit!important}
.aab-toolbar-shell .aoig-category-chip:not(.is-active):hover,
.aab-toolbar-shell .aoig-category-chip:not(.is-active):focus-visible{
  background:#fff!important;
  color:#111!important;
  border-color:rgba(18,18,22,.13)!important;
  box-shadow:none!important;
  transform:translateY(-2px)!important;
}
.aab-toolbar-shell .aoig-category-chip.is-active{
  background:var(--aoig-primary,#e60023)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.aab-toolbar-shell .aoig-category-chip[data-aab-topic-parent]::after{
  content:"";
  width:6px;height:6px;
  margin:-3px 1px 0 2px;
  border-right:1.7px solid currentColor;
  border-bottom:1.7px solid currentColor;
  transform:rotate(45deg);
  transform-origin:center;
  transition:transform .2s ease,margin .2s ease;
}
.aab-toolbar-shell .aoig-category-chip[data-aab-topic-parent].is-active::after{
  margin-top:3px;
  transform:rotate(225deg);
}

/* Alt kategoriler artık yatay ikinci satır değil; animasyonlu açılır liste. */
.aab-toolbar-shell{position:relative!important}
.aab-toolbar-shell .aab-topic-children{
  position:absolute!important;
  z-index:90!important;
  top:calc(100% - 6px)!important;
  left:var(--aab-submenu-left,24px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:3px!important;
  width:var(--aab-submenu-width,320px)!important;
  max-width:calc(100vw - 32px)!important;
  margin:0!important;
  padding:8px!important;
  overflow:visible!important;
  border:1px solid rgba(18,18,22,.08)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.97)!important;
  -webkit-backdrop-filter:blur(22px) saturate(165%)!important;
  backdrop-filter:blur(22px) saturate(165%)!important;
  box-shadow:0 20px 55px rgba(20,20,28,.14)!important;
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px) scale(.985);
  transform-origin:top left;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.82,.2,1)!important;
}
.aab-toolbar-shell .aab-topic-children[hidden]{display:none!important}
.aab-toolbar-shell .aab-topic-children.is-open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.aab-toolbar-shell .aab-topic-children .aab-topic-child{
  justify-content:flex-start!important;
  width:100%!important;
  min-height:42px!important;
  height:auto!important;
  padding:0 13px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#2b2b30!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:650!important;
  text-align:left!important;
  transform:none!important;
}
.aab-toolbar-shell .aab-topic-children .aab-topic-child:hover{
  background:#f3f3f5!important;
  color:#111!important;
}
.aab-toolbar-shell .aab-topic-children .aab-topic-child.is-active{
  background:#111114!important;
  color:#fff!important;
}

/* Polylang ve popup aksiyonları. */
.aab-languages,
.aab-languages>span,
.aab-languages button,
.aab-direct-reader-card .aab-languages a,
.aab-modal-pill{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.aab-languages>span{font-size:16px!important;line-height:1!important}
.aab-languages button,
.aab-direct-reader-card .aab-languages a,
.aab-modal-pill{
  width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;
  padding-left:15px!important;padding-right:15px!important;font-size:16px!important;line-height:1!important;white-space:nowrap!important
}
.aab-modal-pill>span:not(.aab-action-count){font-size:16px!important;line-height:1!important}

/* Sağ öneriler soldaki ilk kartla aynı başlangıç çizgisinde. */
.aab-aside{padding-top:var(--aab-feed-head-offset,0px)!important}
.aab-aside-sticky{margin-top:0!important}

/* Kart ve popup başlık oranları. */
.aab-card h3 button,.aab-card h3 a{font-size:clamp(21px,1.75vw,27px)!important;line-height:1.1!important}
.aab-app[data-type="anlatim"] .aab-card h3 button,
.aab-app[data-type="anlatim"] .aab-card h3 a{font-size:clamp(23px,1.9vw,29px)!important}
.aab-modal-header h1,.aab-direct-reader-card .aab-modal-header h1{font-size:clamp(31px,4.1vw,52px)!important;line-height:1.02!important}

@media(max-width:1100px){
  .aab-toolbar-shell .aoig-discovery__topbar{flex-direction:column!important;align-items:stretch!important;gap:9px!important}
  .aab-toolbar-shell .aoig-search-box{flex:0 0 50px!important;width:100%!important;min-width:0!important;height:50px!important}
  .aab-toolbar-shell .aab-sort-controls.aoig-discovery__utility{
    width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important
  }
  .aab-toolbar-shell .aab-sort-controls.aoig-discovery__utility::-webkit-scrollbar{display:none!important}
}

@media(max-width:767px){
  .aab-toolbar-host.aoig-discovery.is-sticky > .aab-toolbar-shell.aoig-discovery__sticky{
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-bottom:16px!important;
    padding:11px 16px 10px!important;
  }
  .aab-toolbar-shell .aoig-search-box{height:46px!important;flex-basis:46px!important;border-radius:14px!important;padding:0 13px!important}
  .aab-toolbar-shell .aoig-search-input,.aab-toolbar-shell .aoig-search-input::placeholder{font-size:15px!important}
  .aab-toolbar-shell .aab-sort-controls .aoig-utility-button{min-height:40px!important;height:40px!important;padding:0 12px!important;font-size:12px!important}
  .aab-toolbar-shell > .aoig-category-strip[data-aab-topic-main]{margin-top:8px!important;padding:6px 0 2px!important;gap:7px!important}
  .aab-toolbar-shell .aoig-category-chip{height:38px!important;min-height:38px!important;padding:0 13px!important;font-size:14px!important}
  .aab-toolbar-shell .aab-topic-children{top:calc(100% - 4px)!important;max-width:calc(100vw - 24px)!important;border-radius:16px!important}
  .aab-card h3 button,.aab-card h3 a{font-size:21px!important}
  .aab-app[data-type="anlatim"] .aab-card h3 button,.aab-app[data-type="anlatim"] .aab-card h3 a{font-size:23px!important}
  .aab-modal-header h1,.aab-direct-reader-card .aab-modal-header h1{font-size:31px!important}
  .aab-languages>span,.aab-languages button,.aab-direct-reader-card .aab-languages a,.aab-modal-pill,.aab-modal-pill>span:not(.aab-action-count){font-size:14px!important}
}

/* Anlatımlar sayfasında metin alanı kenarlardan daha rahat nefes alır. */
.aab-app[data-type="anlatim"] .aab-card-body{padding:29px 30px 24px!important}
.aab-app[data-type="anlatim"] .aab-card-actions{padding-left:30px!important;padding-right:30px!important}

@media(max-width:900px){
  .aab-app[data-type="anlatim"] .aab-card-body{padding:25px 24px 21px!important}
  .aab-app[data-type="anlatim"] .aab-card-actions{padding-left:24px!important;padding-right:24px!important}
}
@media(max-width:600px){
  .aab-app{padding-left:18px!important;padding-right:18px!important}
  .aab-app[data-type="anlatim"] .aab-card-body{padding:23px 21px 20px!important}
  .aab-app[data-type="anlatim"] .aab-card-actions{padding-left:21px!important;padding-right:21px!important}
}


/* v1.3.11 — Görsel kart yüksekliğini belirlemez; metin tarafının oluşturduğu yüksekliği doldurur. */
@media(min-width:901px){
  .aab-layout-editorial .aab-card--anlatim.has-media{
    align-items:stretch!important;
  }
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-media{
    position:relative!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-self:stretch!important;
    overflow:hidden!important;
  }
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-media img{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-body,
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-actions{
    align-self:start!important;
  }
}

/* Tablet/mobilde görsel metnin üstünde ayrı bir satırdır; kontrollü bir kapak yüksekliği kullanılır. */
@media(max-width:900px){
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-media{
    position:relative!important;
    height:250px!important;
    min-height:0!important;
    max-height:250px!important;
    overflow:hidden!important;
  }
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-media img{
    position:static!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
}
@media(max-width:600px){
  .aab-layout-editorial .aab-card--anlatim.has-media .aab-card-media{
    height:220px!important;
    max-height:220px!important;
  }
}
