/* ==========================================================================
   Arif GÖKÇE teması
   ========================================================================== */

/* ---------- Tasarım değişkenleri ---------- */
:root {
	--bg: #fafafa;
	--surface: #ffffff;
	--surface-2: #f4f4f5;
	--line: #e4e4e7;
	--line-strong: #c9c9cf;
	--text: #0a0a0b;
	--text-2: #3a3a40;
	--muted: #6b6b74;
	--faint: #a1a1aa;
	--inverse: #0a0a0b;
	--on-inverse: #fafafa;
	--grid: rgba(10, 10, 11, .045);
	--shadow: 0 1px 2px rgba(10, 10, 11, .04), 0 8px 24px -12px rgba(10, 10, 11, .12);
	--code-bg: #0d0d10;
	--code-text: #e4e4e7;

	--accent: #2f6fed;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--r-sm: 3px;
	--r: 6px;
	--header-h: 64px;
	--gutter: 24px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #09090b;
	--surface: #111114;
	--surface-2: #19191d;
	--line: #26262b;
	--line-strong: #3a3a41;
	--text: #f4f4f5;
	--text-2: #c8c8ce;
	--muted: #9a9aa3;
	--faint: #67676f;
	--inverse: #f4f4f5;
	--on-inverse: #09090b;
	--grid: rgba(244, 244, 245, .04);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--code-bg: #0d0d10;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #09090b;
		--surface: #111114;
		--surface-2: #19191d;
		--line: #26262b;
		--line-strong: #3a3a41;
		--text: #f4f4f5;
		--text-2: #c8c8ce;
		--muted: #9a9aa3;
		--faint: #67676f;
		--inverse: #f4f4f5;
		--on-inverse: #09090b;
		--grid: rgba(244, 244, 245, .04);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
		--code-bg: #0d0d10;
		color-scheme: dark;
	}
}

/* ---------- Temel ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	font-feature-settings: "cv11", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.015em;
}

p { margin: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}

::selection { background: var(--inverse); color: var(--on-inverse); }

.mono { font-family: var(--font-mono); }

.icon {
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -.125em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 8px 14px;
	background: var(--inverse);
	color: var(--on-inverse);
	border-radius: var(--r-sm);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

kbd {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--muted);
	font: 500 11px/1 var(--font-mono);
}

.sep { color: var(--faint); margin-inline: .45em; }

/* Bölüm etiketleri: küçük, büyük harf, monospace */
.section-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--muted);
	font: 600 11.5px/1.4 var(--font-mono);
	letter-spacing: .09em;
	text-transform: uppercase;
}

.section-label .icon { width: 14px; height: 14px; color: var(--text); }

/* Butonlar */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 36px;
	height: 36px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn .icon { width: 17px; height: 17px; }

.btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--inverse);
	border-radius: var(--r);
	background: var(--inverse);
	color: var(--on-inverse);
	font: 600 13px/1.2 var(--font-mono);
	cursor: pointer;
	transition: opacity .15s;
}

.btn:hover,
.comment-form .submit:hover { opacity: .85; }

/* Tema / menü ikon geçişleri */
.when-dark,
.when-open,
.when-done { display: none; }

:root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .when-light { display: none; }
	:root:not([data-theme="light"]) .when-dark { display: inline; }
}

/* Izgara arka plan deseni */
.grid-bg,
.topics-strip,
.page-head {
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--text);
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: var(--r);
	background: var(--inverse);
	color: var(--on-inverse);
	font: 600 13px/1 var(--font-mono);
	letter-spacing: -.04em;
}

.brand__logo { width: 34px; height: 34px; object-fit: contain; border-radius: var(--r); }

.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }

.brand__name {
	font: 700 16px/1.15 var(--font-display);
	letter-spacing: -.01em;
	white-space: nowrap;
}

