/* Blog — sol içerik, sağ kategoriler */

.blog-page {
	padding: 2rem 0 3rem;
}

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 2.5rem;
	align-items: start;
}

/* —— Sol: liste / makale —— */
.blog-layout__main {
	min-width: 0;
}

.blog-list__head {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-list__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
}

.blog-list__desc {
	margin: 0.45rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-muted, #5c6570);
}

.blog-list__back {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.blog-list__back a {
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
}

.blog-list__back a:hover {
	opacity: 1;
	text-decoration: underline;
}

.blog-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.blog-list__item {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-list__item:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.blog-list__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 0;
	padding: 0;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.blog-list__item.is-current {
	border-color: rgba(30, 41, 59, 0.35);
	box-shadow: 0 0 0 1px rgba(30, 41, 59, 0.12);
}

.blog-list__item.is-current .blog-list__link {
	background: rgba(0, 0, 0, 0.02);
}

.blog-list__thumb {
	flex: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	overflow: hidden;
	background: #eef1f4;
}

.blog-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-list__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem 1.15rem;
}

.blog-list__date {
	font-size: 0.78rem;
	color: var(--text-muted, #5c6570);
	letter-spacing: 0.02em;
}

.blog-list__name {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.blog-list__excerpt {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--text-muted, #5c6570);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-empty {
	margin: 2rem 0;
	padding: 2rem;
	text-align: center;
	color: var(--text-muted, #5c6570);
	background: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
}

/* —— Makale detay —— */
.blog-article__head {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-article__back {
	margin: 0 0 0.65rem;
	font-size: 0.875rem;
}

.blog-article__back a {
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
}

.blog-article__back a:hover {
	opacity: 1;
	text-decoration: underline;
}

.blog-article__title {
	margin: 0;
	font-size: clamp(1.4rem, 3.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
}

.blog-article__date {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--text-muted, #5c6570);
}

.blog-article__lead {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--text-muted, #5c6570);
}

.blog-article__hero {
	margin: 0 0 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.blog-article__hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: cover;
}

.blog-article__body {
	line-height: 1.65;
	font-size: 1rem;
}

.blog-article__body img {
	max-width: 100%;
	height: auto;
}

.blog-article__body p {
	margin: 0 0 1rem;
}

/* Kaynakça & SSS (detay) */
.blog-post__section {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-post__section-title {
	margin: 0 0 1.25rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.blog-refs__list {
	margin: 0;
	padding: 0 0 0 1.25rem;
	list-style: decimal;
}

.blog-refs__item {
	margin: 0 0 0.85rem;
	padding-left: 0.35rem;
	line-height: 1.5;
}

.blog-refs__item:last-child {
	margin-bottom: 0;
}

.blog-refs__link,
.blog-refs__name {
	font-weight: 600;
	color: inherit;
}

.blog-refs__link {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.blog-refs__link:hover {
	opacity: 0.85;
}

.blog-refs__meta {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--text-muted, #5c6570);
}

.blog-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.blog-faq__item {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.blog-faq__question {
	padding: 0.9rem 1rem;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.blog-faq__question::-webkit-details-marker {
	display: none;
}

.blog-faq__question::after {
	content: "+";
	float: right;
	font-weight: 400;
	font-size: 1.1rem;
	line-height: 1.2;
	opacity: 0.5;
}

.blog-faq__item[open] .blog-faq__question::after {
	content: "−";
}

.blog-faq__answer {
	padding: 0 1rem 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text-muted, #5c6570);
}

/* —— Sağ: kategoriler —— */
.blog-sidebar {
	position: sticky;
	top: calc(var(--header-offset, 80px) + 1rem);
}

.blog-sidebar__box {
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: #fafbfc;
}

.blog-sidebar__title {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted, #5c6570);
}

.blog-sidebar__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.blog-sidebar__item a {
	display: block;
	padding: 0.55rem 0.65rem;
	border-radius: 6px;
	font-size: 0.925rem;
	line-height: 1.35;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease, color 0.15s ease;
}

.blog-sidebar__item a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.blog-sidebar__item.is-active a {
	background: #1e293b;
	color: #fff;
	font-weight: 600;
}

/* —— Mobil —— */
@media (max-width: 1100px) {
	.blog-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.blog-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.blog-sidebar {
		position: static;
	}

	.blog-sidebar__box {
		background: #fff;
	}

	.blog-sidebar__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.blog-sidebar__item a {
		padding: 0.4rem 0.85rem;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 999px;
		font-size: 0.85rem;
	}

	.blog-sidebar__item.is-active a {
		border-color: #1e293b;
	}
}

@media (max-width: 560px) {
	.blog-page {
		padding: 1.25rem 0 2rem;
	}

	.blog-list {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
