/*
Theme Name: Beyoğlu Postası
Theme URI: https://beyoglupostasi.com.tr
Author: Banliyö Digital
Description: Beyoğlu Postası için modern bir kültür sanat ve haber teması: mürekkep siyahı, posta sarısı, kırık beyaz. Archivo başlıklar, PT Serif metin; ortada yazılı gazete başlığı, siyah menü şeridi, “Son dakika” kayan şeridi, sağda numaralı kumanda listesiyle 5 haberlik banner, son haberler ve içeriği olan her kategori için iki düzenli bölümler. Yazar bilgisi görünmez; sosyal medya ve kişi kartı desteği.
Version: 1.1.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beyoglupostasi
*/

/* Ortak yapı assets/css/base.css içinde; burada yalnızca Beyoğlu Postası'nın görünümü var. */

:root {
	--al-ink: #15171C;
	--al-text: #2B2E35;
	--al-muted: #6A6E78;
	--al-line: #E2DFD7;
	--al-soft: #EEEBE3;
	--al-paper: #FFFFFF;
	--al-bg: #F7F5F0;
	--bp-yellow: #F5C518;
	--bp-yellow-deep: #D9A900;
	--bp-tint: #EFECE4;
	--al-accent: var(--al-ink);
	--al-footer-bg: #15171C;
	--al-footer-text: rgba(247, 245, 240, .72);
	--al-header-bg: var(--al-bg);
	--al-radius: 4px;
	--al-display: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--al-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
	--al-sans: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

body { font-family: var(--al-serif); font-size: 17.5px; }
h1, h2, h3, h4 { font-family: var(--al-display); font-weight: 750; letter-spacing: -.015em; line-height: 1.16; font-stretch: 92%; }
::selection { background: var(--bp-yellow); color: var(--al-ink); }

/* Etiketler: sarı zemin, siyah yazı */
.al-kicker { display: inline-flex; align-self: flex-start; padding: 4px 8px 3px; background: var(--bp-yellow); color: var(--al-ink); font-family: var(--al-sans); font-size: 11px; font-weight: 800; letter-spacing: .08em; border-radius: 2px; }
a.al-kicker:hover { text-decoration: none; background: var(--al-ink); color: var(--bp-yellow); }
.al-meta { font-family: var(--al-sans); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--al-muted); }
.al-btn { font-family: var(--al-sans); font-weight: 700; letter-spacing: .04em; background: var(--al-ink); border-color: var(--al-ink); color: #fff; border-radius: 2px; }
.al-btn:hover { background: var(--bp-yellow); border-color: var(--bp-yellow); color: var(--al-ink); }

/* Header */
.bp-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--al-bg); }
.bp-bar { background: var(--al-ink); color: rgba(247, 245, 240, .78); font-family: var(--al-sans); font-size: 12px; font-weight: 500; }
.bp-bar .al-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.bp-bar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bp-date { text-transform: capitalize; white-space: nowrap; }
.bp-bar__sep { width: 5px; height: 5px; background: var(--bp-yellow); flex: none; }
.bp-bar .al-tagline { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-social { display: flex; align-items: center; gap: 2px; }
.bp-social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: inherit; }
.bp-social a:hover { color: var(--bp-yellow); }
/* Ortada yazılı başlık, iki yanda Menü / Ara */
.bp-mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 22px; transition: padding .25s; }
.bp-mastbtn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--al-ink); font-family: var(--al-sans); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bp-mastbtn--right { justify-self: end; }
.bp-mastbtn:hover { color: var(--bp-yellow-deep); }
.bp-brand { display: flex; justify-content: center; min-width: 0; }
.bp-wordmark { display: inline-flex; align-items: baseline; gap: .26em; color: var(--al-ink); font-family: var(--al-display); font-size: clamp(42px, 5vw, 72px); line-height: 1.1; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; transition: font-size .25s; }
.bp-wordmark:hover { text-decoration: none; color: var(--al-ink); }
.bp-wordmark b { font-weight: 900; font-stretch: 80%; }
.bp-wordmark span { font-weight: 300; font-stretch: 80%; }
.bp-wordmark i { align-self: baseline; display: inline-block; width: .19em; height: .19em; margin-left: -.18em; background: var(--bp-yellow); }

/* Menü: açık zemin, üstte ince altta kalın çizgi; tek satırda tüm genişliğe yayılır,
   aralarında küçük sarı kareler; açık kategori fosforlu kalemle çizilmiş gibi sarı vurgulu */