.brand__tagline {
	color: var(--muted);
	font: 500 11px/1.3 var(--font-mono);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.primary-nav { margin-left: auto; }

.primary-nav__list,
.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav li { position: relative; }

.primary-nav a {
	display: block;
	padding: 6px 12px;
	border-radius: var(--r);
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: color .15s, background-color .15s;
}

.primary-nav a:hover { color: var(--text); background: var(--surface-2); }

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { color: var(--text); }

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	align-items: stretch;
	min-width: 200px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.search-toggle kbd { margin-left: 2px; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
	.site-header__inner { gap: 12px; }
	.site-header__actions { margin-left: auto; }
	.menu-toggle { display: inline-flex; }
	.hide-sm { display: none; }

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		margin: 0;
		padding: 8px var(--gutter) 16px;
		border-bottom: 1px solid var(--line);
		background: var(--surface);
	}

	.site-header.is-open .primary-nav { display: block; }
	.site-header.is-open .when-open { display: inline; }
	.site-header.is-open .when-closed { display: none; }

	.primary-nav__list,
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

	.primary-nav a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

/* Arama penceresi */
.search-dialog {
	width: min(640px, calc(100% - 32px));
	margin: 14vh auto auto;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .35);
}

.search-dialog::backdrop {
	background: rgba(9, 9, 11, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.search-dialog__inner { padding: 14px; }
.search-dialog .search-form { border: 0; background: transparent; }
.search-dialog .search-form__input { font-size: 18px; }

.search-dialog__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font: 12px var(--font-mono);
}

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 560px;
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	transition: border-color .15s;
}

.search-form:focus-within { border-color: var(--line-strong); }

.search-form__prompt { color: var(--faint); font-size: 13px; white-space: nowrap; }

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 6px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: 15px var(--font-sans);
}

.search-form__input::-webkit-search-cancel-button { display: none; }

.search-form__submit {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--inverse);
	color: var(--on-inverse);
	cursor: pointer;
}

.search-form__submit .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Konu şeridi (ana sayfa üstü)
   ========================================================================== */
.topics-strip {
	padding: 40px 0 8px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 40px;
}

.topics-strip__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.topics-strip__stat { color: var(--faint); font: 12px var(--font-mono); }

.topics-strip__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--line);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.topics-strip__list > li { flex: 1 1 210px; min-width: 0; }

.topic-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 18px 18px;
	background: var(--surface);
	color: var(--text);
	transition: background-color .15s;
}

.topic-tile:hover { background: var(--surface-2); }

.topic-tile__code {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface-2);
	color: var(--text);
	font: 600 12.5px/1 var(--font-mono);
	letter-spacing: -.02em;
	transition: background-color .15s, color .15s, border-color .15s;
}

.topic-tile:hover .topic-tile__code {
	border-color: var(--inverse);
	background: var(--inverse);
	color: var(--on-inverse);
}

.topic-tile__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.topic-tile__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font: 600 15px/1.3 var(--font-display);
}

.topic-tile__count { color: var(--muted); font: 12px/1.6 var(--font-mono); }

.topic-tile__arrow {
	width: 16px;
	height: 16px;
	color: var(--faint);
	transition: transform .15s, color .15s;
}

.topic-tile:hover .topic-tile__arrow { color: var(--text); transform: translateX(3px); }

/* ==========================================================================
   Liste düzeni
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 88px;
}

.layout--index-right { grid-template-columns: minmax(0, 1fr) 264px; }
.layout--index-right .topics-index { order: 2; }

@media (max-width: 1000px) {
	.layout,
	.layout--index-right { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.layout .topics-index { order: 2; }
}

.post-list__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.post-list__page { color: var(--faint); font-size: 12px; }

.post-list__items { display: grid; gap: 14px; }

/* ---------- Konu dizini ---------- */
.topics-index__inner {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	max-height: calc(100vh - var(--header-h) - 48px);
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}

.admin-bar .topics-index__inner { top: calc(var(--header-h) + 56px); }

