/**
 * Anasayfa stilleri.
 *
 * Tip renkleri panel, madde şablonu ve görselleştirmelerle aynı —
 * dört yerde de şahıs bordo, kurum mavi, olay pirinç.
 *
 * Astra'nın kendi kapsayıcı genişliğini kullanmıyoruz; anasayfa tam
 * genişlikte şeritlerden oluşuyor, iç kapsayıcı .atlas-wrap ile veriliyor.
 *
 * @package astra-child
 */

.atlas-home {
	--atlas-sahis: #8e2f3c;
	--atlas-kurum: #24566f;
	--atlas-olay: #7a5c25;
	--atlas-ink: #23201d;
	--atlas-muted: #6b6560;
	--atlas-line: #e2ded7;
	--atlas-paper: #faf9f7;
	--atlas-deep: #1d1a18;

	/* Akademik bir referans eseri için başlıklarda serif. Dış kaynak
	   yüklemiyoruz; Georgia Windows/Mac'te, Nimbus Roman Linux'ta var,
	   üçü de Türkçe karakterleri tam destekliyor. */
	--atlas-display: Georgia, "Iowan Old Style", "Nimbus Roman", "Times New Roman", serif;

	width: 100%;
	max-width: none;
	padding: 0;
	color: var(--atlas-ink);
}

.atlas-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.atlas-section {
	padding: 76px 0;
}

/* Ritim: bölümler dönüşümlü zeminde. Beş bölümü aynı beyaz üzerinde
   ince çizgiyle ayırmak tekdüze duruyordu. */
.atlas-gates,
.atlas-featured {
	background: #fff;
}

.atlas-periods,
.atlas-cats {
	background: var(--atlas-paper);
	border-top: 1px solid var(--atlas-line);
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-section__head {
	max-width: 62ch;
	margin-bottom: 32px;
}

.atlas-section__head h2 {
	margin: 0 0 8px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: clamp(24px, 2.8vw, 33px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.atlas-section__head p {
	margin: 0;
	color: var(--atlas-muted);
	line-height: 1.6;
}

/* ---------- Giriş ---------- */

.atlas-hero {
	padding: 72px 0 64px;
	background: var(--atlas-paper);
}

.atlas-hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
}

.atlas-hero--noimage .atlas-hero__inner {
	grid-template-columns: 1fr 0.6fr;
}

.atlas-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 0.8em;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--atlas-sahis);
	font-weight: 600;
}

.atlas-hero__title {
	margin: 0 0 14px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: clamp(30px, 4.6vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.atlas-hero__sub {
	margin: 0 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--atlas-line);
	font-family: var(--atlas-display);
	font-size: 1.15em;
	font-style: italic;
	color: var(--atlas-muted);
}

.atlas-hero__lead {
	margin: 0 0 26px;
	max-width: 60ch;
	line-height: 1.7;
}

.atlas-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.atlas-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px;
}

.atlas-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--atlas-ink);
	border-radius: 3px;
	text-decoration: none;
	color: var(--atlas-ink);
	font-size: 0.95em;
	line-height: 1.4;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.atlas-btn:hover,
.atlas-btn:focus {
	background: var(--atlas-ink);
	color: #fff;
}

.atlas-btn--primary {
	background: var(--atlas-sahis);
	border-color: var(--atlas-sahis);
	color: #fff;
}

.atlas-btn--primary:hover,
.atlas-btn--primary:focus {
	background: var(--atlas-deep);
	border-color: var(--atlas-deep);
}

/* ---------- Sayılar ---------- */

.atlas-stats {
	background: var(--atlas-deep);
	color: #f2efec;
}

.atlas-stats__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.09);
}

.atlas-stat {
	padding: 30px 22px;
	background: var(--atlas-deep);
	text-decoration: none;
	color: inherit;
}

a.atlas-stat:hover,
a.atlas-stat:focus {
	background: #262220;
}

