/* ==========================================================================
   home.css — yalnızca ana sayfada kullanılan parçalar (§3.1).
   Kart ve bülten stilleri arşivlerde de gerektiği için components.css'te.
   ========================================================================== */

/* ------------------------------------------------- Sabit arka plan */

.site-bg {
	position: fixed;
	inset: 0;
	z-index: var(--z-blob);
	overflow: hidden;
	pointer-events: none;
}

.site-bg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .15;
	filter: blur(4px);
	transform: scale(1.1);
}

.dark .site-bg__img {
	opacity: .2;
}

.site-bg__blob {
	top: -12rem;
	right: -10rem;
}

/* iOS'ta fixed + blur sürekli yeniden boyama yapıyor (§7). */
@media (max-width: 767px) {
	.site-bg {
		position: absolute;
	}
}

/* ------------------------------------------------------------- Hero */

.hero {
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: var(--nav-h);
	padding-bottom: var(--section-y);
}

.hero__title {
	max-width: 20ch;
}

.hero__subtitle {
	margin-top: 1.25rem;
	font-size: var(--text-base);
	color: hsl(var(--foreground));
}

.hero__desc {
	margin-top: 1rem;
	max-width: 480px;
	line-height: 1.7;
}

/* İstatistik kartları */

.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75rem;
	margin: 2.5rem 0 0;
	padding: 0;
	max-width: 480px;
	list-style: none;
}

.hero__stat {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.hero__stat-icon {
	display: block;
}

.hero__stat-value {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.1;
}

.hero__stat-label {
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: hsl(var(--muted-foreground));
}

/* Yatay "Hakkımda" kartı */

.hero__about {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	max-width: 480px;
}

.hero__avatar {
	flex: 0 0 auto;
	display: block;
	width: 56px;
	height: 56px;
	border: 2px solid hsl(var(--primary) / .3);
	border-radius: 50%;
	overflow: hidden;
}

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

.hero__about-body {
	display: flex;
	flex-direction: column;
	gap: .125rem;
	min-width: 0;
}

.hero__about-text {
	color: hsl(var(--muted-foreground));
	line-height: 1.5;
}

.hero__about-go {
	margin-left: auto;
	flex: 0 0 auto;
	color: hsl(var(--muted-foreground));
	transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.hero__about:hover .hero__about-go {
	transform: translateX(4px);
	color: hsl(var(--primary));
}

@media (min-width: 640px) {
	.hero__avatar {
		width: 64px;
		height: 64px;
	}
}

/* --------------------------------------- Gündem yatay zaman çizgisi */

.hscroll {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	/* Sağ kenarda solma — kaydırılacak içerik olduğunu belli eder. */
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
	mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
}

.hscroll::-webkit-scrollbar {
	display: none;
}

.hscroll.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.hscroll__track {
	position: relative;
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0 2.5rem 1rem 0;
	list-style: none;
}

/* Kartların üstünden geçen ince çizgi */
.hscroll__track::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	height: 1px;
	background: hsl(var(--border));
}

.hscroll__item {
	position: relative;
	flex: 0 0 245px;
	width: 245px;
	/* hover-lift 4px yukarı çıkıyor; overflow-y:hidden kırpmasın diye boşluk. */
	padding-top: 1.75rem;
	scroll-snap-align: start;
}

.hscroll__dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: hsl(var(--primary));
}

.hscroll__item .gundem-card {
	height: 100%;
}