@media (max-width: 1000px) {
	.topics-index__inner { position: static; max-height: none; overflow: visible; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
}

.topics-index .section-label { margin-bottom: 14px; }

.ti { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.ti__item { border-bottom: 1px solid var(--line); }

.ti__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 2px;
	cursor: pointer;
	list-style: none;
	color: var(--text);
	user-select: none;
}

.ti__head::-webkit-details-marker { display: none; }

.ti__num {
	display: grid;
	place-items: center;
	width: 26px;
	height: 22px;
	flex: none;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--muted);
	font: 600 10.5px/1 var(--font-mono);
	transition: all .15s;
}

details[open] > .ti__head .ti__num,
.ti__item.is-active .ti__num {
	border-color: var(--inverse);
	background: var(--inverse);
	color: var(--on-inverse);
}

.ti__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.ti__head:hover .ti__name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ti__count { color: var(--faint); font: 11px var(--font-mono); }

.ti__chev { width: 14px; height: 14px; color: var(--faint); transition: transform .2s; }
details[open] > .ti__head .ti__chev { transform: rotate(90deg); color: var(--text); }

.ti__posts {
	margin: 0 0 14px 13px;
	padding: 0 0 0 22px;
	border-left: 1px solid var(--line);
	list-style: none;
	counter-reset: ti;
}

.ti__posts li {
	position: relative;
	counter-increment: ti;
	padding: 4px 0;
	font-size: 13.5px;
	line-height: 1.45;
}

.ti__posts li:not(.ti__more)::before {
	content: counter(ti) ".";
	position: absolute;
	left: -16px;
	top: 6px;
	color: var(--faint);
	font: 10.5px var(--font-mono);
	transform: translateX(-50%);
	left: -11px;
}

.ti__posts a { color: var(--text-2); transition: color .15s; }
.ti__posts a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

.ti__posts .is-current a { color: var(--text); font-weight: 600; }
.ti__posts .is-current::after {
	content: "";
	position: absolute;
	left: -23px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: var(--accent);
}

.ti__more { padding-top: 8px !important; }
.ti__more a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 500 12px var(--font-mono); }
.ti__more .icon { width: 13px; height: 13px; }

/* ---------- Kart ---------- */
.card {
	position: relative;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	transition: border-color .15s, box-shadow .15s;
}

.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--surface-2);
}

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

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

.card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--faint);
	font: 600 22px var(--font-mono);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 16px 16px;
}

.card__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding: 4px 8px 4px 0; }

.card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* Kart başlığı ve rozet dışında her yer tıklanabilir */
.card__top .cat-badge { position: relative; z-index: 2; background: var(--surface); }

.card__meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 2px;
	color: var(--muted);
	font-size: 12px;
}

.card__meta .icon { width: 13px; height: 13px; margin-right: 4px; color: var(--faint); }
.card__meta .sep { margin-inline: .5em; }
.card__level { display: inline-flex; align-items: center; gap: 6px; }

.card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.card__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .25s;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r);
}

.card:hover .card__title a { background-size: 100% 1px; }

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

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--text);
	font-size: 12.5px;
	font-weight: 600;
}

.card__more .icon { width: 14px; height: 14px; transition: transform .15s; }
.card:hover .card__more .icon { transform: translateX(3px); }

/* Öne çıkan (ilk) kart */
.card--featured {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 28px;
	padding: 18px;
}

.card--featured .card__media { aspect-ratio: 16 / 9; }
.card--featured .card__body { gap: 14px; padding: 8px 12px 8px 0; }
.card--featured .card__title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.025em; }
.card--featured .card__excerpt { -webkit-line-clamp: 3; font-size: 15.5px; }

