/* Yayınlar arşivi: "B · Süzgeç paneli" (kullanıcı seçti, 2026-11-13; prototip yayinlar-arastirma-secenekler.html), sonuçlarda solda kare görsel.
   Şablonlar: archive.html, home.html (/yayinlar/), search.html → parts/yayin-panel.html + parts/yayin-liste.html; yazı: single.html.
   Davranış: assets/js/sayfalar/yayin-arsiv.js (etkin süzgeç, sıralama, etiketler, vurgulama, içindekiler). */

/* === sayfa başı === */
.yp-sayfa { padding-block: 48px 112px; }
.yp-bas > * { margin: 0; }
.yp-yol { font-size: 15px; color: var(--wp--preset--color--muted); }
.yp-yol a { color: inherit; text-decoration: none; }
.yp-yol a:hover { color: var(--wp--preset--color--primary); }
.yp-yol span { margin: 0 6px; }
.yp-baslik { margin-top: 12px !important; font-size: 48px; font-weight: 500; line-height: 1.05; letter-spacing: -.03em; color: var(--wp--preset--color--primary); }
.yp-aciklama, .yp-aciklama p { margin: 10px 0 0; max-width: 60ch; font-size: 18px; color: var(--wp--preset--color--muted); }

/* === iki sütun: panel | sonuçlar === */
.yp-duzen.wp-block-group { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px !important; }
.yp-duzen > * { margin: 0 !important; }
.yp-panel-kap { position: sticky; top: calc(var(--mb-top, 0px) + var(--mb-header-h, 40px) + 24px); }
.yp-panel.wp-block-group { display: grid; gap: 28px; }
.yp-panel > * { margin: 0 !important; }

/* arama */
.yp-ara .wp-block-search__inside-wrapper { padding: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; }
.yp-ara .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgb(46 74 158 / .15); }
.yp-ara .wp-block-search__input { height: 48px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 16px; }
.yp-ara .wp-block-search__input:focus { outline: none; }
.yp-ara .wp-block-search__button { margin: 0; padding: 0 14px; background: none; color: var(--wp--preset--color--muted); }
.yp-ara .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }

/* süzgeç grupları */
.yp-grup > * { margin: 0; }
.yp-grup__baslik { padding-bottom: 10px; margin-bottom: 6px !important; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--wp--preset--color--primary); }
.yp-secim a, .yp-yillar li a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--wp--preset--color--ink); text-decoration: none; }
.yp-secim a::before, .yp-yillar li a::before { content: ""; flex: none; width: 16px; height: 16px; border: 1.5px solid #B9BFCB; border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
.yp-secim a:hover::before, .yp-yillar li a:hover::before { border-color: var(--wp--preset--color--primary); }
.yp-secim a[aria-current]::before, .yp-yillar li a[aria-current]::before { border-color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 9px var(--wp--preset--color--primary); }
.yp-secim a[aria-current], .yp-yillar li a[aria-current] { font-weight: 600; color: var(--wp--preset--color--primary); }
.yp-secim .sayi { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--wp--preset--color--muted); }
.yp-yillar { list-style: none; margin: 0; padding: 0; }
.yp-yillar li { display: flex; align-items: center; margin: 0; font-size: 13px; color: var(--wp--preset--color--muted); }
.yp-yillar li a { flex: 1; }

