/* Motto Site — blog: liste bileşeni (widgets/class-blog-list.php), yazı kartı ve yazı şablonu (templates/blog-single.php).
 * Ortak yapı sections.css'te, yazı gövdesinin temel metin biçimleri site.css'teki .motto-prose kurallarındadır.
 * Davranış: assets/js/blog.js. */

/* ---------------------------------------------------------------------------
 * Konu düğmeleri
 * ------------------------------------------------------------------------ */
.motto-blog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(24px, 3vw, 44px);
}

/* Tema bütün düğmelere kendi biçimini verdiği için iki sınıfla baştan kurulur. */
.motto-sec button.motto-blog__filter,
.motto-sec button.motto-blog__filter:hover,
.motto-sec button.motto-blog__filter:focus {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink-2);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
	-webkit-tap-highlight-color: transparent;
}

.motto-sec button.motto-blog__filter:hover {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
	color: var(--motto-ink);
}

.motto-sec button.motto-blog__filter.is-active {
	background: var(--motto-gold);
	box-shadow: none;
	color: #121212;
}

.motto-sec button.motto-blog__filter:focus-visible {
	outline: 2px solid var(--motto-gold);
	outline-offset: 3px;
}

.motto-blog__filter small {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	opacity: 0.6;
}

/* ---------------------------------------------------------------------------
 * Izgara
 * ------------------------------------------------------------------------ */
.motto-blog__featured {
	margin-bottom: clamp(16px, 1.8vw, 28px);
}

.motto-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 1.8vw, 28px);
}

.motto-blog__cell {
	min-width: 0;
}

.motto-blog__cell[hidden],
.motto-blog__featured[hidden],
.motto-blog__more-wrap[hidden] {
	display: none !important;
}

/* Betik hazır olana kadar fazlalık kartlar gizli kalır (sayfa açılırken sıçrama olmasın). */
.motto-js .motto-blog:not(.is-ready) .motto-blog__cell.is-extra {
	display: none;
}

.motto-blog__cell.is-entering {
	animation: motto-blog-in 0.7s var(--motto-ease-out) both;
	animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes motto-blog-in {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.motto-blog__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: clamp(28px, 3vw, 44px);
}

.motto-sec .motto-blog__empty,
.motto-sec .motto-blog__none {
	margin: 0;
	color: var(--motto-ink-2);
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
 * Yazı kartı
 * ------------------------------------------------------------------------ */
.motto-bcard {
	height: 100%;
}

.motto-sec .motto-bcard__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink);
	text-decoration: none;
	transition: transform 0.6s var(--motto-ease-out), background-color 0.4s ease, box-shadow 0.4s ease;
}

.motto-sec .motto-bcard__link:focus-visible {
	outline: 2px solid var(--motto-gold);
	outline-offset: 4px;
}

.motto-bcard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #1a1a1a;
}

.motto-bcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.92) brightness(0.92);
	transition: transform 1.3s var(--motto-ease-out), filter 0.6s ease;
}

.motto-bcard__placeholder {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 72% 28%, rgba(201, 160, 80, 0.34), transparent 58%), #161616;
}

.motto-bcard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: clamp(20px, 2vw, 28px);
}

.motto-bcard__topic {
	color: var(--motto-gold);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
}

.motto-sec .motto-bcard__title {
	margin: 0;
	color: var(--motto-ink);
	font-size: clamp(18px, 1.42vw, 22px);
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.28;
	text-wrap: pretty;
	transition: color 0.35s ease;
}

.motto-bcard__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--motto-ink-2);
	font-size: 14.5px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.motto-bcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: auto;
	padding-top: 10px;
	color: var(--motto-ink-3);
	font-size: 12.5px;
	line-height: 1.4;
}

.motto-bcard__meta span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 10px 2px 0;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
}

.motto-bcard__more {
	display: none;
}

@media (hover: hover) {
	.motto-sec .motto-bcard__link:hover {
		background: rgba(255, 255, 255, 0.05);
		box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.45);
		transform: translate3d(0, -6px, 0);
	}

	.motto-bcard__link:hover .motto-bcard__media img {
		filter: none;
		transform: scale(1.05);
	}

	.motto-sec .motto-bcard__link:hover .motto-bcard__title {
		color: var(--motto-gold);
	}
}