@media (max-width: 1100px) {
	.card--featured { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.card--featured .card__body { padding: 0 6px 6px; }
}

@media (max-width: 760px) {
	.card {
		grid-template-columns: minmax(0, 1fr) 104px;
		gap: 14px;
		padding: 14px;
	}
	.card .card__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; align-self: start; }
	.card .card__body { grid-column: 1; grid-row: 1; padding: 0; gap: 8px; justify-content: flex-start; }
	.card__title { font-size: 16.5px; }
	.card__excerpt { display: none; }
	.card__level-label { display: none; }
	.card__top .cat-badge .cat-badge__name { display: none; }

	.card--featured { grid-template-columns: minmax(0, 1fr); }
	.card--featured .card__media { grid-column: 1; aspect-ratio: 16 / 9; }
	.card--featured .card__body { grid-row: 2; }
	.card--featured .card__title { font-size: 21px; }
	.card--featured .card__excerpt { display: -webkit-box; }
	.card--featured .cat-badge__name { display: inline; }
}

/* Kategori rozeti */
.cat-badge {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	align-self: flex-start;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	font: 600 11px/1 var(--font-mono);
	transition: border-color .15s;
}

.cat-badge:hover { border-color: var(--inverse); }

.cat-badge__code {
	padding: 6px 7px;
	background: var(--inverse);
	color: var(--on-inverse);
	white-space: nowrap;
}

.cat-badge__name {
	padding: 6px 8px;
	color: var(--text-2);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Meta listesi */
.meta-list { display: flex; flex-direction: column; gap: 9px; margin: 0; }

.meta-list__row { display: flex; align-items: center; gap: 8px; min-width: 0; }

.meta-list dt { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.meta-list dt .icon { width: 15px; height: 15px; }
.meta-list dd { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 12.5px/1.4 var(--font-mono); }
.meta-list dd a:hover { color: var(--text); }

.meta-list--card dt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.meta-list--info { gap: 0; }

.meta-list--info .meta-list__row {
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
}

.meta-list--info .meta-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list--info dt { color: var(--muted); font-size: 13px; }
.meta-list--info dd { color: var(--text); text-align: right; justify-content: flex-end; }

/* Zorluk göstergesi: sinyal çubukları */
.level-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.level-meter i { display: block; width: 4px; border-radius: 1px; background: var(--line-strong); }
.level-meter i:nth-child(1) { height: 5px; }
.level-meter i:nth-child(2) { height: 8px; }
.level-meter i:nth-child(3) { height: 12px; }
.level-meter i.on { background: var(--text); }

/* Etiketler */
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 12px/1.5 var(--font-mono);
}

.tag-list a { color: var(--muted); transition: color .15s; }
.tag-list a::before { content: "#"; color: var(--faint); margin-right: 1px; }
.tag-list a:hover { color: var(--text); }

.tag-list--chips { gap: 8px; }

.tag-list--chips a {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--text-2);
}

.tag-list--chips a:hover { border-color: var(--line-strong); color: var(--text); }

/* Sayfalama */
.pagination { margin-top: 32px; }

.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--text-2);
	font: 500 13px var(--font-mono);
	transition: border-color .15s;
}

.pagination a.page-numbers:hover { border-color: var(--line-strong); color: var(--text); }

.pagination .page-numbers.current {
	border-color: var(--inverse);
	background: var(--inverse);
	color: var(--on-inverse);
}

.pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.pagination .icon { width: 16px; height: 16px; }

.empty-state {
	display: grid;
	gap: 16px;
	padding: 32px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--r);
	color: var(--muted);
}

/* ==========================================================================
   Arşiv başlığı
   ========================================================================== */
.page-head { padding: 52px 0 40px; border-bottom: 1px solid var(--line); }

.page-head__inner { display: flex; align-items: flex-start; gap: 22px; }
.page-head__grow { flex: 1; display: grid; gap: 6px; }
.page-head__grow .search-form { margin-top: 16px; }

.page-head__code {
	display: grid;
	place-items: center;
	min-width: 68px;
	height: 68px;
	padding: 0 10px;
	flex: none;
	border-radius: var(--r);
	background: var(--inverse);
	color: var(--on-inverse);
	font: 600 18px/1 var(--font-mono);
}