/* === sonuçlar === */
.yp-sorgu > * { margin-block: 0; }
.yp-ust.wp-block-group { gap: 12px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--wp--preset--color--primary); }
.yp-ust > * { margin: 0; }
.yp-sayac { font-size: 15px; color: var(--wp--preset--color--muted); }
.yp-araclar.wp-block-group { gap: 10px; }
.yp-araclar select, .yp-suzgec-ac { height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235B6675' stroke-width='1.5'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; appearance: none; font: inherit; font-size: 15px; color: var(--wp--preset--color--ink); cursor: pointer; }
.yp-suzgec-ac { display: none; padding-right: 14px; background-image: none; font-weight: 500; }
.yp-etiketler.wp-block-group { gap: 8px; margin-top: 14px !important; }
.yp-etiketler:empty { display: none; }
.yp-etiket { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-size: 14px; color: var(--wp--preset--color--ink); text-decoration: none; }
.yp-etiket::after { content: "×"; color: var(--wp--preset--color--muted); }
.yp-etiket:hover { border-color: var(--wp--preset--color--primary); }

.yp-sonuc { list-style: none; margin: 0; padding: 0; }
.yp-sonuc > li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.yp-oge.wp-block-group { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 26px; }
.yp-oge:not(:has(.yp-oge__gorsel)) { grid-template-columns: minmax(0, 1fr); }
.yp-oge > *, .yp-oge__metin > * { margin: 0; }
.yp-oge__gorsel { overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: var(--wp--preset--color--surface); }
.yp-oge__gorsel img { object-position: 50% 20%; transition: scale .8s var(--ease-expo, cubic-bezier(.16,1,.3,1)); }
.yp-oge:hover .yp-oge__gorsel img { scale: 1.05; }
/* shortcut: logo görseli dosya adından tanınıyor (haberler.css ile aynı kural); dernek gerçek görsel girince gerekmez. */
.yp-oge__gorsel img[src*="logo"] { object-fit: contain !important; padding: 16px; background: #fff; }
.yp-meta.wp-block-group { gap: 6px 14px; align-items: center; font-size: 14px; color: var(--wp--preset--color--muted); }
.yp-meta > * { margin: 0; }
.yp-tur a { font-weight: 600; color: var(--wp--preset--color--accent); text-decoration: none; }
.yp-tur a[href*="/duyurular/"] { color: var(--wp--preset--color--signal); }
.yp-tur a[href*="/makaleler/"] { color: var(--wp--preset--color--primary); }
.yp-oge__baslik { margin-top: 8px !important; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.yp-oge__baslik a { color: var(--wp--preset--color--primary); text-decoration: none; }
.yp-oge__baslik a::after { content: ""; position: absolute; inset: 0; }
.yp-oge:hover .yp-oge__baslik a { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 4px; }
.yp-oge__ozet { margin-top: 8px !important; }
.yp-oge__ozet p { margin: 0; max-width: 75ch; font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yp-alt.wp-block-group { gap: 4px 0; margin-top: 10px !important; font-size: 14px; color: var(--wp--preset--color--muted); }
.yp-alt > * { margin: 0; }
.yp-alt > * + *::before { content: "·"; margin: 0 8px; }
.yp-sonuc mark, .yp-ara-vurgu { background: #FFF1B8; color: inherit; border-radius: 2px; padding: 0 1px; }
.yp-bos { padding: 48px 0; text-align: center; color: var(--wp--preset--color--muted); }

.yp-sayfalama { margin-top: 40px !important; gap: 6px; }
.yp-sayfalama a, .yp-sayfalama .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: none; }
.yp-sayfalama .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.yp-sayfalama a:hover { border-color: var(--wp--preset--color--primary); }

/* === yazı detayı (single.html): metin | içindekiler, araçlar, ilgili === */
.yp-meta--yazi.wp-block-group { margin-top: 16px !important; font-size: 15px; }
.yp-meta--yazi > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 14px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.yp-yazi-sayfa { padding-block: 40px 112px; }
.yp-yazi-duzen.wp-block-group { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 72px; justify-content: space-between; align-items: start; }
.yp-yazi-duzen > * { margin: 0 !important; }
.hb-yazi > .hb-giris { margin-bottom: 28px; }
.hb-yazi > .hb-giris p { font-size: 20px; line-height: 1.55; }
.yp-yazi-yan.wp-block-group { position: sticky; top: calc(var(--mb-top, 0px) + var(--mb-header-h, 40px) + 24px); display: grid; gap: 36px; }
.yp-yazi-yan > * { margin: 0 !important; }
.yp-yan-baslik { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.yp-toc:not(:has(a)) { display: none; }
.yp-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--wp--preset--color--line); font-size: 15px; line-height: 1.4; color: var(--wp--preset--color--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.yp-toc a:hover { color: var(--wp--preset--color--primary); }
.yp-toc a.simdi { border-color: var(--wp--preset--color--primary); font-weight: 600; color: var(--wp--preset--color--primary); }
.yp-yazi-arac.wp-block-group { gap: 8px; }
.yp-yazi-arac:empty { display: none; }
.yp-yazi-arac button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--ink); cursor: pointer; }
.yp-yazi-arac button:hover { border-color: var(--wp--preset--color--primary); }
.yp-ilgili > .yp-yan-baslik { padding-bottom: 12px; border-bottom: 2px solid var(--wp--preset--color--primary); font-size: 20px; color: var(--wp--preset--color--primary); }
.yp-ilgili__liste { list-style: none; margin: 0; padding: 0; }
.yp-ilgili__liste > li { position: relative; margin: 0; padding-block: 14px; border-bottom: 1px solid var(--wp--preset--color--line); }
.yp-ilgili__baslik { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.yp-ilgili__baslik a { color: var(--wp--preset--color--primary); text-decoration: none; }
.yp-ilgili__baslik a::after { content: ""; position: absolute; inset: 0; }
.yp-ilgili__liste > li:hover .yp-ilgili__baslik a { color: var(--wp--preset--color--accent); }
.yp-ilgili__tarih { margin: 4px 0 0; font-size: 13px; color: var(--wp--preset--color--muted); }
.yp-ilgili__tumu { margin-top: 14px !important; font-size: 15px; font-weight: 600; }
.yp-ilgili__tumu a { color: var(--wp--preset--color--accent); text-decoration: none; }

@media print {
	.site-header, .site-footer, .yp-yazi-yan, .hb-komsu, .yp-yol, .hb-yol { display: none !important; }
	.yp-yazi-duzen.wp-block-group { display: block; }
}

/* === duyarlı === */
@media (max-width: 1000px) {
	.yp-duzen.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.yp-panel-kap { position: static; order: 1; display: none; padding: 20px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; }
	.yp-panel-kap.acik { display: block; }
	.yp-sonuclar { order: 2; }
	.yp-duzen > .yp-panel-kap { order: 0; }
	.yp-suzgec-ac { display: inline-flex; align-items: center; }
	.yp-yazi-duzen.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.yp-yazi-yan.wp-block-group { position: static; }
	.yp-toc { display: none; }
}
@media (max-width: 781px) {
	.yp-sayfa { padding-block: 32px 72px; }
	.yp-baslik { font-size: 34px; }
	.yp-aciklama, .yp-aciklama p { font-size: 16px; }
	.yp-duzen.wp-block-group { margin-top: 24px !important; }
	.yp-oge.wp-block-group { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding-block: 20px; }
	.yp-oge__baslik { font-size: 18px; }
	.yp-oge__ozet p { -webkit-line-clamp: 2; font-size: 15px; }
	.yp-yazi-sayfa { padding-block: 28px 72px; }
}
.yp-yillar .sayi { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--wp--preset--color--muted); }
/* İlgili yayınlar yazının altında (yan sütun ekrana sığsın, sabit kalabilsin diye taşındı) */
.hb-yazi > .yp-ilgili { margin-top: 56px; }
.hb-yazi .yp-ilgili__liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 781px) { .hb-yazi .yp-ilgili__liste { grid-template-columns: 1fr; } }