.bp-navbar { background: transparent; }
.bp-navbar .al-wrap { border-top: 1px solid var(--al-ink); border-bottom: 3px solid var(--al-ink); }
.bp-nav { border: 0; }
.bp-nav ul { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 0; }
.bp-nav li { position: relative; display: flex; justify-content: center; align-items: center; flex: 1 1 auto; min-width: 0; padding: 0 clamp(5px, .8vw, 12px); }
.bp-nav li + li::before { content: ""; position: absolute; left: -2.5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--bp-yellow); }
.bp-nav a { position: relative; z-index: 0; color: var(--al-ink); font-family: var(--al-sans); font-size: clamp(11px, .95vw, 13.5px); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; padding: 14px 2px 13px; transition: color .2s; }
.bp-nav a::after { left: -3px; right: -3px; top: 50%; bottom: auto; height: .62em; z-index: -1; background: var(--bp-yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.bp-nav a:hover::after, .bp-nav a[aria-current="page"]::after { transform: scaleX(1); }
.bp-nav a:hover, .bp-nav a[aria-current="page"] { color: var(--al-ink); background: none; }

.al-header.is-compact .bp-bar, .al-header.is-compact .bp-ticker { display: none; }
.al-header.is-compact .bp-mast { padding-top: 8px; padding-bottom: 8px; }
.al-header.is-compact .bp-wordmark { font-size: 34px; letter-spacing: -.01em; }
.al-header.is-compact .bp-nav a { padding: 10px 2px 9px; }
.al-progress span { background: var(--bp-yellow); height: 4px; }

/* Son dakika şeridi */
.bp-ticker { background: var(--al-paper); border-bottom: 1px solid var(--al-line); font-family: var(--al-sans); }
.bp-ticker__in { display: flex; align-items: center; gap: 16px; min-height: 42px; }
.bp-ticker__label { flex: none; padding: 5px 10px 4px; background: var(--bp-yellow); color: var(--al-ink); font-size: 11.5px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bp-ticker__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.bp-ticker__track { display: flex; width: max-content; animation: bp-ticker 60s linear infinite; }
.bp-ticker:hover .bp-ticker__track, .bp-ticker:focus-within .bp-ticker__track { animation-play-state: paused; }
.bp-ticker__list { display: flex; flex: none; }
.bp-ticker__list a { display: inline-flex; align-items: center; gap: 8px; padding: 0 28px 0 0; font-size: 14px; font-weight: 600; color: var(--al-ink); white-space: nowrap; }
.bp-ticker__list a::after { content: ""; width: 5px; height: 5px; margin-left: 20px; background: var(--al-line); }
.bp-ticker__list a b { font-weight: 800; color: var(--bp-yellow-deep); }
.bp-ticker__list a:hover { text-decoration: underline; text-decoration-color: var(--bp-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@keyframes bp-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bp-ticker__track { animation: none; } .bp-ticker__viewport { overflow-x: auto; } }

/* Yan panel */
.al-drawer { background: var(--al-ink); }
.al-drawer__nav a { font-family: var(--al-display); font-weight: 800; font-stretch: 85%; letter-spacing: -.01em; }
.al-drawer__nav a:hover { color: var(--bp-yellow); }

/* Banner: solda büyük slayt, sağda numaralı kumanda listesi */
.bp-banner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; margin-top: 28px; background: var(--al-ink); }
.bp-banner__stage { display: grid; min-width: 0; }
.bp-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; color: #fff; }
.bp-slide.is-active { opacity: 1; visibility: visible; }
.bp-slide .al-img { aspect-ratio: 16 / 10; height: 100%; border-radius: 0; }
.bp-slide .al-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 23, 28, 0) 38%, rgba(21, 23, 28, .88) 100%); pointer-events: none; }
.bp-slide__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 32px 36px; pointer-events: none; }
.bp-slide__body a { pointer-events: auto; }
.bp-slide__title { color: #fff; font-size: clamp(28px, 3vw, 44px); line-height: 1.14; max-width: 22em; }
.bp-slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--bp-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.bp-slide .al-meta { color: rgba(255, 255, 255, .72); }
.bp-banner__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: none; }
.bp-banner__list li { flex: 1; display: flex; border-top: 1px solid rgba(255, 255, 255, .1); }
.bp-banner__list li:first-child { border-top: 0; }
.bp-banner__item { position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 22px; text-align: left; background: transparent; border: 0; color: rgba(255, 255, 255, .62); cursor: pointer; transition: background .2s, color .2s; font: inherit; }
.bp-banner__item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.bp-banner__item.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.bp-banner__num { flex: none; font-family: var(--al-display); font-weight: 850; font-stretch: 80%; font-size: 26px; line-height: 1; color: rgba(255, 255, 255, .28); transition: color .2s; }
.bp-banner__item.is-active .bp-banner__num { color: var(--bp-yellow); }
.bp-banner__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bp-banner__cat { font-family: var(--al-sans); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bp-yellow); }
.bp-banner__title { font-family: var(--al-display); font-weight: 650; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-banner__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--bp-yellow); }
.bp-banner[data-al-slider] .bp-banner__item.is-active .bp-banner__bar { animation: bp-progress 6s linear forwards; }
.bp-banner:hover .bp-banner__bar, .bp-banner:focus-within .bp-banner__bar { animation-play-state: paused; }
@keyframes bp-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .bp-banner__bar { display: none; } }

