/* Motto Site — proje vitrini (/projeler/): kapaklardan akan görsel duvarlı giriş, süzgeç, yıllara göre kartlar.
 * Bileşen: widgets/class-projects.php. Davranış: assets/js/projects-list.js. */

/* ---------------------------------------------------------------------------
 * Giriş: solda metin, sağda eğik ve yavaşça akan görsel duvarı
 * ------------------------------------------------------------------------ */
.motto-pl-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(66svh, 600px);
	margin-top: calc(var(--motto-hdr-h) * -1);
	padding-top: calc(var(--motto-hdr-h) + clamp(24px, 3vw, 44px));
	padding-bottom: clamp(28px, 3vw, 48px);
	overflow: hidden;
	isolation: isolate;
}

.motto-pl-hero__wall {
	position: absolute;
	z-index: -2;
	top: -12%;
	right: -6%;
	bottom: -12%;
	width: 62%;
	transform: rotate(-7deg);
	transform-origin: 50% 50%;
}

.motto-pl-mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.2vw, 18px);
	height: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

/* Sütunlar içerikleri iki kez taşır; yarısı kadar kayınca başa döner, döngü fark edilmez. */
.motto-pl-mosaic__col {
	display: flex;
	flex-direction: column;
	animation: motto-pl-up 90s linear infinite;
	will-change: transform;
}

.motto-pl-mosaic__col:nth-child(2) {
	animation-name: motto-pl-down;
	animation-duration: 110s;
}

.motto-pl-mosaic__col:nth-child(3) {
	animation-duration: 76s;
}

.motto-pl-mosaic__tile {
	position: relative;
	display: block;
	flex: none;
	aspect-ratio: 4 / 5;
	margin-bottom: clamp(12px, 1.2vw, 18px);
	overflow: hidden;
	border-radius: 18px;
	background: #161616;
}

.motto-pl-mosaic__tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.08);
}

@keyframes motto-pl-up {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(0, -50%, 0);
	}
}

@keyframes motto-pl-down {
	from {
		transform: translate3d(0, -50%, 0);
	}

	to {
		transform: translate3d(0, 0, 0);
	}
}

/* Metnin okunması için soldan koyulaşan perde. */
.motto-pl-hero__veil {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, var(--motto-bg) 0%, var(--motto-bg) 34%, rgba(18, 18, 18, 0.72) 52%, rgba(18, 18, 18, 0.12) 78%, rgba(18, 18, 18, 0.35) 100%),
		linear-gradient(0deg, var(--motto-bg) 0%, transparent 22%);
}

.motto-pl-hero__inner {
	position: relative;
	width: 100%;
	max-width: 760px;
}

.motto-pl-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(18px, 2.4vw, 30px);
	color: var(--motto-ink-3);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.motto-pl-hero__crumbs a,
.motto-pl-hero__crumbs a:visited {
	color: var(--motto-ink-2);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

.motto-pl .motto-pl-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 4.2vw, 64px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.motto-pl-hero__title em {
	font-style: normal;
	background: linear-gradient(100deg, #f0d79a, var(--motto-gold) 45%, #a77a2c);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.motto-pl-hero__text {
	max-width: 54ch;
	margin: clamp(14px, 1.4vw, 20px) 0 0;
	color: var(--motto-ink-2);
	font-size: 15.5px;
	line-height: 1.65;
}

.motto-pl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(18px, 2vw, 28px);
}

.motto-pl .motto-btn--ghost,
.motto-pl .motto-btn--ghost:visited {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
	color: #fff;
}

.motto-pl .motto-btn--ghost:hover,
.motto-pl .motto-btn--ghost:focus-visible {
	background: #fff;
	box-shadow: none;
	color: #121212;
}

.motto-pl-hero__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, auto));
	justify-content: start;
	gap: clamp(22px, 3vw, 48px);
	margin: clamp(22px, 2.6vw, 36px) 0 0;
	padding-top: clamp(14px, 1.6vw, 20px);
	border-top: 1px solid var(--motto-line);
}

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

.motto-pl-hero__stats dd {
	margin: 0;
	color: #fff;
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1;
}

.motto-pl-hero__stats dt {
	color: var(--motto-ink-3);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * Liste: başlık, süzgeç
 * ------------------------------------------------------------------------ */
/* Bu dosya yalnız proje vitrininin sayfasında yüklenir: sayfadaki sık sorulanlar da daha az boşlukla. */
.motto-sec.motto-faq {
	padding-top: clamp(32px, 3.6vw, 60px);
	padding-bottom: clamp(40px, 4.4vw, 72px);
}

.motto-sec.motto-pl-list {
	padding-top: clamp(28px, 3.2vw, 52px);
	padding-bottom: clamp(36px, 4vw, 64px);
	scroll-margin-top: calc(var(--motto-hdr-h) - 14px);
}

.motto-pl-list__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: clamp(16px, 4vw, 72px);
	align-items: end;
	margin-bottom: clamp(16px, 2vw, 24px);
}

.motto-pl-list__head .motto-h2,
.motto-pl-list__head .motto-sec__text {
	margin-bottom: 0;
}

.motto-pl-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 14px 0;
	border-top: 1px solid var(--motto-line);
	border-bottom: 1px solid var(--motto-line);
}