/* Öne çıkan (en yeni) yazı: geniş, yatay kart. */
.motto-sec .motto-bcard--featured .motto-bcard__link {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	border-radius: 26px;
}

.motto-bcard--featured .motto-bcard__media {
	aspect-ratio: auto;
	min-height: clamp(300px, 34vw, 520px);
}

.motto-bcard--featured .motto-bcard__body {
	justify-content: center;
	gap: 14px;
	padding: clamp(26px, 3.4vw, 56px);
}

.motto-sec .motto-bcard--featured .motto-bcard__title {
	font-size: clamp(24px, 2.5vw, 40px);
	letter-spacing: -0.022em;
	line-height: 1.12;
}

.motto-bcard--featured .motto-bcard__excerpt {
	font-size: 15.5px;
	-webkit-line-clamp: 4;
}

.motto-bcard--featured .motto-bcard__meta {
	margin-top: 6px;
}

.motto-bcard--featured .motto-bcard__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--motto-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: gap 0.4s var(--motto-ease-out);
}

.motto-bcard--featured .motto-bcard__more .motto-icon {
	width: 16px;
	height: 16px;
}

.motto-bcard--featured .motto-bcard__link:hover .motto-bcard__more {
	gap: 12px;
}

@media (max-width: 1099px) {
	.motto-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.motto-sec .motto-bcard--featured .motto-bcard__link {
		grid-template-columns: minmax(0, 1fr);
	}

	.motto-bcard--featured .motto-bcard__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.motto-blog__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Telefonda konu düğmeleri tek satırda yana kayar. */
	.motto-blog__filters {
		flex-wrap: nowrap;
		margin-right: calc(var(--motto-pad) * -1);
		margin-left: calc(var(--motto-pad) * -1);
		padding: 2px var(--motto-pad);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.motto-blog__filters::-webkit-scrollbar {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Yazı sayfası: okuma çubuğu
 * ------------------------------------------------------------------------ */
.motto-post__progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10001;
	height: 3px;
	pointer-events: none;
}

.motto-post__progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, rgba(201, 160, 80, 0.35), var(--motto-gold));
	box-shadow: 0 0 12px rgba(201, 160, 80, 0.6);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ---------------------------------------------------------------------------
 * Yazı sayfası: giriş
 * ------------------------------------------------------------------------ */
.motto-sec.motto-post__hero {
	--mx: 82%;
	--my: 26%;
	overflow: hidden;
	overflow: clip;
	padding-top: clamp(24px, 3.6vw, 60px);
	padding-bottom: clamp(30px, 3.6vw, 56px);
}

.motto-post__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(min(70vw, 760px) circle at var(--mx) var(--my), rgba(201, 160, 80, 0.13), transparent 62%);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 120px), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 140px, #000 calc(100% - 120px), transparent);
	pointer-events: none;
}

.motto-post__hero > * {
	position: relative;
}

.motto-post__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: clamp(22px, 2.6vw, 40px);
	color: var(--motto-ink-3);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.motto-sec .motto-post__crumbs a {
	color: var(--motto-ink-2);
	text-decoration: none;
	transition: color 0.3s ease;
}

.motto-sec .motto-post__crumbs a:hover {
	color: var(--motto-gold);
}

