/* Üst menü: sabit üst bilgi ve genel arama (01.11.2026) */
html { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ml-ust-h, 0px) + 8px); }

.ml-ust-sabit { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; background: var(--ml-kagit); }
@media (max-width: 600px) { .admin-bar .ml-ust-sabit { top: 0; } } /* telefonda yönetim çubuğu sabit değil */
.ml-ust-sabit .ml-ust { transition: padding 0.2s ease, box-shadow 0.2s ease; }
.ml-ust-sabit .ml-logo img { transition: width 0.2s ease; }
.ml-ust-kaydi .ml-ust { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; box-shadow: 0 6px 16px -12px rgba(55, 51, 49, 0.45); }
.ml-ust-kaydi .ml-logo img { width: 128px !important; }

/* Üst bilgi düzeni: logo solda, menü ve arama sağda */
.ml-ust > .wp-block-group { gap: 0.75rem 1.5rem; align-items: center; }
.ml-ust .wp-block-navigation { margin-left: auto; }

.ml-ust-ara { position: relative; flex: 0 1 16rem; min-width: 11rem; }
.ml-ust-ara input[type="search"] {
	width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.1rem; font: inherit; font-size: 0.95rem; color: var(--ml-murekkep);
	background: var(--ml-yuzey); border: 1px solid var(--ml-cerceve); border-radius: 2px;
}
.ml-ust-ara input[type="search"]::placeholder { color: var(--ml-murekkep3); }
.ml-ust-ara input[type="search"]:focus { outline: none; border-color: var(--ml-lacivert); box-shadow: 0 0 0 1px var(--ml-lacivert), 0 0 0 4px var(--ml-lacivert-acik); }
.ml-ust-ara-simge { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--ml-murekkep3); pointer-events: none; }

.ml-ust-sonuc {
	position: absolute; right: 0; top: calc(100% + 6px); width: min(26rem, calc(100vw - 2rem)); max-height: min(70vh, 32rem); overflow-y: auto;
	padding: 0.4rem 0; background: var(--ml-yuzey); border: 1px solid var(--ml-murekkep); border-radius: 2px;
	box-shadow: 4px 4px 0 var(--ml-murekkep); z-index: 110;
}
.ml-ust-sonuc[hidden] { display: none; }
.ml-ust-grup {
	margin: 0.45rem 0 0.15rem; padding: 0 0.9rem; font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ml-murekkep3);
}
.ml-ust-oge { display: flex; flex-direction: column; padding: 0.4rem 0.9rem; color: var(--ml-murekkep); text-decoration: none; }
.ml-ust-oge-ad { font-weight: 600; line-height: 1.3; }
.ml-ust-oge-alt { font-size: 0.8125rem; color: var(--ml-murekkep3); line-height: 1.35; }
.ml-ust-oge:hover, .ml-ust-oge[aria-selected="true"] { background: var(--ml-lacivert-acik); }
.ml-ust-oge[aria-selected="true"] .ml-ust-oge-ad { color: var(--ml-lacivert); }
.ml-ust-durum { margin: 0; padding: 0.5rem 0.9rem; font-size: 0.9rem; color: var(--ml-murekkep3); font-style: italic; }

/* Dar ekran: arama kendi satırında, tam genişlik */
@media (max-width: 781px) {
	.ml-ust-ara { order: 3; flex: 1 1 100%; min-width: 0; }
	.ml-ust-sonuc { left: 0; right: 0; width: auto; }
	.ml-ust-kaydi .ml-logo img { width: 110px !important; }
}
@media (prefers-reduced-motion: reduce) { .ml-ust-sabit .ml-ust, .ml-ust-sabit .ml-logo img { transition: none; } }
@media print { .ml-ust-ara { display: none; } }