/* Bölüm başlığı: sarı kare + başlık + ince çizgi */
.bp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.bp-head::before { content: ""; width: 14px; height: 14px; background: var(--bp-yellow); flex: none; }
.bp-head h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
.bp-head::after { content: ""; flex: 1; height: 1px; background: var(--al-ink); order: 2; }
.bp-head__more { order: 3; flex: none; font-family: var(--al-sans); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--al-ink); }
.bp-head__more:hover { color: var(--bp-yellow-deep); }

/* Kartlar */
.al-card__title { font-size: 22px; line-height: 1.22; }
.al-card__title a { background-image: none; }
.al-card__title a:hover { text-decoration: underline; text-decoration-color: var(--bp-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.al-card__excerpt { font-size: 16px; line-height: 1.6; color: var(--al-text); }
.al-img { background: var(--al-soft); }
.al-card--row .al-card__title { font-size: 18px; }
.bp-cards { gap: 40px 28px; }

/* Kategori bölümleri */
.bp-catsec--tint { margin-top: 64px; padding: 56px 0 60px; background: var(--bp-tint); }
.bp-catsec--tint + .al-sec { padding-top: 64px; }
.bp-block { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.bp-block__list { align-content: start; }
.bp-block__lead .al-card__title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.16; }
.bp-block__list .al-card:first-child { border-top: 0; padding-top: 0; }
.bp-block__list .al-card::before { font-family: var(--al-display); font-weight: 850; font-stretch: 80%; font-size: 34px; color: var(--bp-yellow-deep); }
.bp-block__list .al-card__title { font-size: 20px; }
.bp-quad { gap: 28px 22px; }
.bp-quad .al-card__title { font-size: 19px; }

.bp-more { gap: 0 44px; }
.bp-more .al-card { padding: 16px 0; border-top: 1px solid var(--al-line); }

/* Yazı sayfası */
.al-article { padding-top: 44px; }
.al-article__head { max-width: 900px; gap: 16px; }
.al-article__title { font-size: clamp(34px, 4vw, 54px); line-height: 1.14; }
.al-article__deck { font-family: var(--al-serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--al-text); }
.al-article__rule { width: 56px; height: 5px; background: var(--bp-yellow); }
.sb-featured { max-width: 1040px; margin: 34px auto 0; }
.sb-featured img { width: 100%; height: auto; border-radius: var(--al-radius); }
.sb-featured figcaption { margin-top: 10px; font-family: var(--al-sans); font-size: 12.5px; color: var(--al-muted); }
.al-prose { font-size: 19.5px; line-height: 1.72; }
.al-prose > p:first-of-type::first-letter { all: unset; }
.al-prose h2 { font-size: 30px; line-height: 1.2; }
.al-prose h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 12px; background: var(--bp-yellow); vertical-align: .12em; }
.al-prose h3 { font-size: 24px; line-height: 1.24; }
.al-prose a { color: var(--al-ink); text-decoration-color: var(--bp-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.al-prose a:hover { background: var(--bp-yellow); }
.al-prose blockquote, .al-prose .wp-block-quote { font-family: var(--al-display); font-style: normal; font-weight: 650; font-size: 28px; line-height: 1.3; color: var(--al-ink); text-align: left; border: 0; border-left: 6px solid var(--bp-yellow); padding: 4px 0 4px 22px; }
.al-prose blockquote::before { display: none; }
.al-prose blockquote cite { font-family: var(--al-sans); }
.al-endmark { color: var(--bp-yellow-deep); }
.al-share { border-top: 3px solid var(--al-ink); font-family: var(--al-sans); }
.al-share a, .al-share button { font-family: var(--al-sans); background: transparent; }
.al-tags a { font-family: var(--al-sans); }
.al-postnav b { font-family: var(--al-display); font-weight: 750; font-size: 19px; line-height: 1.25; }
.al-postnav span { font-family: var(--al-sans); }
.al-shead { border-bottom: 1px solid var(--al-ink); }
.al-shead::after { display: none; }
.al-shead__title { font-family: var(--al-display); font-weight: 800; font-size: 28px; letter-spacing: -.01em; text-transform: none; }

/* Kategori sayfası */
.al-archive__head { background: var(--al-ink); margin: 0 calc(50% - 50vw) 48px; padding: 52px var(--al-gutter) 44px; border: 0; border-bottom: 6px solid var(--bp-yellow); }
.al-archive__title { color: #fff; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; }
.al-archive__desc { color: rgba(247, 245, 240, .78); }
.al-archive__head .al-kicker { background: var(--bp-yellow); color: var(--al-ink); }
.al-pagination .page-numbers { font-family: var(--al-sans); border-radius: 2px; }
.al-pagination .page-numbers.current { background: var(--al-ink); border-color: var(--al-ink); color: var(--bp-yellow); }

/* Footer */
.al-footer { border-top: 6px solid var(--bp-yellow); }
.al-footer .al-logo--text { font-family: var(--al-display); font-weight: 850; font-stretch: 78%; font-size: 48px; line-height: 1.12; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.al-footer__text { font-size: 17px; }
.bp-social--footer { justify-content: center; margin-top: 18px; color: rgba(247, 245, 240, .85); }
.al-footer__copy { font-family: var(--al-sans); }

/* Kişi kartı */
.bdk-card, .bdk-news { --bdk-accent: var(--al-ink); --bdk-head: var(--al-display); --bdk-ui: var(--al-sans); --bdk-bg: var(--al-paper); --bdk-line: var(--al-line); --bdk-radius: 4px; }
.bdk-card { border-top: 5px solid var(--bp-yellow); }
.bdk-card--profile { background: transparent; border: 0; padding: 0; }

/* Ana sayfada son bölüm footer'a yapışık değil ama fazladan boşluk da olmasın */
.home .al-main { padding-bottom: 64px; }

@media (max-width: 1080px) {
	.bp-banner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.bp-banner__item { padding: 12px 16px; }
	.bp-banner__title { font-size: 15px; -webkit-line-clamp: 2; }
	.bp-nav a { letter-spacing: .03em; }
	.bp-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.bp-bar .al-wrap { min-height: 30px; }
	.bp-date, .bp-bar__sep { display: none; }
	.bp-mast { gap: 8px; padding-top: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--al-ink); }
	.bp-mastbtn span { display: none; }
	.bp-wordmark, .al-header.is-compact .bp-wordmark { font-size: 27px; letter-spacing: -.005em; }
	/* Mobilde yana kayan menü yok: menü hamburger düğmesinde */
	.bp-navbar { display: none; }
	.bp-ticker__in { gap: 10px; min-height: 38px; }
	.bp-ticker__label { font-size: 10.5px; padding: 4px 7px 3px; }
	.bp-ticker__list a { font-size: 13px; }
	.bp-banner { grid-template-columns: minmax(0, 1fr); margin: 0 calc(-1 * var(--al-gutter)); }
	.bp-slide .al-img { aspect-ratio: 4 / 5; }
	.bp-slide__body { padding: 22px var(--al-gutter) 26px; }
	.bp-slide__title { font-size: 27px; }
	/* Mobilde kumanda listesi küçük noktalara dönüşür */
	.bp-banner__list { flex-direction: row; justify-content: center; gap: 8px; padding: 14px 0 16px; }
	.bp-banner__list li { flex: none; border: 0; }
	.bp-banner__item { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
	.bp-banner__item.is-active { width: 28px; border-radius: 999px; background: var(--bp-yellow); }
	.bp-banner__item:hover { background: rgba(255, 255, 255, .5); }
	.bp-banner__num, .bp-banner__text, .bp-banner__bar { display: none; }
	.bp-head h2 { font-size: 25px; }
	.bp-block { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.bp-catsec--tint { margin-top: 48px; padding: 40px 0 44px; }
	.bp-catsec--tint + .al-sec { padding-top: 48px; }
	.bp-quad { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.bp-quad .al-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--al-line); }
	.bp-quad .al-card:first-child { border-top: 0; padding-top: 0; }
	.bp-quad .al-img { aspect-ratio: 1 / 1; }
	.bp-quad .al-card__title { font-size: 17px; }
	.al-card__title { font-size: 20px; }
	.al-article { padding-top: 28px; }
	.al-article__title { font-size: 31px; }
	.al-article__deck { font-size: 18.5px; }
	.sb-featured { margin: 24px calc(-1 * var(--al-gutter)) 0; }
	.sb-featured img { border-radius: 0; }
	.sb-featured figcaption { padding: 0 var(--al-gutter); }
	.al-prose { font-size: 18px; }
	.al-prose h2 { font-size: 25px; }
	.al-prose blockquote, .al-prose .wp-block-quote { font-size: 23px; }
	.al-archive__head { padding: 36px var(--al-gutter) 30px; }
	.al-archive__title { font-size: 40px; }
	.al-footer .al-logo--text { font-size: 34px; }
}