.page-head__kicker { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.page-head__title { margin-top: 4px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.025em; }

.page-head__desc { max-width: 72ch; margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.page-head__desc p + p { margin-top: .6em; }

@media (max-width: 600px) {
	.page-head { padding: 36px 0 28px; }
	.page-head__code { min-width: 52px; height: 52px; font-size: 14px; }
}

/* ==========================================================================
   Yazı detay
   ========================================================================== */
.reading-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: 2px;
	pointer-events: none;
}

.admin-bar .reading-progress { top: 32px; }

.reading-progress span {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(var(--p, 0));
	transform-origin: 0 50%;
}

.single-layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 56px;
}

.single-layout--side-right { grid-template-columns: minmax(0, 1fr) 264px; }
.single-layout--side-right .article-side { order: 2; }

.article-side__inner {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 14px;
	max-height: calc(100vh - var(--header-h) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}

.admin-bar .article-side__inner { top: calc(var(--header-h) + 56px); }

.side-box {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
}

.side-box > .section-label { margin-bottom: 10px; }

.toc > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.toc > summary::-webkit-details-marker { display: none; }
.toc[open] > summary { margin-bottom: 12px; }
.toc__chev { margin-left: auto; width: 14px; height: 14px; color: var(--faint) !important; transition: transform .2s; }
.toc[open] .toc__chev { transform: rotate(90deg); }

.toc__list { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }

.toc__item a {
	display: block;
	margin-left: -1px;
	padding: 5px 0 5px 12px;
	border-left: 2px solid transparent;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.45;
	transition: color .15s, border-color .15s;
}

.toc__item--l2 a { padding-left: 24px; font-size: 12.5px; }
.toc__item--l3 a { padding-left: 36px; font-size: 12.5px; }

.toc__item a:hover { color: var(--text); }
.toc__item a.is-active { border-left-color: var(--text); color: var(--text); font-weight: 500; }

@media (max-width: 1000px) {
	.single-layout,
	.single-layout--side-right { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
	/* Mobilde içindekiler yazının üstünde, kapalı başlar; bilgiler zaten başlık altında */
	.single-layout .article-side { order: 0; }
	.article-side__inner { position: static; max-height: none; overflow: visible; }
	.single-layout .article-side .side-box:first-child { display: none; }
}

.article { min-width: 0; }

.article__head { display: grid; gap: 16px; justify-items: start; max-width: 780px; }

.breadcrumbs {
	display: flex;
	align-items: center;
	max-width: 100%;
	color: var(--faint);
	font: 12px/1.4 var(--font-mono);
	white-space: nowrap;
	overflow: hidden;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin-inline: .5em; }
.breadcrumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; }

.article__title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }

.article__byline { color: var(--muted); font-size: 13px; }

.article__media {
	margin: 32px 0 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface-2);
}

.article__media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* ---------- İçerik tipografisi ---------- */
.prose {
	max-width: 760px;
	margin-top: 32px;
	color: var(--text-2);
	font-size: 17px;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2,
.prose h3,
.prose h4 { margin-top: 2.1em; margin-bottom: -.3em; scroll-margin-top: calc(var(--header-h) + 24px); }

.prose h2 { font-size: 27px; letter-spacing: -.02em; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }

.prose h2::before {
	content: "#";
	margin-right: .35em;
	color: var(--faint);
	font-family: var(--font-mono);
	font-weight: 500;
}

.prose a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.prose a:hover { text-decoration-thickness: 2px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--faint); }
.prose ol > li::marker { font-family: var(--font-mono); font-size: .85em; }

.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--text);
	color: var(--text);
	font-size: 1.05em;
}

.prose hr { margin: 2.5em 0; border: 0; border-top: 1px dashed var(--line-strong); }

.prose img { border-radius: var(--r-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption,
.prose .wp-element-caption { margin-top: 8px; color: var(--muted); font: 12.5px/1.5 var(--font-mono); text-align: center; }

.prose :not(pre) > code {
	padding: .12em .38em;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--surface-2);
	color: var(--text);
	font: .86em var(--font-mono);
}

.prose pre {
	overflow-x: auto;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--code-bg);
	color: var(--code-text);
	font: 14px/1.65 var(--font-mono);
	tab-size: 4;
}

