/* Aydınlatma sözlüğü (widgets/class-glossary.php, assets/js/glossary.js). Renkler shell.css değişkenlerinden. */

.motto-gl {
	padding-top: clamp(28px, 4vw, 60px);
}

/* ---------------------------------------------------------------------------
 * Giriş
 * ------------------------------------------------------------------------ */
.motto-gl__hero {
	position: relative;
	padding-bottom: clamp(30px, 4vw, 56px);
}

.motto-gl__hero > :not(.motto-gl__stats) {
	max-width: 880px;
}

/* Terim ve harf sayısı: geniş ekranda girişin sağ altında. */
.motto-gl__stats {
	position: absolute;
	right: 0;
	bottom: clamp(30px, 4vw, 56px);
	display: flex;
	gap: clamp(26px, 3vw, 48px);
	margin: 0;
}

.motto-gl__stats > div {
	display: flex;
	flex-direction: column-reverse;
	gap: 6px;
}

.motto-gl__stats dd {
	margin: 0;
	color: transparent;
	font-size: clamp(48px, 6vw, 96px);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.04em;
	line-height: 0.9;
	-webkit-text-stroke: 1px rgba(201, 160, 80, 0.75);
}

.motto-gl__stats dt {
	color: var(--motto-ink-3);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

@media (max-width: 1099px) {
	.motto-gl__hero {
		display: flex;
		flex-direction: column;
	}

	.motto-gl__stats {
		position: static;
		order: 10;
		margin-top: 28px;
	}

	.motto-gl__stats dd {
		font-size: 44px;
	}
}

.motto-gl__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(22px, 3vw, 40px);
	color: var(--motto-ink-3);
	font-size: 12.5px;
}

.motto-gl__crumbs a {
	color: var(--motto-ink-2);
	text-decoration: none;
}

.motto-gl__crumbs a:hover {
	color: var(--motto-gold);
}

.motto-sec .motto-gl__title {
	margin: 14px 0 0;
	color: var(--motto-ink);
	font-size: clamp(40px, 6vw, 88px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}

.motto-gl__title em {
	color: var(--motto-gold);
	font-style: normal;
}

.motto-sec .motto-gl__text {
	max-width: 62ch;
	margin: clamp(18px, 2vw, 28px) 0 0;
	color: var(--motto-ink-2);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.7;
}

/* Arama kutusu */
.motto-gl__search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	margin-top: clamp(26px, 3vw, 40px);
}

.motto-gl__search > svg {
	position: absolute;
	left: 20px;
	width: 20px;
	height: 20px;
	color: var(--motto-gold);
	pointer-events: none;
}

