/* Blog Yazıları Vitrini - stiller */

.bps-wrapper {
	--bps-columns: 3;
	max-width: 100%;
	margin: 32px auto;
	padding: 0 8px;
	box-sizing: border-box;
}

.bps-heading {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: #2b2b33;
	margin: 0 0 28px;
}

/* ---------- Ortak kart stili ---------- */

.bps-card {
	height: 100%;
	background: #ffffff;
	border: 1px solid #ececef;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	box-sizing: border-box;
}

.bps-card:hover {
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.bps-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.bps-image-box {
	position: relative;
	background: #f4f4f5;
	border-radius: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Varsayılan: görsel kırpılmaz, kendi oranında tamamı gösterilir */
.bps-image-box img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.35s ease;
}

/* Sabit oran istenirse (image_ratio="4/3" gibi) kutu o orana sabitlenir */
.bps-wrapper[style*="--bps-image-ratio"] .bps-image-box {
	aspect-ratio: var(--bps-image-ratio);
}

.bps-wrapper[style*="--bps-image-ratio"] .bps-image-box img {
	height: 100%;
	object-fit: cover;
}

/* Görsel yoksa yer tutucu kutu boyut kazansın */
.bps-image-box:not(:has(img)) {
	aspect-ratio: 16 / 10;
}

.bps-card-link:hover .bps-image-box img {
	transform: scale(1.03);
}

.bps-image-fallback {
	color: #c2c2c8;
}

.bps-category-badge {
	position: absolute;
	left: 10px;
	top: 10px;
	background: #ffffff;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #2b2b33;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bps-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
	background: #ffffff;
}

.bps-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 12px;
	color: #9a9aa2;
}

.bps-meta-item:not(:last-child)::after {
	content: '•';
	margin-left: 10px;
	color: #d4d4d8;
}

.bps-title {
	font-size: 16px;
	font-weight: 700;
	color: #2b2b33;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bps-excerpt {
	font-size: 13.5px;
	line-height: 1.55;
	color: #6b6b74;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bps-readmore {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #1c1c22;
}

.bps-readmore svg {
	transition: transform 0.2s ease;
}

.bps-card-link:hover .bps-readmore svg {
	transform: translateX(3px);
}

.bps-card-link:hover .bps-readmore {
	color: #b8860b;
}

/* ---------- Grid görünümü (blog sayfası) ---------- */

.bps-grid {
	display: grid;
	grid-template-columns: repeat(var(--bps-columns), 1fr);
	gap: 28px 24px;
}

/* ---------- Carousel görünümü (anasayfa) ---------- */

.bps-carousel {
	position: relative;
}

.bps-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 6px 6px 22px;
	box-sizing: border-box;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.bps-track::-webkit-scrollbar {
	display: none;
}

.bps-slide {
	flex: 0 0 calc((100% - (var(--bps-columns) - 1) * 20px) / var(--bps-columns));
	scroll-snap-align: start;
	box-sizing: border-box;
}

/* Oklar - carousel görsellerinin üzerine bindirilir */
.bps-arrow {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	position: absolute;
	top: 32%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	max-width: 40px;
	max-height: 40px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	background-color: #ffffff;
	border: none;
	outline: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
	color: #2b2b33;
	z-index: 3;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.bps-arrow--prev {
	left: 10px;
}

.bps-arrow--next {
	right: 10px;
}

.bps-arrow:hover {
	background-color: #fbd84c;
	color: #ffffff;
	transform: translateY(-50%) scale(1.05);
}

.bps-arrow:active {
	transform: translateY(-50%) scale(0.94);
}

.bps-arrow svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	pointer-events: none;
}

.bps-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	.bps-grid {
		grid-template-columns: repeat(min(3, var(--bps-columns)), 1fr);
	}
	.bps-slide {
		flex-basis: calc((100% - 3 * 20px) / 4);
	}
}

@media (max-width: 900px) {
	.bps-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.bps-slide {
		flex-basis: calc((100% - 2 * 20px) / 3);
	}
	.bps-heading {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.bps-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 14px;
	}
	.bps-slide {
		flex-basis: calc((100% - 16px) / 2);
	}
	.bps-track {
		gap: 14px;
	}
	.bps-arrow {
		width: 34px;
		height: 34px;
		min-width: 34px;
		min-height: 34px;
		max-width: 34px;
		max-height: 34px;
	}
	.bps-title {
		font-size: 14px;
	}
	.bps-excerpt {
		display: none;
	}
}
