/* ==========================================================================
   Betonart — tema yardımcı stilleri
   Renk, tipografi ve boşluk theme.json'dan gelir. Burada sadece
   theme.json ile ifade edilemeyen şeyler var: blok stilleri, dokular,
   küçük etkileşimler.
   ========================================================================== */

/* --- Genel ---------------------------------------------------------------- */

.betonart-icon {
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--kehribar);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Grup: Kart ----------------------------------------------------------- */

.wp-block-group.is-style-betonart-kart {
	background-color: var(--wp--preset--color--beyaz);
	border: 1px solid var(--wp--preset--color--beton);
	padding: var(--wp--preset--spacing--40);
	transition: border-color var(--wp--custom--gecis), transform var(--wp--custom--gecis), box-shadow var(--wp--custom--gecis);
}

.wp-block-group.is-style-betonart-kart:hover {
	border-color: var(--wp--preset--color--beton-koyu);
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--orta);
}

/* --- Grup: Çerçeveli ------------------------------------------------------ */

.wp-block-group.is-style-betonart-cerceve {
	border: 1px solid var(--wp--preset--color--beton);
	padding: var(--wp--preset--spacing--40);
}

.has-siyah-background-color .wp-block-group.is-style-betonart-cerceve,
.has-antrasit-background-color .wp-block-group.is-style-betonart-cerceve,
.wp-block-cover .wp-block-group.is-style-betonart-cerceve {
	border-color: var(--wp--custom--cizgi--renk-koyu);
}

/* --- Grup: Kehribar şeritli ----------------------------------------------- */

.wp-block-group.is-style-betonart-serit {
	border-left: 3px solid var(--wp--preset--color--kehribar);
	padding-left: var(--wp--preset--spacing--30);
}

/* --- Sütunlar: aralarda çizgi --------------------------------------------- */

@media (min-width: 782px) {
	.wp-block-columns.is-style-betonart-bolucu > .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--wp--preset--color--beton);
		padding-left: var(--wp--preset--spacing--40);
	}
}

/* --- Görsel: kehribar köşe ------------------------------------------------ */

.wp-block-image.is-style-betonart-kose {
	position: relative;
}

.wp-block-image.is-style-betonart-kose::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 56px;
	border-left: 4px solid var(--wp--preset--color--kehribar);
	border-bottom: 4px solid var(--wp--preset--color--kehribar);
	pointer-events: none;
}

/* --- Görsel: gri, üzerine gelince renkli ---------------------------------- */

.wp-block-image.is-style-betonart-gri img {
	filter: grayscale(1) contrast(1.05);
	transition: filter 400ms ease;
}

.wp-block-image.is-style-betonart-gri:hover img,
.wp-block-image.is-style-betonart-gri:focus-within img {
	filter: grayscale(0);
}

/* --- Başlık: altı kehribar çizgili ---------------------------------------- */

.wp-block-heading.is-style-betonart-alt-cizgi {
	padding-bottom: 0.5em;
	position: relative;
}

.wp-block-heading.is-style-betonart-alt-cizgi::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	background-color: var(--wp--preset--color--kehribar);
}

.wp-block-heading.is-style-betonart-alt-cizgi.has-text-align-center::after {
	left: 50%;
	transform: translateX(-50%);
}

/* --- Başlık: sayaç numaralı ----------------------------------------------- */

.betonart-sayac {
	counter-reset: betonart-adim;
}

.wp-block-heading.is-style-betonart-numarali {
	counter-increment: betonart-adim;
	display: flex;
	align-items: baseline;
	gap: 0.7em;
}

.wp-block-heading.is-style-betonart-numarali::before {
	content: counter(betonart-adim, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--etiket);
	font-size: 0.55em;
	font-weight: 500;
	letter-spacing: var(--wp--custom--harf-araligi--etiket);
	color: var(--wp--preset--color--kehribar);
}

/* --- Liste: tik işaretli --------------------------------------------------- */

.wp-block-list.is-style-betonart-tik {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-betonart-tik > li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.7em;
}

.wp-block-list.is-style-betonart-tik > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 1.05rem;
	height: 0.6rem;
	border-left: 2px solid var(--wp--preset--color--kehribar);
	border-bottom: 2px solid var(--wp--preset--color--kehribar);
	transform: rotate(-45deg);
}

/* --- Liste: çizgili satırlar ---------------------------------------------- */

.wp-block-list.is-style-betonart-cizgili {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-betonart-cizgili > li {
	border-bottom: 1px solid var(--wp--preset--color--beton);
	padding: 0.85em 0;
	margin: 0;
}

.wp-block-list.is-style-betonart-cizgili > li:first-child {
	border-top: 1px solid var(--wp--preset--color--beton);
}

/* --- Ayraç: kalın kehribar ------------------------------------------------ */

.wp-block-separator.is-style-betonart-kalin {
	border: none;
	height: 3px;
	width: 56px;
	max-width: 56px;
	margin-left: 0;
	background-color: var(--wp--preset--color--kehribar);
	opacity: 1;
}

.wp-block-separator.is-style-betonart-kalin.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* --- Buton: ok işaretli --------------------------------------------------- */

.wp-block-button.is-style-betonart-ok .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}

.wp-block-button.is-style-betonart-ok .wp-block-button__link::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background-color: currentColor;
	-webkit-mask: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>');
	mask: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>');
	transition: transform var(--wp--custom--gecis);
}

.wp-block-button.is-style-betonart-ok .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* --- Buton: sadece alt çizgi ---------------------------------------------- */

.wp-block-button.is-style-betonart-cizgi .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--siyah);
	border-bottom: 2px solid var(--wp--preset--color--kehribar);
	border-radius: 0;
	padding: 0.35em 0;
}

