/* PYP Tema — bileşen stilleri. Renk ve yazı ölçüleri theme.json'dan gelir. */

:root {
	--pyp-radius: 8px;
	--pyp-cizgi: var(--wp--preset--color--cizgi, #D9DDE2);
}

img, video { max-width: 100%; height: auto; }

/* Üst bölüm */
.pyp-header { border-bottom: 1px solid var(--pyp-cizgi); }
.pyp-header .wp-block-site-title a { text-decoration: none; color: inherit; }
.pyp-header .wp-block-navigation a { text-decoration: none; }
.pyp-header .wp-block-navigation a:hover { text-decoration: underline; }

/* Rozet / üst etiket */
.pyp-etiket {
	display: inline-block;
	font-size: var(--wp--preset--font-size--kucuk);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--vurgu);
}

/* Butonlar */
.pyp-wa-btn,
.wp-block-button.is-style-whatsapp .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--whatsapp, #0B6B4E);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	padding: 0.8rem 1.25rem;
	border-radius: 6px;
	line-height: 1.3;
	min-height: 48px;
}
.pyp-wa-btn:hover { background: #075A41; color: #fff; text-decoration: none; }
.pyp-wa-btn:focus-visible { outline: 2px solid var(--wp--preset--color--murekkep); outline-offset: 3px; }
.pyp-wa-btn svg { width: 1.25em; height: 1.25em; flex: none; }
.pyp-wa-not { font-size: var(--wp--preset--font-size--kucuk); color: var(--wp--preset--color--gri); margin-top: 0.5rem; max-width: 46ch; }
.pyp-wa-kutu { margin: 1.5rem 0; }

/* Mobilde sabit WhatsApp düğmesi */
.pyp-wa-sabit { display: none; }
@media (max-width: 781px) {
	.pyp-wa-sabit {
		display: flex;
		position: fixed;
		left: 1rem; right: 1rem; bottom: 1rem;
		z-index: 50;
		justify-content: center;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	}
	body { padding-bottom: 5rem; }
}

/* Izgara ve kartlar */
.pyp-izgara {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	list-style: none;
	padding: 0;
	margin: 0;
}
.pyp-kart {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pyp-cizgi);
	border-radius: var(--pyp-radius);
	overflow: hidden;
	background: #fff;
	height: 100%;
}
.pyp-kart__gorsel { aspect-ratio: 4 / 3; background: var(--wp--preset--color--zemin); overflow: hidden; }
.pyp-kart__gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pyp-kart__govde { padding: 1rem 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pyp-kart__baslik { font-size: var(--wp--preset--font-size--orta); margin: 0; line-height: 1.3; }
.pyp-kart__baslik a { color: inherit; text-decoration: none; }
.pyp-kart__baslik a::after { content: ""; position: absolute; inset: 0; } /* tüm kart tıklanabilir */
.pyp-kart { position: relative; }
.pyp-kart:focus-within { outline: 2px solid var(--wp--preset--color--vurgu); outline-offset: 2px; }
.pyp-kart__ozet { margin: 0; color: var(--wp--preset--color--gri-koyu); font-size: var(--wp--preset--font-size--kucuk); }
.pyp-kart__turler { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.pyp-kart__turler li {
	font-size: 0.8125rem; font-weight: 600;
	background: var(--wp--preset--color--vurgu-acik); color: #7A2906;
	padding: 0.15rem 0.55rem; border-radius: 999px;
}
.pyp-kart__ikincil { position: relative; z-index: 2; font-size: var(--wp--preset--font-size--kucuk); }

/* Hizmet kartları (ana sayfa) */
.pyp-hizmet-kart {
	border: 1px solid var(--pyp-cizgi);
	border-radius: var(--pyp-radius);
	padding: 1.5rem;
	height: 100%;
}
.pyp-hizmet-kart h3 a { color: inherit; }

/* Portföy filtresi */
.pyp-filtre { margin: 0 0 1.75rem; }
.pyp-filtre ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pyp-filtre a {
	display: inline-block;
	padding: 0.55rem 1rem;
	min-height: 44px;
	border: 1px solid var(--wp--preset--color--gri);
	border-radius: 999px;
	color: var(--wp--preset--color--murekkep);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--kucuk);
}
.pyp-filtre a[aria-current="page"] { background: var(--wp--preset--color--murekkep); border-color: var(--wp--preset--color--murekkep); color: #fff; }
.pyp-filtre a:hover { border-color: var(--wp--preset--color--murekkep); }

/* Proje detay */
.pyp-proje-ozet { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 2rem 0; }
.pyp-proje-ozet section { border-top: 3px solid var(--wp--preset--color--murekkep); padding-top: 0.75rem; }
.pyp-proje-ozet h2 { font-size: var(--wp--preset--font-size--orta); margin: 0 0 0.35rem; }
.pyp-proje-ozet p { margin: 0; }

.pyp-asamalar { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 1.5rem 0 2.5rem; list-style: none; padding: 0; }
.pyp-asama figure { margin: 0; }
.pyp-asama img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pyp-radius); background: var(--wp--preset--color--zemin); display: block; }
.pyp-asama figcaption { margin-top: 0.4rem; font-size: var(--wp--preset--font-size--kucuk); }
.pyp-asama figcaption strong { display: block; color: var(--wp--preset--color--murekkep); }
.pyp-asama__no {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem; color: var(--wp--preset--color--vurgu); font-weight: 700;
}