.motto-pl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.motto-pl button.motto-pl-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: var(--motto-ink-2);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.motto-pl button.motto-pl-chip span {
	color: var(--motto-ink-3);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

.motto-pl button.motto-pl-chip:hover {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
	color: #fff;
}

.motto-pl button.motto-pl-chip:focus-visible {
	outline: 2px solid var(--motto-gold);
	outline-offset: 3px;
}

.motto-pl button.motto-pl-chip[aria-pressed="true"] {
	background: #fff;
	box-shadow: none;
	color: #141414;
}

.motto-pl button.motto-pl-chip[aria-pressed="true"] span {
	color: rgba(20, 20, 20, 0.6);
}

.motto-pl-city {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--motto-ink-2);
}

.motto-pl-city .motto-icon {
	position: absolute;
	left: 14px;
	width: 16px;
	height: 16px;
	color: var(--motto-gold);
	pointer-events: none;
}

.motto-pl .motto-pl-city select {
	min-width: 220px;
	height: 40px;
	margin: 0;
	padding: 0 40px 0 40px;
	border: 0;
	border-radius: 999px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c9a050' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center,
		transparent;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.motto-pl .motto-pl-city select:focus-visible {
	outline: 2px solid var(--motto-gold);
	outline-offset: 3px;
}

.motto-pl .motto-pl-city select option {
	background: #1a1a1a;
	color: #fff;
}

.motto-pl-status {
	margin: 18px 0 0;
	color: var(--motto-ink-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * Kartlar: tek ızgara, en yeni yıl önce (yıl görselin köşesinde)
 * ------------------------------------------------------------------------ */
.motto-pl-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.2vw, 18px);
	margin-top: clamp(16px, 1.8vw, 24px);
}

/* Proje kartı */
.motto-plc[hidden] {
	display: none;
}

.motto-plc__link,
.motto-plc__link:visited {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #161616;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.motto-plc__link::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	pointer-events: none;
	transition: box-shadow 0.45s ease;
}

.motto-plc__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0d0d0d;
}

.motto-plc__year {
	position: absolute;
	z-index: 1;
	top: 10px;
	left: 10px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(12, 12, 12, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--motto-gold);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

.motto-plc__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 1.4s var(--motto-ease-out), filter 0.6s ease;
}

.motto-plc__media::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.55));
}

.motto-plc__body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.motto-plc__meta {
	color: var(--motto-gold);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.motto-pl .motto-plc__title {
	margin: 0;
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.motto-plc__text {
	display: -webkit-box;
	overflow: hidden;
	color: var(--motto-ink-2);
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.motto-plc__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--motto-ink-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: color 0.35s ease;
}

.motto-plc__go .motto-icon {
	width: 16px;
	height: 16px;
	color: var(--motto-gold);
	transition: transform 0.5s var(--motto-ease-out);
}

.motto-plc__link:hover .motto-plc__media img,
.motto-plc__link:focus-visible .motto-plc__media img {
	transform: scale(1.06);
}

.motto-plc__link:hover::after,
.motto-plc__link:focus-visible::after {
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.65);
}

.motto-plc__link:hover .motto-plc__go,
.motto-plc__link:focus-visible .motto-plc__go {
	color: #fff;
}

.motto-plc__link:hover .motto-plc__go .motto-icon {
	transform: translateX(5px);
}

.motto-plc__link:focus-visible {
	outline: 2px solid var(--motto-gold);
	outline-offset: 4px;
}

/* Süzgeç değişirken kartlar yumuşak geçer (beliren öğe kuralından güçlü olmalı). */
.motto-pl .motto-plc.motto-reveal.is-leaving {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	transition-delay: 0s;
}

.motto-pl-empty {
	margin-top: 28px;
	padding: clamp(28px, 4vw, 56px);
	border-radius: 22px;
	box-shadow: inset 0 0 0 1px var(--motto-line);
	text-align: center;
}

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

.motto-pl-empty p {
	margin: 0 0 16px;
	color: var(--motto-ink-2);
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
 * Duyarlı düzen
 * ------------------------------------------------------------------------ */
@media (max-width: 1279px) {
	.motto-pl-hero__wall {
		width: 70%;
		right: -14%;
	}

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

@media (max-width: 1023px) {
	/* Görsel duvarı metnin arkasına geçer. */
	.motto-pl-hero {
		min-height: 0;
		padding-top: calc(var(--motto-hdr-h) + 40px);
	}

	.motto-pl-hero__wall {
		top: -10%;
		right: -20%;
		bottom: -10%;
		width: 120%;
		opacity: 0.5;
	}

	.motto-pl-hero__veil {
		background:
			linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.78) 45%, var(--motto-bg) 100%);
	}

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

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

@media (max-width: 767px) {
	.motto-pl-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 20px;
	}

	/* Izgara: yana kayan süzgeç satırı sayfayı genişletmesin (sarmalanan esnek kutuda satır içeriği kadar genişlerdi). */
	.motto-pl-bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.motto-pl-chips {
		flex-wrap: nowrap;
		margin: 0 calc(var(--motto-pad) * -1);
		padding: 2px var(--motto-pad);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.motto-pl-chips::-webkit-scrollbar {
		display: none;
	}

	.motto-pl .motto-pl-city select {
		width: 100%;
	}

	.motto-pl-city {
		display: flex;
	}

}

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

@media (prefers-reduced-motion: reduce) {
	.motto-pl-mosaic__col {
		animation: none;
	}

	.motto-plc__media img,
	.motto-plc.is-leaving {
		transition: none;
	}
}

/* Giriş ekrandan çıkınca görsel duvarı durur (işlemciyi boşuna yormasın). */
.motto-pl-hero.is-paused .motto-pl-mosaic__col {
	animation-play-state: paused;
}