.motto-sec .motto-post__title {
	max-width: 1100px;
	margin: 0;
	color: var(--motto-ink);
	font-size: clamp(32px, 4.5vw, 70px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.06;
	text-wrap: balance;
}

.motto-post__word {
	display: inline-block;
}

.motto-js .motto-post__word {
	animation: motto-post-word 0.9s var(--motto-ease-out) both;
	animation-delay: calc(var(--w, 0) * 55ms + 80ms);
}

@keyframes motto-post-word {
	from {
		opacity: 0;
		transform: translate3d(0, 0.45em, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.motto-sec .motto-post__lead {
	max-width: 64ch;
	margin: clamp(18px, 2vw, 28px) 0 0;
	color: var(--motto-ink-2);
	font-size: clamp(16.5px, 1.35vw, 20.5px);
	line-height: 1.6;
	animation: motto-rise 1s var(--motto-ease-out) 0.45s both;
}

.motto-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin: clamp(22px, 2.4vw, 34px) 0 0;
	padding: 0;
	color: var(--motto-ink-3);
	font-size: 13px;
	font-weight: 500;
	list-style: none;
	animation: motto-rise 1s var(--motto-ease-out) 0.6s both;
}

.motto-post__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.motto-post__by {
	color: var(--motto-ink);
}

.motto-post__badge {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--motto-gold);
	color: #121212;
	font-size: 12px;
	font-weight: 700;
}

/* Kapak görseli: aşağıdan yukarı açılır. */
.motto-post__cover {
	position: relative;
	margin: 0 var(--motto-pad);
	overflow: hidden;
	border-radius: 26px;
	background: #1a1a1a;
	animation: motto-cover-in 1.4s var(--motto-ease) 0.25s both;
}

.motto-post__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 78vh;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	animation: motto-cover-img 2.2s var(--motto-ease-out) 0.25s both;
}

.motto-post__cover figcaption {
	position: absolute;
	right: 18px;
	bottom: 16px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(18, 18, 18, 0.7);
	color: var(--motto-ink-2);
	font-size: 12px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

@keyframes motto-cover-in {
	from {
		clip-path: inset(0 0 100% 0 round 26px);
	}

	to {
		clip-path: inset(0 0 0 0 round 26px);
	}
}

@keyframes motto-cover-img {
	from {
		transform: scale(1.12);
	}

	to {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Yazı sayfası: içindekiler + metin
 * ------------------------------------------------------------------------ */
.motto-post__layout {
	display: grid;
	grid-template-columns: minmax(200px, 250px) minmax(0, 760px);
	justify-content: center;
	align-items: start;
	column-gap: clamp(48px, 7vw, 120px);
}

.motto-post__layout--single {
	grid-template-columns: minmax(0, 760px);
}

.motto-post__layout > .motto-legal__toc {
	padding-top: 6px;
}

.motto-post__col {
	min-width: 0;
}

.motto-post .motto-prose {
	font-size: clamp(16px, 1.1vw, 17.5px);
	line-height: 1.8;
}

.motto-post .motto-post__body > p:first-child {
	color: var(--motto-ink);
	font-size: 1.14em;
	line-height: 1.65;
}

.motto-post .motto-prose h3 {
	margin: 34px 0 12px;
	color: var(--motto-ink);
	font-size: clamp(18px, 1.45vw, 21px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	scroll-margin-top: calc(var(--motto-hdr-h) + 16px);
}

.motto-post .motto-prose ol {
	padding: 0;
	list-style: none;
	counter-reset: motto-ol;
}

.motto-post .motto-prose ol > li {
	counter-increment: motto-ol;
}

.motto-post .motto-prose ol > li::before {
	content: counter(motto-ol) ".";
	top: 0;
	width: auto;
	height: auto;
	background: none;
	color: var(--motto-gold);
	font-size: 0.92em;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* Tablolar: dar ekranda kendi içinde yana kayar. */
.motto-post .motto-prose .wp-block-table {
	margin: 30px 0;
	overflow-x: auto;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px var(--motto-line);
}

.motto-post .motto-prose table {
	width: 100%;
	min-width: 520px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14.5px;
	line-height: 1.55;
}

.motto-post .motto-prose table th,
.motto-post .motto-prose table td {
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--motto-line);
	text-align: left;
	vertical-align: top;
}

.motto-post .motto-prose table th {
	background: rgba(255, 255, 255, 0.04);
	color: var(--motto-ink);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.motto-post .motto-prose table td {
	color: var(--motto-ink-2);
}

.motto-post .motto-prose table tr:last-child td {
	border-bottom: 0;
}

.motto-post .motto-prose table td:first-child {
	color: var(--motto-ink);
	font-weight: 600;
}

/* Bilgi kutusu: düzenleyicide paragrafa "motto-not" sınıfı verilerek yapılır. */
.motto-post .motto-prose .motto-not {
	position: relative;
	margin: 30px 0;
	padding: 20px 24px 20px 26px;
	border-radius: 16px;
	background: rgba(201, 160, 80, 0.07);
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.22);
	color: var(--motto-ink);
	font-size: 0.95em;
	line-height: 1.7;
}

.motto-post .motto-prose .motto-not::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--motto-gold);
}

.motto-post .motto-prose blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--motto-gold);
	color: var(--motto-ink);
	font-size: 1.12em;
	line-height: 1.6;
}

.motto-post .motto-prose blockquote p {
	margin: 0;
	color: inherit;
}

.motto-post .motto-prose figure {
	margin: 32px 0;
}

.motto-post .motto-prose figure img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.motto-post .motto-prose figcaption {
	margin-top: 10px;
	color: var(--motto-ink-3);
	font-size: 13px;
	font-style: normal;
}

.motto-post .motto-prose code {
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--motto-ink);
	font-size: 0.9em;
}