.pyp-video { margin: 2rem 0; }
.pyp-video video { width: 100%; border-radius: var(--pyp-radius); background: #000; }
.pyp-video__ozet { font-size: var(--wp--preset--font-size--kucuk); color: var(--wp--preset--color--gri-koyu); }

/* Teknik bilgiler tablosu */
.pyp-teknik { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.pyp-teknik th, .pyp-teknik td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--pyp-cizgi); vertical-align: top; }
.pyp-teknik th { width: 38%; font-weight: 600; }

/* Instagram arşivi */
.pyp-ig .pyp-kart__gorsel { aspect-ratio: 1 / 1; }
.pyp-ig__tur { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--wp--preset--color--gri); text-transform: uppercase; }
.pyp-ig__metin { font-size: var(--wp--preset--font-size--kucuk); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pyp-sayfalama { display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; }

/* Breadcrumb */
.pyp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--kucuk); }
.pyp-breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--wp--preset--color--gri); }

/* İletişim listesi */
.pyp-iletisim { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pyp-iletisim strong { display: inline-block; min-width: 7.5rem; }

/* SSS (details) */
.wp-block-details summary { cursor: pointer; font-weight: 600; padding: 0.25rem 0; }
.wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--vurgu); outline-offset: 2px; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Koyu alt bölümde bağlantılar */
footer.has-murekkep-background-color a { color: #fff; }
footer.has-murekkep-background-color .pyp-iletisim strong { color: #E6E8EB; }

/* ===== v1.1 — logo görsel dili ===== */
body { -webkit-font-smoothing: antialiased; }
.pyp-header { border-bottom: 1px solid #26262A; }
.pyp-header .wp-block-site-logo img { height: auto; max-height: 52px; width: auto; }
.pyp-header .wp-block-navigation a { color: #E6E6E8; }
.pyp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--turuncu); text-decoration: none; }
.pyp-header .pyp-menu-cta > a,
.pyp-header .pyp-menu-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--turuncu); color: #0B0B0C !important;
	padding: 0.6rem 1rem; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center;
}
.pyp-header .pyp-menu-cta > a:hover { background: #FF8A3D; }

/* WhatsApp düğmesi: marka turuncusu, siyah yazı (kontrast 6.6:1) */
.pyp-wa-btn, .wp-block-button.is-style-whatsapp .wp-block-button__link {
	background: var(--wp--preset--color--turuncu); color: #0B0B0C;
	font-family: var(--wp--preset--font-family--baslik); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; border-radius: 4px;
}
.pyp-wa-btn:hover { background: #FF8A3D; color: #0B0B0C; }
.pyp-wa-talep { display: inline-block; margin-top: 0.5rem; font-weight: 600; }

/* Koyu bölümler */
.pyp-koyu { color: #E6E6E8; }
.pyp-koyu :where(h1,h2,h3,h4) { color: #FFFFFF; }
.pyp-koyu a:not(.wp-element-button):not(.pyp-wa-btn) { color: var(--wp--preset--color--turuncu); }
.pyp-koyu .pyp-wa-not { color: #A8A8AE; }
.pyp-koyu .wp-block-button.is-style-outline .wp-block-button__link { color: #FFFFFF; border-color: #5A5A60; }
.pyp-etiket { color: var(--wp--preset--color--vurgu); font-family: var(--wp--preset--font-family--baslik); }
.pyp-koyu .pyp-etiket { color: var(--wp--preset--color--turuncu); }
.pyp-alt-cizgi { border-bottom: 4px solid var(--wp--preset--color--turuncu); }

/* Hareketli geometrik dekor (logo arka planındaki altıgen, devre ve dalga çizgileri) */
.pyp-dekor { position: relative; overflow: hidden; isolation: isolate; }
.pyp-dekor::before, .pyp-dekor::after { content: ""; position: absolute; pointer-events: none; z-index: -1; background-repeat: no-repeat; background-size: contain; }
.pyp-dekor::before { right: -40px; top: 20px; width: 440px; height: 400px; background-image: url(../dekor/altigen.svg); opacity: 0.6; animation: pyp-suzul 9s ease-in-out infinite; }
.pyp-dekor::after { right: -80px; bottom: -40px; width: 760px; height: 320px; background-image: url(../dekor/dalga.svg); opacity: 0.9; animation: pyp-dalga 12s ease-in-out infinite; }
.pyp-dekor--sol::after { right: auto; left: -100px; }
@keyframes pyp-suzul { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pyp-dalga { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-24px); } }
@media (max-width: 781px) {
	.pyp-dekor::before { width: 220px; height: 200px; right: -60px; opacity: 0.4; }
	.pyp-dekor::after { width: 420px; height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .pyp-dekor::before, .pyp-dekor::after { animation: none; } }

/* Kartlar: üstte turuncu kısa çizgi */
.pyp-hizmet-kart { position: relative; border-width: 1.5px; }
.pyp-hizmet-kart::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px; background: var(--wp--preset--color--turuncu); }
.pyp-filtre a[aria-current="page"] { background: var(--wp--preset--color--turuncu); border-color: var(--wp--preset--color--turuncu); color: #0B0B0C; }
.pyp-asama__no { color: var(--wp--preset--color--vurgu); font-family: var(--wp--preset--font-family--baslik); }

/* v1.1.1 düzeltmeler */
.wp-site-blocks > * { margin-block-start: 0; }
p.pyp-etiket { display: block; }