.motto-sec .motto-gl__search input {
	width: 100%;
	height: 60px;
	margin: 0;
	padding: 0 110px 0 54px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	outline: 0;
	background: rgba(255, 255, 255, 0.04);
	color: var(--motto-ink);
	font-family: inherit;
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.motto-sec .motto-gl__search input::placeholder {
	color: var(--motto-ink-3);
}

.motto-sec .motto-gl__search input:focus {
	border-color: var(--motto-gold);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 4px rgba(201, 160, 80, 0.16);
}

.motto-gl__found {
	position: absolute;
	right: 22px;
	color: var(--motto-ink-3);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
 * Harf çubuğu: sayfayla kayar; üst bilgi gizlenince yukarı yaslanır.
 * ------------------------------------------------------------------------ */
.motto-gl__bar {
	position: sticky;
	z-index: 20;
	top: var(--motto-hdr-h);
	margin: 0 calc(var(--motto-pad) * -1);
	padding: 12px var(--motto-pad);
	background: rgba(18, 18, 18, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--motto-line), 0 -1px 0 var(--motto-line);
	transition: top 0.4s var(--motto-ease-out);
}

body:has(.motto-hdr.is-hidden) .motto-gl__bar {
	top: 0;
}

.motto-gl__letters {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.motto-gl__letters a,
.motto-gl__letters span {
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 34px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.motto-gl__letters a {
	color: var(--motto-ink);
	transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.motto-gl__letters a:hover,
.motto-gl__letters a:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	color: var(--motto-gold);
}

.motto-gl__letters a.is-active {
	background: var(--motto-gold);
	box-shadow: 0 0 18px rgba(201, 160, 80, 0.45);
	color: #121212;
}

.motto-gl__letters span {
	color: rgba(255, 255, 255, 0.18);
}

.motto-gl__letters a.is-dim {
	color: rgba(255, 255, 255, 0.18);
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
 * Harf grupları ve terimler
 * ------------------------------------------------------------------------ */
.motto-gl__body {
	padding-top: clamp(20px, 3vw, 40px);
}

.motto-gl__group {
	display: grid;
	grid-template-columns: clamp(90px, 11vw, 170px) minmax(0, 1fr);
	gap: clamp(16px, 3vw, 48px);
	padding: clamp(30px, 4vw, 56px) 0;
	border-bottom: 1px solid var(--motto-line);
	scroll-margin-top: calc(var(--motto-hdr-h) + 70px);
}

.motto-gl__group[hidden] {
	display: none;
}

/* Büyük harf: önce yalnızca çizgisi görünür, grup ekrana girince altınla dolar. */
.motto-sec .motto-gl__glyph {
	position: sticky;
	top: calc(var(--motto-hdr-h) + 84px);
	align-self: start;
	margin: 0;
	color: transparent;
	font-size: clamp(64px, 8vw, 128px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 0.85;
	-webkit-text-stroke: 1px rgba(201, 160, 80, 0.7);
	transition: color 0.8s ease, text-shadow 0.8s ease;
}

.motto-gl__group.is-current .motto-gl__glyph {
	color: var(--motto-gold);
	text-shadow: 0 0 40px rgba(201, 160, 80, 0.35);
}

.motto-gl__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 22px);
	margin: 0;
}

.motto-gl__term {
	position: relative;
	padding: clamp(20px, 2vw, 28px);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 0 1px var(--motto-line);
	scroll-margin-top: calc(var(--motto-hdr-h) + 80px);
	transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.motto-gl__term[hidden] {
	display: none;
}

.motto-gl__term:hover {
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.4);
}

/* Bağlantıyla gelinen terim kısa bir süre parlar. */
.motto-gl__term:target,
.motto-gl__term.is-flash {
	animation: motto-gl-flash 2.4s ease-out;
}

.motto-gl__term dt {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
}

.motto-sec .motto-gl__name {
	color: var(--motto-ink);
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-decoration: none;
}

.motto-sec .motto-gl__name:hover {
	color: var(--motto-gold);
}

.motto-gl__alias {
	color: var(--motto-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.motto-gl__term dd {
	margin: 12px 0 0;
}

.motto-sec .motto-gl__term dd p {
	margin: 0;
	color: var(--motto-ink-2);
	font-size: 14.5px;
	line-height: 1.7;
}

.motto-gl__term dd p a {
	color: var(--motto-ink);
	text-decoration: underline;
	text-decoration-color: rgba(201, 160, 80, 0.6);
	text-underline-offset: 3px;
}

.motto-gl__term dd p a:hover {
	color: var(--motto-gold);
}

.motto-sec .motto-gl__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--motto-gold);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.motto-gl__more svg {
	width: 15px;
	height: 15px;
	transition: transform 0.4s var(--motto-ease-out);
}

.motto-gl__more:hover svg {
	transform: translateX(4px);
}

/* Aramada eşleşen kısım */
.motto-gl mark {
	padding: 0 2px;
	border-radius: 3px;
	background: rgba(201, 160, 80, 0.3);
	color: inherit;
}

.motto-sec .motto-gl__empty {
	padding: clamp(40px, 6vw, 80px) 0;
	color: var(--motto-ink-2);
	font-size: 16px;
	text-align: center;
}

.motto-gl__empty a {
	margin-left: 6px;
	color: var(--motto-gold);
}

@keyframes motto-gl-flash {
	0%,
	30% {
		background: rgba(201, 160, 80, 0.12);
		box-shadow: inset 0 0 0 1px var(--motto-gold), 0 0 40px rgba(201, 160, 80, 0.25);
	}
}

@media (max-width: 1099px) {
	.motto-gl__letters {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.motto-gl__letters::-webkit-scrollbar {
		display: none;
	}

	.motto-gl__letters a,
	.motto-gl__letters span {
		min-width: 34px;
	}

	.motto-gl__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.motto-gl__group {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.motto-sec .motto-gl__glyph {
		position: static;
		font-size: 56px;
	}

	.motto-sec .motto-gl__search input {
		padding-right: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motto-gl__term:target,
	.motto-gl__term.is-flash {
		animation: none;
	}

	.motto-gl__glyph,
	.motto-gl__bar {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Sıkı düzen (gövdede .motto-sik, motto-site.php): yalnız boşluklar, kutu yükseklikleri ve sütun sayıları
 * küçülür; yazı boyutları aynı kalır, hiçbir öğe kaldırılmaz (kullanıcı tercihi, 2026-11-02).
 * ------------------------------------------------------------------------ */.motto-sik .motto-sec.motto-gl {
	padding-top: clamp(20px, 2.4vw, 36px);
}

.motto-sik .motto-gl__hero {
	padding-bottom: clamp(22px, 2.6vw, 36px);
}

.motto-sik .motto-gl__crumbs {
	margin-bottom: clamp(16px, 2vw, 26px);
}

.motto-sik .motto-gl__search {
	margin-top: clamp(18px, 2vw, 26px);
}

.motto-sik .motto-gl__stats {
	bottom: clamp(22px, 2.6vw, 36px);
}

.motto-sik .motto-gl__body {
	padding-top: 12px;
}

.motto-sik .motto-gl__group {
	grid-template-columns: clamp(80px, 8vw, 130px) minmax(0, 1fr);
	gap: clamp(14px, 2.4vw, 36px);
	padding: clamp(18px, 2vw, 28px) 0;
}

.motto-sik .motto-gl__list {
	gap: 12px;
}

.motto-sik .motto-gl__term {
	padding: 18px 20px;
	border-radius: 16px;
}

.motto-sik .motto-gl__term dd {
	margin-top: 8px;
}

.motto-sik .motto-sec .motto-gl__more {
	margin-top: 10px;
}

/* Geniş ekranda üç sütun. */
@media (min-width: 1280px) {
	.motto-sik .motto-gl__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.motto-sik .motto-gl__group {
		grid-template-columns: minmax(0, 1fr);
	}
}