/* ---------------------------------------------------------------------------
 * Yazı sayfası: sondaki çağrı, paylaşım
 * ------------------------------------------------------------------------ */
.motto-post__cta {
	position: relative;
	margin: clamp(44px, 5vw, 72px) 0 0;
	padding: clamp(26px, 3vw, 44px);
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(420px circle at 100% 0%, rgba(201, 160, 80, 0.2), transparent 62%),
		rgba(255, 255, 255, 0.035);
	box-shadow: inset 0 0 0 1px var(--motto-line);
}

.motto-sec .motto-post__cta-eyebrow {
	margin: 0 0 10px;
	color: var(--motto-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.motto-sec .motto-post__cta-title {
	max-width: 30ch;
	margin: 0 0 24px;
	color: var(--motto-ink);
	font-size: clamp(20px, 1.9vw, 27px);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.motto-post__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 24px;
	margin-top: 32px;
	padding-top: 26px;
	border-top: 1px solid var(--motto-line);
}

.motto-post__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.motto-post__share-label {
	margin-right: 6px;
	color: var(--motto-ink-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.motto-sec .motto-post__share a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink);
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.motto-post__share .motto-icon {
	width: 18px;
	height: 18px;
}

.motto-sec .motto-post__share a:hover {
	background: #fff;
	box-shadow: inset 0 0 0 1px #fff;
	color: #121212;
}

.motto-sec button.motto-post__copy,
.motto-sec button.motto-post__copy:hover,
.motto-sec button.motto-post__copy:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: none;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.motto-sec button.motto-post__copy:hover {
	background: #fff;
	box-shadow: inset 0 0 0 1px #fff;
	color: #121212;
}

.motto-sec button.motto-post__copy.is-done {
	background: var(--motto-gold);
	box-shadow: none;
	color: #121212;
}

.motto-sec .motto-post__copy .motto-icon {
	width: 16px;
	height: 16px;
}

.motto-sec .motto-post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--motto-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: gap 0.4s var(--motto-ease-out), color 0.3s ease;
}

.motto-sec .motto-post__back:hover {
	gap: 12px;
	color: var(--motto-ink);
}

.motto-post__back .motto-icon {
	width: 16px;
	height: 16px;
}

.motto-sec.motto-post__main {
	padding-top: clamp(44px, 5.4vw, 92px);
}

@media (max-width: 1023px) {
	.motto-post__layout {
		grid-template-columns: minmax(0, 760px);
	}
}

@media (max-width: 767px) {
	.motto-post__cover {
		border-radius: 18px;
	}

	.motto-post__cover img {
		aspect-ratio: 4 / 3;
	}

	.motto-post__end {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motto-js .motto-post__word,
	.motto-post__cover,
	.motto-post__cover img,
	.motto-sec .motto-post__lead,
	.motto-post__meta,
	.motto-blog__cell.is-entering {
		animation: none !important;
	}
}

@media print {
	.motto-post__progress,
	.motto-post__toc,
	.motto-post__share,
	.motto-post__cta,
	.motto-post__related {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * Sıkı düzen (gövdede .motto-sik, motto-site.php): yalnız boşluklar, kutu yükseklikleri ve sütun sayıları
 * küçülür; yazı boyutları aynı kalır, hiçbir öğe kaldırılmaz (kullanıcı tercihi, 2026-11-02).
 * ------------------------------------------------------------------------ */.motto-sik .motto-blog__filters {
	margin-bottom: clamp(16px, 2vw, 26px);
}

.motto-sik .motto-blog__featured {
	margin-bottom: 16px;
}

.motto-sik .motto-blog__grid {
	gap: 16px;
}

.motto-sik .motto-bcard__body {
	padding: 18px 20px;
}

.motto-sik .motto-blog__more-wrap {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.motto-sik .motto-bcard--featured .motto-bcard__media {
		min-height: clamp(260px, 24vw, 380px);
	}

	.motto-sik .motto-bcard--featured .motto-bcard__body {
		padding: clamp(22px, 2.4vw, 36px);
	}
}
