/**
 * Madde listesi (arşiv) stilleri.
 *
 * Kart görünümü atlas-cards.css'ten gelir; burada yalnızca başlık,
 * süzgeç çubuğu ve sayfalama var.
 *
 * @package astra-child
 */

.atlas-archive {
	--atlas-sahis: #8e2f3c;
	--atlas-kurum: #24566f;
	--atlas-olay: #7a5c25;
	--atlas-ink: #23201d;
	--atlas-muted: #6b6560;
	--atlas-line: #e2ded7;
	--atlas-paper: #faf9f7;
	--atlas-display: Georgia, "Iowan Old Style", "Nimbus Roman", "Times New Roman", serif;

	color: var(--atlas-ink);
}

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

/* ---------- Başlık ---------- */

.atlas-archive__head {
	padding: 52px 0 32px;
	background: var(--atlas-paper);
	border-bottom: 1px solid var(--atlas-line);
}

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

.atlas-archive__title {
	margin: 0 0 6px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: clamp(28px, 3.8vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.atlas-archive__years {
	margin: 0 0 10px;
	font-family: var(--atlas-display);
	font-style: italic;
	font-size: 1.1em;
	color: var(--atlas-muted);
	font-variant-numeric: tabular-nums;
}

.atlas-archive__desc {
	margin: 0 0 10px;
	max-width: 62ch;
	color: var(--atlas-muted);
	line-height: 1.6;
}

.atlas-archive__count {
	margin: 0;
	font-size: 0.88em;
	color: var(--atlas-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Süzgeç çubuğu ---------- */

.atlas-archive__tools {
	background: #fff;
	border-bottom: 1px solid var(--atlas-line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.atlas-archive__toolsinner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.atlas-filter,
.atlas-sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.atlas-filter__label {
	font-size: 0.75em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--atlas-muted);
	font-weight: 600;
	margin-right: 3px;
}

.atlas-filter__chip {
	display: inline-block;
	padding: 3px 11px;
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	font-size: 0.85em;
	text-decoration: none;
	color: var(--atlas-ink);
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.atlas-filter__chip:hover,
.atlas-filter__chip:focus {
	border-color: var(--atlas-ink);
}

.atlas-filter__chip.is-active {
	background: var(--atlas-sahis);
	border-color: var(--atlas-sahis);
	color: #fff;
}

.atlas-sort__link {
	font-size: 0.88em;
	text-decoration: none;
	color: var(--atlas-muted);
	padding-bottom: 2px;
	border-bottom: 1.5px solid transparent;
	white-space: nowrap;
}

.atlas-sort__link:hover,
.atlas-sort__link:focus {
	color: var(--atlas-ink);
}

.atlas-sort__link.is-active {
	color: var(--atlas-ink);
	border-bottom-color: var(--atlas-sahis);
	font-weight: 500;
}

/* ---------- Gövde ---------- */

.atlas-archive__body {
	padding-top: 36px;
	padding-bottom: 60px;
}

.atlas-archive__empty {
	padding: 40px 0;
	color: var(--atlas-muted);
	text-align: center;
}

/* ---------- Sayfalama ---------- */

.atlas-archive .ast-pagination,
.atlas-archive .navigation.pagination {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--atlas-line);
}

.atlas-archive .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.atlas-archive .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	text-align: center;
	text-decoration: none;
	color: var(--atlas-ink);
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}

.atlas-archive .page-numbers:hover,
.atlas-archive .page-numbers:focus {
	border-color: var(--atlas-ink);
}

.atlas-archive .page-numbers.current {
	background: var(--atlas-ink);
	border-color: var(--atlas-ink);
	color: #fff;
}

.atlas-archive .page-numbers.dots {
	border-color: transparent;
}

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

@media (max-width: 780px) {
	.atlas-archive__tools {
		position: static;
	}

	.atlas-archive__toolsinner {
		justify-content: flex-start;
	}

	.atlas-filter {
		width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
	}
}

/* ---------- Arama ve 404 ---------- */

.atlas-searchform {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin-top: 16px;
}

.atlas-searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 14px;
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	background: #fff;
	font-size: 0.95em;
	color: var(--atlas-ink);
}

.atlas-searchform input[type="search"]:focus {
	outline: 2px solid var(--atlas-sahis);
	outline-offset: 1px;
	border-color: var(--atlas-sahis);
}

.atlas-searchform button {
	flex: none;
	padding: 9px 20px;
	border: 1px solid var(--atlas-sahis);
	border-radius: 3px;
	background: var(--atlas-sahis);
	color: #fff;
	font-size: 0.95em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.atlas-searchform button:hover,
.atlas-searchform button:focus {
	background: var(--atlas-ink);
	border-color: var(--atlas-ink);
}

.atlas-search__group {
	margin: 0 0 18px;
	font-family: var(--atlas-display);
	font-weight: 600;
	font-size: 1.25em;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-search__group + .atlas-cards,
.atlas-search__group + .atlas-search__list {
	margin-bottom: 40px;
}

.atlas-cards + .atlas-search__group,
.atlas-search__links + .atlas-search__group {
	margin-top: 44px;
}

.atlas-search__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atlas-search__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-search__list span {
	flex: none;
	font-size: 0.8em;
	color: var(--atlas-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.atlas-search__empty {
	max-width: 62ch;
	padding: 24px 0 8px;
}

.atlas-search__empty p {
	margin: 0 0 12px;
}

.atlas-search__hint {
	padding: 12px 16px;
	background: var(--atlas-paper);
	border-left: 3px solid var(--atlas-line);
	font-size: 0.92em;
	color: var(--atlas-muted);
}

.atlas-search__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.atlas-search__links .atlas-filter__chip span {
	color: var(--atlas-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Araç çubuğundaki arama ---------- */

.atlas-archive__search {
	display: flex;
	gap: 0;
	flex: 0 1 240px;
	min-width: 170px;
}

.atlas-archive__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 11px;
	border: 1px solid var(--atlas-line);
	border-right: none;
	border-radius: 3px 0 0 3px;
	background: #fff;
	font-size: 0.86em;
	color: var(--atlas-ink);
}

.atlas-archive__search input[type="search"]:focus {
	outline: none;
	border-color: var(--atlas-sahis);
}

.atlas-archive__search button {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	border: 1px solid var(--atlas-line);
	border-radius: 0 3px 3px 0;
	background: var(--atlas-paper);
	color: var(--atlas-muted);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.atlas-archive__search button:hover,
.atlas-archive__search button:focus {
	background: var(--atlas-sahis);
	border-color: var(--atlas-sahis);
	color: #fff;
}

/* ---------- Arama kapsamı ---------- */

.atlas-search__scope {
	margin: 0 0 6px;
	font-size: 0.92em;
	color: var(--atlas-muted);
}

.atlas-search__scope a {
	margin-left: 8px;
	white-space: nowrap;
}

@media (max-width: 780px) {
	.atlas-archive__search {
		flex: 1 1 100%;
	}
}