.atlas-stat b {
	display: block;
	font-family: var(--atlas-display);
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.atlas-stat span {
	display: block;
	margin-top: 4px;
	font-size: 0.78em;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(242, 239, 236, 0.6);
}

.atlas-stat--sahis b { color: #e5919c; }
.atlas-stat--kurum b { color: #85b7d1; }
.atlas-stat--olay  b { color: #d6b878; }
.atlas-stat--target b { color: rgba(242, 239, 236, 0.5); }

/* ---------- Görselleştirme kapıları ---------- */

.atlas-gates__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

/* Görselleştirme her zaman üç tane. auto-fit geniş ekranda dört sütun
   üretip sonda boş hücre bırakıyordu. */
@media (min-width: 900px) {
	.atlas-gates__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.atlas-gate {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.atlas-gate:hover,
.atlas-gate:focus {
	border-color: var(--atlas-ink);
	transform: translateY(-2px);
}

.atlas-gate h3 {
	margin: 0 0 8px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: 1.25em;
}

.atlas-gate p {
	margin: 0 0 18px;
	color: var(--atlas-muted);
	font-size: 0.92em;
	line-height: 1.6;
	flex: 1 1 auto;
}

.atlas-gate__go {
	font-size: 0.9em;
	font-weight: 500;
}

.atlas-gate__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	border-radius: 3px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
}

/* İkonlar gömülü SVG — dış istek yok. */
.atlas-gate--graph .atlas-gate__icon {
	background-color: #f4e6e8;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e2f3c' stroke-width='1.6'%3E%3Ccircle cx='12' cy='5' r='2.4'/%3E%3Ccircle cx='5' cy='18' r='2.4'/%3E%3Ccircle cx='19' cy='18' r='2.4'/%3E%3Cpath d='M10.6 7 6.4 15.7M13.4 7l4.2 8.7M7.4 18h9.2'/%3E%3C/svg%3E");
}

.atlas-gate--timeline .atlas-gate__icon {
	background-color: #e2edf3;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324566f' stroke-width='1.6'%3E%3Cpath d='M3 19h18'/%3E%3Cpath d='M6 19v-4M6 15h7'/%3E%3Cpath d='M10 15V9M10 9h9'/%3E%3Ccircle cx='19' cy='9' r='1.6'/%3E%3Ccircle cx='13' cy='15' r='1.6'/%3E%3C/svg%3E");
}

.atlas-gate--map .atlas-gate__icon {
	background-color: #f3eddd;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5c25' stroke-width='1.6'%3E%3Cpath d='M9 4 3 6.5v13L9 17l6 2.5 6-2.5v-13L15 7z'/%3E%3Cpath d='M9 4v13M15 7v12.5'/%3E%3C/svg%3E");
}

/* ---------- Dönemler ---------- */

/*
 * Izgara kutular yerine bağlı bir zaman bandı. Dönemler kronolojik bir
 * dizi; yapının kendisi bunu söylemeli. Yatay bir çizgi bütün dönemleri
 * kat ediyor, her dönem çizgi üstünde bir nokta olarak duruyor.
 */

.atlas-periods__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	overflow-x: auto;
	scrollbar-width: thin;
}

.atlas-period {
	flex: 1 1 0;
	min-width: 152px;
}

.atlas-period > a,
.atlas-period > span {
	position: relative;
	display: block;
	height: 100%;
	padding: 46px 18px 22px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.atlas-period > a:hover,
.atlas-period > a:focus {
	background: rgba(142, 47, 60, 0.04);
}

/* Bütün dönemleri kat eden çizgi. */
.atlas-period > a::before,
.atlas-period > span::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 26px;
	height: 1px;
	background: var(--atlas-line);
}

/* Çizgi üstündeki nokta. */
.atlas-period > a::after,
.atlas-period > span::after {
	content: "";
	position: absolute;
	left: 18px;
	top: 21px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--atlas-sahis);
	box-shadow: 0 0 0 4px var(--atlas-paper);
}

/* Süregelen dönem dolu nokta ile işaretli. */
.atlas-period:last-child > a::after,
.atlas-period:last-child > span::after {
	background: var(--atlas-sahis);
}

.atlas-period__no {
	display: block;
	font-size: 0.72em;
	letter-spacing: 0.12em;
	color: var(--atlas-muted);
	font-variant-numeric: tabular-nums;
	margin-bottom: 5px;
}

.atlas-period__label {
	display: block;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: 1.02em;
	line-height: 1.25;
	margin-bottom: 4px;
}

.atlas-period__years {
	display: block;
	font-size: 0.85em;
	color: var(--atlas-muted);
	font-variant-numeric: tabular-nums;
}

.atlas-period__count {
	display: inline-block;
	margin-top: 10px;
	padding: 1px 8px;
	border: 1px solid var(--atlas-line);
	border-radius: 10px;
	background: #fff;
	font-size: 0.75em;
	color: var(--atlas-muted);
}

/* ---------- Kategoriler ---------- */

.atlas-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.atlas-cat {
	display: grid;
	grid-template-columns: minmax(120px, 210px) 1fr auto;
	align-items: center;
	gap: 14px;
}

.atlas-cat__bar {
	display: block;
	height: 8px;
	border-radius: 2px;
	background: var(--atlas-paper);
	border: 1px solid var(--atlas-line);
	overflow: hidden;
}

.atlas-cat__bar i {
	display: block;
	height: 100%;
	background: var(--atlas-sahis);
	opacity: 0.75;
}

.atlas-cat__sayi {
	font-variant-numeric: tabular-nums;
	color: var(--atlas-muted);
	font-size: 0.9em;
	min-width: 3.5ch;
	text-align: right;
}

/* ---------- Proje hakkında ---------- */

/* Kategoriler krem zeminde bitiyor; "Proje hakkında" beyaza dönmezse
   iki bölüm birbirine yapışıyor ve ritim sonda bozuluyor. */
.atlas-about {
	background: #fff;
}

.atlas-about__inner {
	max-width: 720px;
}

.atlas-about__inner h2 {
	margin: 0 0 14px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: clamp(24px, 2.8vw, 33px);
}

.atlas-about__text {
	line-height: 1.75;
}

.atlas-notice {
	padding: 12px 16px;
	margin: 24px 0;
	background: #fcf9e8;
	border-left: 4px solid #dba617;
}

/* ---------- Dar ekran ---------- */

@media (max-width: 880px) {
	.atlas-hero__inner,
	.atlas-hero--noimage .atlas-hero__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.atlas-hero {
		padding: 48px 0 40px;
	}

	.atlas-section {
		padding: 48px 0;
	}
}

@media (max-width: 620px) {
	/* Dar ekranda bant dikeye döner; çizgi sola geçer. */
	.atlas-periods__list {
		flex-direction: column;
		overflow-x: visible;
	}

	.atlas-period > a,
	.atlas-period > span {
		padding: 12px 0 12px 34px;
	}

	.atlas-period > a::before,
	.atlas-period > span::before {
		left: 5px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 1px;
		height: auto;
	}

	.atlas-period > a::after,
	.atlas-period > span::after {
		left: 0;
		top: 15px;
	}

	.atlas-period__count {
		margin-top: 6px;
	}
}

@media (max-width: 560px) {
	.atlas-cat {
		grid-template-columns: 1fr auto;
	}

	.atlas-cat__bar {
		grid-column: 1 / -1;
		order: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atlas-gate {
		transition: none;
	}

	.atlas-gate:hover,
	.atlas-gate:focus {
		transform: none;
	}
}

/* Çapaya kayarken bölüm başlığı üst menünün altında kalmasın. */
.atlas-home > section[id] {
	scroll-margin-top: 90px;
}