.prose pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }

/* Enlighter eklentisi kod blokları */
.prose .enlighter-default {
	margin: 1.6em 0 !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--r) !important;
	overflow: hidden;
	font-family: var(--font-mono) !important;
}

.prose .enlighter-default .enlighter { font-family: var(--font-mono) !important; font-size: 13.5px !important; }

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .wp-block-table { overflow-x: auto; }
.prose th,
.prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }

.prose .wp-block-image,
.prose .wp-block-embed { margin-block: 1.8em; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-inline: auto; text-align: center; }

.prose .wp-block-buttons .wp-block-button__link { border-radius: var(--r); background: var(--inverse); color: var(--on-inverse); text-decoration: none; font: 600 14px var(--font-mono); }

.page-links { display: flex; gap: 8px; margin-top: 2em; font-family: var(--font-mono); font-size: 13px; }

/* Yazı alt bilgisi */
.article__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 760px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share__label { margin-right: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.copy-link.is-done .when-idle { display: none; }
.copy-link.is-done .when-done { display: inline; }

.author-box {
	display: flex;
	gap: 18px;
	max-width: 760px;
	margin-top: 32px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
}

.author-box__avatar { width: 56px; height: 56px; flex: none; border-radius: var(--r); }
.author-box__kicker { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.author-box__name { margin: 2px 0 6px; font-size: 18px; }
.author-box__bio { color: var(--muted); font-size: 14.5px; }

/* Önceki / sonraki */
.siblings {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-bottom: 56px;
}

.sibling {
	display: grid;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	transition: border-color .15s, box-shadow .15s;
}

.sibling:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.sibling--next { text-align: right; }
.sibling__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sibling--next .sibling__dir { justify-content: flex-end; }
.sibling__dir .icon { width: 14px; height: 14px; }
.sibling__title { color: var(--text); font: 600 16.5px/1.35 var(--font-display); letter-spacing: -.01em; }

@media (max-width: 640px) {
	.siblings { grid-template-columns: 1fr; }
	.sibling--next { text-align: left; }
	.sibling--next .sibling__dir { justify-content: flex-start; }
}

/* İlgili yazılar */
.related {
	padding: 48px 0 56px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.related__all { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.related__all:hover { color: var(--text); }
.related__all .icon { width: 14px; height: 14px; }

.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.card-compact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--bg);
	transition: border-color .15s;
}

.card-compact:hover { border-color: var(--line-strong); }
.card-compact__meta { color: var(--muted); font-size: 12px; }
.card-compact__title { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.card-compact__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.card-compact .tag-list { margin-top: auto; }

/* ==========================================================================
   Sayfa, 404
   ========================================================================== */
.page-layout { padding-top: 40px; padding-bottom: 80px; }
.article--page { max-width: 760px; margin-inline: auto; }

.not-found { max-width: 860px; padding-top: 88px; padding-bottom: 96px; }
.not-found__code { color: var(--muted); font-size: 13px; }
.not-found__title { margin: 12px 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.not-found__text { margin-bottom: 24px; color: var(--muted); }
.not-found__label { margin: 56px 0 16px; }

/* ==========================================================================
   Yorumlar
   ========================================================================== */
.comments-wrap { padding-top: 48px; padding-bottom: 80px; }
.comments { max-width: 760px; }
.comments > .section-label { margin-bottom: 16px; }
.comments__closed { color: var(--muted); }

.comment-list,
.comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: 28px; padding-left: 18px; border-left: 1px solid var(--line); }

.comment-body { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; font-size: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.comment-author .avatar { border-radius: var(--r-sm); }
.comment-author .says { display: none; }
.comment-metadata { color: var(--faint); font: 12px var(--font-mono); }
.comment-content { color: var(--text-2); font-size: 15.5px; }
.comment-content p + p { margin-top: .8em; }
.reply a { color: var(--muted); font: 600 12px var(--font-mono); }
.reply a:hover { color: var(--text); }

.comment-respond { margin-top: 40px; }
.comment-respond .section-label { margin-bottom: 14px; }
.comment-reply-title small { margin-left: auto; text-transform: none; }

.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--muted); font: 500 12px var(--font-mono); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--text);
	font: 15px var(--font-sans);
	transition: border-color .15s;
}

.comment-form input:focus,
.comment-form textarea:focus { outline: 0; border-color: var(--text); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; }
.comment-notes,
.logged-in-as { color: var(--muted); font-size: 13.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 40px;
}

.brand--footer { gap: 10px; }
.brand--footer .brand__mark { width: 28px; height: 28px; font-size: 11px; }
.site-footer__about p { max-width: 44ch; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }

.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }

