/*
 * blog.css — yazilar sayfasi (home.php), arsivler (archive.php) ve tekil yazi
 * (single.php). Liste ve yazi ayni dosyada: ortak kart, etiket ve meta satiri.
 */

/* ═══════════ Ortak: meta, yazar satiri, notr etiket ═══════════ */
.post-meta {
	display: block;
	font-size: 13px;
	color: #7a8e8b;
}

.world .post-meta {
	color: var(--w-body);
}

.tag--plain {
	background: var(--c-mist);
	border-color: var(--c-line);
	color: var(--c-body);
}

.post-byline {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Profilde "Author photo" yoksa dunya renginde bos daire. */
.post-byline__avatar {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--w-media, var(--c-cream-deep));
}

.post-byline__avatar img,
.post-author__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-byline__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-ink);
}

.world .post-byline__name {
	color: var(--w-fg);
}

.post-byline__role {
	font-weight: 400;
	color: #7a8e8b;
}

/* ═══════════ Liste: baslik + filtre ═══════════ */
.blog-hero {
	padding-block: 80px 56px;
	background: var(--c-cream);
}

.blog-hero__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	gap: 72px;
	align-items: end;
}

.blog-hero .eyebrow {
	color: var(--c-sand);
}

.blog-hero h1 {
	margin-top: 24px;
	font-size: clamp(38px, 5vw, 60px);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.blog-hero__lead {
	font-size: 17px;
	line-height: 1.75;
}

.blog-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 48px;
}

.blog-filter__pill {
	padding: 11px 20px;
	border: 1px solid var(--c-sand-line);
	border-radius: var(--r-pill);
	background: var(--c-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--c-ink);
}

.blog-filter__pill:hover,
.blog-filter__pill:focus-visible {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.blog-filter__pill.is-active {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-white);
	font-weight: 600;
}

.blog-list {
	padding-block: 64px 88px;
}

.blog-list__empty {
	font-size: var(--t-lead);
}

/* ═══════════ Liste: one cikan yazi ═══════════ */
.post-feature {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	margin-bottom: 64px;
	border-radius: 14px;
	overflow: hidden;
}

.post-feature__media {
	display: block;
	min-height: 440px;
}

.post-feature__media img,
.post-feature__media .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.post-feature__body {
	display: flex;
	flex-direction: column;
	padding: 56px 52px;
}

.post-feature__title {
	margin: 22px 0 20px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.1;
	color: var(--w-fg);
}

.post-feature__title a {
	color: inherit;
}

.post-feature__excerpt {
	margin-bottom: 32px;
	color: var(--w-body);
}

.post-feature .post-byline {
	margin-top: auto;
}

/* ═══════════ Liste: izgara + kart ═══════════ */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}

.post-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.post-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	margin-bottom: 22px;
	border-radius: var(--r-media);
	overflow: hidden;
}

.post-card__media img,
.post-card__media .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__title {
	margin: 14px 0 12px;
	font-size: 23px;
	font-weight: 400;
}

.post-card__title a {
	color: var(--c-ink);
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
	color: var(--c-teal);
}

.post-card__excerpt {
	margin-bottom: 18px;
	font-size: 15px;
}

.post-card .post-meta {
	margin-top: auto;
}

/* ═══════════ Sayfalama ═══════════ */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 72px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--r-pill);
	font-size: var(--t-small);
	font-weight: 500;
	color: var(--c-ink);
}

.pagination .page-numbers.current {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-white);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	border-color: var(--c-teal);
	color: var(--c-teal);
}

/* ═══════════ WhatsApp bandi ═══════════ */
.blog-cta {
	padding-block: 64px;
	background: var(--c-mint);
	color: var(--c-teal-deep);
}

.blog-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.blog-cta h2 {
	margin-bottom: 10px;
	font-size: clamp(28px, 3vw, 38px);
	color: var(--c-teal-deep);
}

.blog-cta p {
	opacity: .8;
}

.blog-cta .btn {
	flex-shrink: 0;
}

/* ═══════════ Yazi: baslik + kapak ═══════════ */
.post {
	padding-block: 56px 88px;
}

.post-head,
.post-layout {
	max-width: 1040px;
	margin-inline: auto;
}

/* Kapakla iki kolon: baslik solda, kapak sagda — yazi ilk ekranda baslar. */
.post-head.has-cover {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 48px;
	align-items: center;
}

.post-head__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
	font-size: 13.5px;
	color: #7a8e8b;
}

.post-head__crumbs a {
	color: #7a8e8b;
}

.post-head__crumbs a:hover,
.post-head__crumbs a:focus-visible {
	color: var(--c-teal);
}