.wp-block-button.is-style-betonart-cizgi .wp-block-button__link:hover {
	background-color: transparent;
	color: var(--wp--preset--color--kehribar-koyu);
	border-bottom-color: var(--wp--preset--color--siyah);
}

.has-siyah-background-color .wp-block-button.is-style-betonart-cizgi .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-betonart-cizgi .wp-block-button__link {
	color: var(--wp--preset--color--kum);
}

/* --- Kapak: ızgara dokulu -------------------------------------------------- */

.wp-block-cover.is-style-betonart-izgara::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
}

/* --- Yazı döngüsü: çizgili liste ------------------------------------------ */

.wp-block-post-template.is-style-betonart-liste > li {
	border-bottom: 1px solid var(--wp--preset--color--beton);
	padding-bottom: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

.wp-block-post-template.is-style-betonart-liste > li:last-child {
	border-bottom: none;
}

/* --- Proje künyesi -------------------------------------------------------- */

.betonart-kunye {
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--beton);
}

.betonart-kunye__satir {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--beton);
}

.betonart-kunye dt {
	font-family: var(--wp--preset--font-family--etiket);
	font-size: var(--wp--preset--font-size--kucuk);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--harf-araligi--etiket);
	color: var(--wp--preset--color--gri);
	margin: 0;
}

.betonart-kunye dd {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--siyah);
	text-align: right;
}

/* --- Rakam vurgusu (sayılarla biz) ---------------------------------------- */

.betonart-rakam {
	font-family: var(--wp--preset--font-family--baslik);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.03em;
}

/* --- Logo şeridi ---------------------------------------------------------- */

.betonart-logolar .wp-block-image img {
	filter: grayscale(1);
	opacity: 0.55;
	transition: opacity var(--wp--custom--gecis), filter var(--wp--custom--gecis);
}

.betonart-logolar .wp-block-image:hover img {
	filter: grayscale(0);
	opacity: 1;
}

/* --- SSS (details/summary) ------------------------------------------------ */

.wp-block-details.betonart-sss {
	border-bottom: 1px solid var(--wp--preset--color--beton);
	padding: 1.1rem 0;
}

.wp-block-details.betonart-sss summary {
	font-family: var(--wp--preset--font-family--baslik);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--orta);
	color: var(--wp--preset--color--siyah);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.wp-block-details.betonart-sss summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.betonart-sss summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--etiket);
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wp--preset--color--kehribar);
	transition: transform var(--wp--custom--gecis);
	flex: 0 0 auto;
}

.wp-block-details.betonart-sss[open] summary::after {
	transform: rotate(45deg);
}

/* --- Yapışkan üst alan ---------------------------------------------------- */

.betonart-header-yapiskan {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(140%) blur(8px);
}

/* --- Şeffaf üst alan (kapak üstünde) -------------------------------------- */

.betonart-header-seffaf {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
}

.betonart-header-seffaf .wp-block-site-title a,
.betonart-header-seffaf .wp-block-navigation a {
	color: var(--wp--preset--color--kum);
}

.betonart-header-seffaf .wp-block-site-title a:hover,
.betonart-header-seffaf .wp-block-navigation a:hover {
	color: var(--wp--preset--color--kehribar);
}

/* --- Koyu zeminde gezinme ------------------------------------------------- */

.betonart-koyu .wp-block-navigation a,
.betonart-koyu .wp-block-site-title a {
	color: var(--wp--preset--color--kum);
}

.betonart-koyu .wp-block-navigation a:hover,
.betonart-koyu .wp-block-site-title a:hover {
	color: var(--wp--preset--color--kehribar);
}

/* --- Üst bilgi çubuğu (adres / telefon) ----------------------------------- */

.betonart-ust-bar {
	font-family: var(--wp--preset--font-family--etiket);
	font-size: 0.8125rem;
	letter-spacing: 0.03em;
}

.betonart-ust-bar a {
	text-decoration: none;
}

.betonart-ust-bar a:hover {
	text-decoration: underline;
}

/* --- Bölüm etiketi (eyebrow) ---------------------------------------------- */

.betonart-etiket {
	font-family: var(--wp--preset--font-family--etiket);
	font-size: var(--wp--preset--font-size--kucuk);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--harf-araligi--etiket);
	color: var(--wp--preset--color--kehribar-koyu);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.betonart-etiket::before {
	content: "";
	width: 28px;
	height: 2px;
	background-color: var(--wp--preset--color--kehribar);
	flex: 0 0 auto;
}

.betonart-etiket.has-text-align-center {
	justify-content: center;
}

.wp-block-cover .betonart-etiket,
.betonart-koyu .betonart-etiket {
	color: var(--wp--preset--color--kehribar);
}

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

.wp-block-query-pagination a {
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 0.2em;
}

.wp-block-query-pagination a:hover {
	border-bottom-color: var(--wp--preset--color--kehribar);
}

.wp-block-query-pagination-numbers .current {
	color: var(--wp--preset--color--kehribar-koyu);
}

/* --- 404 rakamı ----------------------------------------------------------- */

.betonart-404 {
	font-family: var(--wp--preset--font-family--baslik);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.05em;
	color: var(--wp--preset--color--beton);
}

/* --- İkon kutusu ---------------------------------------------------------- */

.betonart-ikon-kutu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 1px solid var(--wp--preset--color--beton);
	background-color: var(--wp--preset--color--kum);
}

.betonart-koyu .betonart-ikon-kutu,
.wp-block-cover .betonart-ikon-kutu {
	border-color: var(--wp--custom--cizgi--renk-koyu);
	background-color: transparent;
}