.social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	color: var(--text);
	transition: border-color .15s, background-color .15s;
}

.social a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.social .icon { width: 16px; height: 16px; }

.site-footer__title { margin-bottom: 14px; color: var(--muted); font: 600 11.5px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }

.site-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer__links + .site-footer__links { margin-top: 8px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.site-footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.site-footer__links .icon { width: 13px; height: 13px; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid var(--line);
	color: var(--faint);
	font: 12px var(--font-mono);
}

.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.to-top:hover { color: var(--text); }

@media (max-width: 760px) {
	:root { --gutter: 16px; --header-h: 58px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.site-footer__about { grid-column: 1 / -1; }
	.brand__tagline { display: none; }
	.topics-strip { padding: 28px 0; }
	.topics-strip__list > li { flex-basis: 40%; }
	.topic-tile { padding: 14px; gap: 10px; }
	.topic-tile__code { width: 38px; height: 38px; font-size: 11px; }
	.topic-tile__arrow { display: none; }
	.layout { padding-top: 28px; }
	.prose { font-size: 16.5px; }
}

@media (max-width: 420px) {
	.topics-strip__list > li { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header,
	.site-footer,
	.article-side,
	.siblings,
	.related,
	.comments-wrap,
	.reading-progress,
	.share { display: none !important; }
	.single-layout { display: block; }
	body { background: #fff; color: #000; }
}

/* ==========================================================================
   Kategori renkleri — az ve anlamlı: rozet, kod kutusu, çerçeve tonu, aktif durum
   ========================================================================== */
[style*="--cat"] {
	--cat-soft: color-mix(in srgb, var(--cat) 9%, var(--surface));
	--cat-tint: color-mix(in srgb, var(--cat) 16%, var(--surface));
	--cat-line: color-mix(in srgb, var(--cat) 30%, var(--line));
	--cat-ink: color-mix(in srgb, var(--cat) 78%, var(--text));
	--cat-grid: color-mix(in srgb, var(--cat) 14%, transparent);
}

/* Rozet */
.cat-badge[style*="--cat"] { border-color: var(--cat-line); }
.cat-badge[style*="--cat"]:hover { border-color: var(--cat); }
.cat-badge[style*="--cat"] .cat-badge__code { background: var(--cat); color: #fff; }

/* Konu şeridi */
.topics-strip__list > li[style*="--cat"] .topic-tile__code {
	border-color: var(--cat-line);
	background: var(--cat-soft);
	color: var(--cat-ink);
}

.topics-strip__list > li[style*="--cat"] .topic-tile:hover .topic-tile__code {
	border-color: var(--cat);
	background: var(--cat);
	color: #fff;
}

.topics-strip__list > li[style*="--cat"] .topic-tile:hover .topic-tile__arrow { color: var(--cat-ink); }
.topics-strip__list > li[style*="--cat"] .topic-tile::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: var(--cat);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .25s;
}
.topic-tile { position: relative; }
.topics-strip__list > li[style*="--cat"] .topic-tile:hover::before { transform: scaleX(1); }

/* Konu dizini */
.ti__item[style*="--cat"] details[open] > .ti__head .ti__num,
.ti__item.is-active[style*="--cat"] .ti__num {
	border-color: var(--cat);
	background: var(--cat);
	color: #fff;
}

.ti__item[style*="--cat"] .ti__posts { border-left-color: var(--cat-line); }
.ti__item[style*="--cat"] .ti__posts .is-current::after { background: var(--cat); }

/* Kart */
.card[style*="--cat"]:hover { border-color: var(--cat-line); }

/* ---------- Pencere çerçevesi (görseller) ---------- */
.frame {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--cat-line, var(--line));
	border-radius: var(--r);
	background: var(--surface);
}

.card__media.frame { aspect-ratio: auto; border-radius: var(--r); }

.frame__bar {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 24px;
	flex: none;
	padding: 0 10px;
	border-bottom: 1px solid var(--cat-line, var(--line));
	background: var(--cat-soft, var(--surface-2));
}

.frame__bar i {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--cat, var(--line-strong));
}

.frame__bar i:nth-child(2) { opacity: .55; }
.frame__bar i:nth-child(3) { opacity: .28; }

.frame__name {
	min-width: 0;
	margin-left: 6px;
	overflow: hidden;
	color: var(--muted);
	font: 500 10.5px/1 var(--font-mono);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.frame__view {
	position: relative;
	display: block;
	flex: 1;
	padding: 10px;
	aspect-ratio: 16 / 10;
	background-color: var(--cat-soft, var(--surface-2));
	background-image:
		linear-gradient(var(--cat-grid, var(--grid)) 1px, transparent 1px),
		linear-gradient(90deg, var(--cat-grid, var(--grid)) 1px, transparent 1px);
	background-size: 14px 14px;
	background-position: -1px -1px;
}

.frame__view img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--r-sm);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 22px -12px color-mix(in srgb, var(--cat, #000) 55%, transparent);
	transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover .frame__view img,
.card .frame__view img { transform: none; }

.card:hover .frame__view img {
	transform: translateY(-3px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 28px -14px color-mix(in srgb, var(--cat, #000) 65%, transparent);
}

.frame__view .card__placeholder { background: transparent; color: var(--cat-ink, var(--faint)); }

.card--featured .frame__view { aspect-ratio: 16 / 9; padding: 14px; }

/* Yazı sayfası görseli */
.article__media.frame { margin: 32px 0 8px; background: var(--surface); }
.article__media.frame .frame__bar { height: 30px; }
.article__media.frame .frame__name { font-size: 11.5px; }
.article__media.frame .frame__view { aspect-ratio: auto; padding: 18px; }
.article__media.frame .frame__view img { height: auto; max-height: 520px; }

/* Yazı sayfasında kategori rengi */
.single-layout[style*="--cat"] .toc__item a.is-active { border-left-color: var(--cat); color: var(--text); }
.single-layout[style*="--cat"] .prose h2::before { color: var(--cat); }
.single-layout[style*="--cat"] .prose a { text-decoration-color: var(--cat); }
.single-layout[style*="--cat"] .prose blockquote { border-left-color: var(--cat); }
.single-layout[style*="--cat"] .side-box .section-label .icon { color: var(--cat-ink); }
.reading-progress[style*="--cat"] span { background: var(--cat); }

/* Kategori arşiv başlığı */
.page-head[style*="--cat"] .page-head__code { background: var(--cat); color: #fff; }

/* İlgili yazılar */
.card-compact[style*="--cat"] { box-shadow: inset 2px 0 0 var(--cat); }
.card-compact[style*="--cat"]:hover { border-color: var(--cat-line); }

@media (max-width: 760px) {
	.card .card__media.frame { aspect-ratio: auto; }
	.card .frame__bar { display: none; }
	.card .frame__view { aspect-ratio: 1; padding: 5px; }
	.card--featured .frame__bar { display: flex; }
	.card--featured .frame__view { aspect-ratio: 16 / 9; padding: 10px; }
	.article__media.frame .frame__view { padding: 10px; }
}