.post-head__title {
	margin: 20px 0 28px;
	font-size: clamp(32px, 3.6vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.post-cover {
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 44px -18px rgb(29 43 41 / 28%), 0 3px 10px rgb(29 43 41 / 6%);
}

.post-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ═══════════ Yazi + randevu karti ═══════════ */
.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
	margin-top: 56px;
}

.post-body {
	max-width: 68ch;
}

/* Yapiskan kart: yazi boyunca yaninda kalir, yapiskan header'in altinda. */
.post-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

/* Giris yapmisken WP yonetim cubugu (32px) da ustte. */
.admin-bar .post-aside {
	top: calc(var(--header-h) + 32px + 24px);
}

.post-book {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: var(--r-card);
	background: var(--c-cream);
}

.post-book .eyebrow {
	color: var(--c-sand);
}

.post-book p:not(.eyebrow) {
	margin: 4px 0 10px;
	font-size: 15px;
	line-height: 1.65;
}

.post-book .btn {
	min-height: 48px;
	padding: 12px 16px;
	font-size: var(--t-small);
}

.post-book .btn--ghost {
	background: var(--c-white);
	border-color: var(--c-sand-line);
}

/* ═══════════ Yazi: editor icerigi ═══════════ */
.post-content {
	font-size: 18px;
	line-height: 1.85;
	color: #2e403d;
}

.post-content > * + * {
	margin-top: 26px;
}

.post-content > p:first-child {
	font-size: 21px;
	line-height: 1.75;
	color: var(--c-ink);
}

.post-content h2 {
	margin-top: 52px;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.post-content h3 {
	margin-top: 40px;
	font-size: 22px;
}

.post-content h2 + *,
.post-content h3 + * {
	margin-top: 18px;
}

.post-content ul,
.post-content ol {
	padding-left: 22px;
}

.post-content ul {
	list-style: disc;
}

.post-content ol {
	list-style: decimal;
}

.post-content li + li {
	margin-top: 10px;
}

.post-content li::marker {
	color: var(--c-teal);
}

.post-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-content strong {
	color: var(--c-ink);
}

/* Alinti — mockup'taki kum renkli not kutusu. */
.post-content blockquote {
	margin-block: 40px;
	padding: 28px 32px;
	border-left: 3px solid var(--c-sand);
	border-radius: 0 var(--r-media) var(--r-media) 0;
	background: var(--c-cream);
	font-size: 16.5px;
	line-height: 1.75;
}

.post-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-style: normal;
	color: var(--c-sand);
}

.post-content figure {
	margin-block: 44px;
}

.post-content img {
	border-radius: 12px;
}

.post-content figcaption {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.6;
	color: #7a8e8b;
	text-align: left;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}

.post-content th,
.post-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}

.post-content th {
	font-weight: 600;
	color: var(--c-ink);
}

.post-disclaimer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--c-line-soft);
	font-size: 13.5px;
	font-style: italic;
	color: #7a8e8b;
}

/* ═══════════ Yazi: yazar kutusu ═══════════ */
.post-author {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 48px;
	padding: 30px;
	border-radius: var(--r-card);
}

.post-author__avatar {
	flex: none;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--w-media);
}

.post-author .eyebrow {
	display: block;
	margin-bottom: 10px;
}

.post-author__name {
	display: block;
	margin-bottom: 8px;
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--w-fg);
}

.post-author__intro {
	display: block;
	font-size: var(--t-small);
	line-height: 1.65;
	color: var(--w-body);
}

.post-author__more {
	font-weight: 600;
	color: var(--w-accent);
	white-space: nowrap;
}

.post-author:hover .post-author__more,
.post-author:focus-visible .post-author__more {
	color: var(--w-accent-hover);
}

/* ═══════════ Yazi: Keep reading ═══════════ */
.post-related__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
}

.post-related h2 {
	font-size: clamp(30px, 3vw, 38px);
}

/* ═══════════ Kirilimlar ═══════════ */
@media (max-width: 1000px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-feature__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 860px) {
	.blog-hero {
		padding-block: 56px 40px;
	}

	.blog-hero__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.blog-filter {
		margin-top: 32px;
	}

	.post {
		padding-block: 40px 64px;
	}

	.post-head.has-cover,
	.post-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.post-layout {
		margin-top: 40px;
	}

	.post-body {
		max-width: none;
	}

	/* Telefonda kart yazinin altina iner. */
	.post-aside {
		position: static;
		margin-top: 16px;
	}

	.post-content {
		font-size: 17px;
	}

	.post-content > p:first-child {
		font-size: 19px;
	}

	.blog-cta__inner {
		flex-direction: column;
		align-items: start;
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.post-feature__body {
		padding: 32px 24px;
	}

	.post-author {
		flex-direction: column;
		align-items: start;
		gap: 18px;
		padding: 24px;
	}

	.post-author__avatar {
		width: 64px;
		height: 64px;
	}

	.post-related__head {
		flex-direction: column;
		align-items: start;
	}
}
