/* =========================================================================
   MY Header — site geneli
   ========================================================================= */

.myhd {
	--ink: #0b1220;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--blue: #0052d4;
	--blue-2: #2f7bff;
	--green: #43e97b;
	--wa: #1ea952;
	--h-pad: 18px;

	position: fixed; left: 0; right: 0; top: 0;
	z-index: 1000;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar .myhd { top: 32px; }
@media (max-width: 782px) { body.admin-bar .myhd { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .myhd { top: 0; } }

.myhd *, .myhd *::before, .myhd *::after { box-sizing: border-box; }
.myhd a { text-decoration: none; }
.myhd ul { list-style: none; margin: 0; padding: 0; }
.myhd li { margin: 0; }
.myhd p { margin: 0; }
.myhd .myhd-ico { flex: none; display: block; }
.myhd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Üst çubuk ---------- */
.myhd-bar {
	background: linear-gradient(180deg, rgba(6, 8, 12, .72), rgba(6, 8, 12, .38));
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: background .3s, box-shadow .3s, border-color .3s;
}
.myhd.is-scrolled .myhd-bar {
	background: rgba(6, 8, 12, .9);
	border-bottom-color: rgba(255, 255, 255, .1);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
}
.myhd-wrap {
	display: flex; align-items: center; gap: 1.5rem;
	max-width: 1240px; margin: 0 auto;
	padding: var(--h-pad) clamp(16px, 4vw, 32px);
	transition: padding .3s;
}
.myhd.is-scrolled .myhd-wrap { --h-pad: 10px; }

.myhd-logo { display: inline-flex; align-items: center; flex: none; }
.myhd .myhd-logo img { display: block; width: auto; height: 60px; max-width: 240px; object-fit: contain; transition: height .3s; }
.myhd.is-scrolled .myhd-bar .myhd-logo img { height: 48px; }
.myhd-logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; }

/* ---------- Menü ---------- */
.myhd-nav { flex: 1; display: flex; justify-content: center; }
.myhd-menu { display: flex; align-items: center; gap: .25rem; }
.myhd-item { position: relative; }
.myhd .myhd-link {
	position: relative;
	display: inline-flex; align-items: center; gap: .3rem;
	margin: 0; padding: .6rem .9rem;
	border: 0; border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, .86);
	font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.2;
	cursor: pointer;
	transition: color .2s, background .2s;
}
.myhd .myhd-link .myhd-ico { opacity: .7; transition: transform .25s; }
.myhd .myhd-link:hover,
.myhd .myhd-item.is-open > .myhd-link,
.myhd .myhd-item:focus-within > .myhd-link { color: #fff; background: rgba(255, 255, 255, .08); }
.myhd .myhd-item.is-open > .myhd-link .myhd-ico { transform: rotate(180deg); }
.myhd .myhd-item.is-active > .myhd-link { color: #fff; }
.myhd .myhd-item.is-active > .myhd-link::after {
	content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--blue-2), var(--green));
}

/* Açılır paneller */
.myhd-panel {
	position: absolute; left: 50%; top: calc(100% + 12px);
	width: max-content; max-width: min(640px, calc(100vw - 32px));
	padding: .75rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 30px 60px -20px rgba(2, 6, 23, .45), 0 2px 6px rgba(2, 6, 23, .06);
	opacity: 0; visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.myhd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* fareyle geçişte boşluk kapanmasın */
.myhd-item.is-open > .myhd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1100px) {
	.myhd-item.has-panel:hover > .myhd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.myhd-item.has-panel:hover > .myhd-link .myhd-ico { transform: rotate(180deg); }
}

.myhd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); gap: .25rem; }
.myhd .myhd-cards a {
	display: flex; gap: .85rem; align-items: flex-start;
	padding: .85rem; border-radius: 12px; color: var(--ink);
	transition: background .2s;
}
.myhd .myhd-cards a:hover { background: #f1f5f9; }
.myhd-card-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, rgba(0, 82, 212, .1), rgba(67, 233, 123, .16)); color: var(--blue); }
.myhd-cards strong { display: flex; align-items: center; gap: .3rem; font-size: .93rem; font-weight: 600; line-height: 1.3; }
.myhd-cards strong .myhd-ico { opacity: .5; }
.myhd-cards small { display: block; margin-top: .2rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.myhd-panel-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
	margin-top: .5rem; padding: .8rem .9rem;
	border-radius: 12px; background: #f4f6f9;
	font-size: .84rem; color: var(--ink-2);
}
.myhd .myhd-panel-foot a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--blue); }

.myhd-panel-cols { display: grid; grid-template-columns: repeat(2, minmax(220px, 260px)); gap: 1.5rem; padding: .6rem .7rem; }
.myhd .myhd-panel-h { margin-bottom: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.myhd-areas { display: grid; gap: .4rem; }
.myhd-areas li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .65rem; border-radius: 10px; background: #f4f6f9; }
.myhd-areas li .myhd-ico { margin-top: .15rem; color: var(--blue); }
.myhd-areas li.is-primary { background: linear-gradient(135deg, #071a44, #0052d4); color: #fff; }
.myhd-areas li.is-primary .myhd-ico { color: #86efac; }
.myhd-areas strong { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.myhd-areas small { display: block; font-size: .76rem; opacity: .7; }
.myhd-links { display: grid; gap: .1rem; }
.myhd .myhd-links a {
	display: flex; align-items: center; gap: .55rem;
	padding: .45rem .55rem; border-radius: 9px;
	font-size: .9rem; color: var(--ink-2);
	transition: background .2s, color .2s;
}
.myhd .myhd-links a:hover { background: #f1f5f9; color: var(--ink); }
.myhd .myhd-links a .myhd-ico { color: var(--muted); }
.myhd .myhd-links a span { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: #eef2f7; font-size: .74rem; font-weight: 600; color: var(--muted); }
.myhd-cats i, .myhd-d-group i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--blue)); }
.myhd .myhd-more { display: inline-flex; align-items: center; gap: .3rem; margin: .5rem .55rem 0; font-size: .86rem; font-weight: 600; color: var(--blue); }

/* ---------- Sağ taraf ---------- */
.myhd-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.myhd .myhd-icon-btn {
	display: grid; place-items: center;
	width: 42px; height: 42px; margin: 0; padding: 0;
	border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	color: #fff; cursor: pointer;
	transition: background .2s, border-color .2s;
}
.myhd .myhd-icon-btn:hover, .myhd .myhd-icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.myhd .myhd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	min-height: 42px; padding: .6rem 1.05rem;
	border-radius: 12px; border: 1px solid transparent;
	font-size: .92rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.myhd .myhd-btn:hover { transform: translateY(-1px); }
.myhd .myhd-btn--ghost { border-color: rgba(255, 255, 255, .24); color: #fff; background: transparent; }
.myhd .myhd-btn--ghost:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; }
.myhd .myhd-btn--primary { background: #fff; color: var(--ink); }
.myhd .myhd-btn--primary:hover { background: #e6efff; color: var(--ink); }
.myhd .myhd-btn--wa { background: var(--wa); color: #fff; }
.myhd .myhd-btn--wa:hover { background: #22bf5d; color: #fff; }

/* Arama kutusu */
.myhd-search-wrap { position: relative; }
.myhd-searchbox {
	position: absolute; right: 0; top: calc(100% + 12px);
	width: 360px; max-width: calc(100vw - 32px);
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--line); border-radius: 14px; background: #fff;
	box-shadow: 0 30px 60px -20px rgba(2, 6, 23, .45);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.myhd-search-wrap.is-open .myhd-searchbox { opacity: 1; visibility: visible; transform: none; }
.myhd-search { display: flex; align-items: center; gap: .5rem; margin: 0; }
.myhd-search > .myhd-ico { color: var(--muted); }
.myhd .myhd-search input[type="search"] {
	flex: 1; min-width: 0; height: auto; margin: 0; padding: .6rem .2rem;
	border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent;
	color: var(--ink); font: inherit; font-size: .95rem;
	-webkit-appearance: none; appearance: none;
}
.myhd .myhd-search button[type="submit"] { flex: none; margin: 0; padding: .6rem 1rem; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1; cursor: pointer; }
.myhd-search--panel { margin-top: .8rem; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Mobil menü ---------- */
.myhd-burger, .myhd-wa-left { display: none !important; }
.myhd-drawer {
	position: fixed; inset: 0; z-index: 1001;
	display: flex; flex-direction: column;
	background: #06080c; color: #fff;
	opacity: 0; transform: translateY(-8px);
	transition: opacity .25s, transform .25s;
}
.myhd-drawer[hidden] { display: none; }
.myhd-drawer.is-open { opacity: 1; transform: none; }
body.admin-bar .myhd-drawer { top: 46px; }
.myhd-drawer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(0, 82, 212, .35), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(67, 233, 123, .14), transparent 70%); }
.myhd-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 32px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.myhd .myhd-drawer-head .myhd-logo img { height: 46px; }
.myhd-drawer-body { flex: 1; overflow-y: auto; padding: 1rem clamp(16px, 4vw, 32px) 1.5rem; -webkit-overflow-scrolling: touch; }
.myhd-search--drawer { margin-bottom: 1rem; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.myhd .myhd-search--drawer input[type="search"] { color: #fff; font-size: 1rem; }
.myhd .myhd-search--drawer input[type="search"]::placeholder { color: rgba(255, 255, 255, .5); }
.myhd-search--drawer > .myhd-ico { color: rgba(255, 255, 255, .6); }
.myhd .myhd-d-link, .myhd-d-group summary {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	padding: 1rem .25rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-size: 1.15rem; font-weight: 600; color: #fff;
	cursor: pointer; list-style: none;
}
.myhd-d-group summary::-webkit-details-marker { display: none; }
.myhd-d-group summary .myhd-ico { opacity: .6; transition: transform .25s; }
.myhd-d-group[open] summary .myhd-ico { transform: rotate(180deg); }
.myhd .myhd-d-link.is-active, .myhd-d-group.is-active summary { color: #86efac; }
.myhd-d-group ul { display: grid; gap: .1rem; padding: .5rem 0 .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.myhd .myhd-d-group a { display: flex; align-items: center; gap: .7rem; padding: .7rem .5rem; border-radius: 10px; font-size: 1rem; color: rgba(255, 255, 255, .82); }
.myhd .myhd-d-group a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.myhd .myhd-d-group a .myhd-ico { color: #86efac; }
.myhd .myhd-d-note { padding: .6rem .5rem 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.myhd-drawer-foot {
	display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
	padding: 1rem clamp(16px, 4vw, 32px) calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: rgba(6, 8, 12, .9);
}
.myhd .myhd-btn--full { grid-column: 1 / -1; min-height: 50px; font-size: 1rem; }
.myhd .myhd-drawer-foot .myhd-btn { min-height: 48px; }
body.myhd-locked { overflow: hidden; }

/* ---------- Erişilebilirlik ---------- */
.myhd a:focus-visible, .myhd button:focus-visible, .myhd summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 10px; }
.myhd .myhd-search input:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
	.myhd *, .myhd *::before, .myhd *::after { transition: none !important; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1240px) {
	.myhd-hide-md { display: none !important; }
	.myhd .myhd-link { padding-inline: .7rem; }
}
/* Mobil/tablet: solda WhatsApp, ortada logo, sağda menü */
@media (max-width: 1099px) {
	.myhd-nav, .myhd-search-wrap { display: none; }
	.myhd-burger, .myhd-wa-left { display: grid !important; }
	.myhd-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; }
	.myhd-wa-left { grid-column: 1; justify-self: start; }
	.myhd-logo { grid-column: 2; justify-self: center; }
	.myhd-actions { grid-column: 3; justify-self: end; }
	.myhd .myhd-bar .myhd-logo img { height: 62px; }
	.myhd.is-scrolled .myhd-bar .myhd-logo img { height: 50px; }
	/* Logo üstten hafif boşlukla biraz aşağıda; yan ikonlar ortada kalır. */
	.myhd-wrap { align-items: center; }
	.myhd .myhd-bar .myhd-logo { padding-top: 8px; transition: padding .3s; }
	.myhd.is-scrolled .myhd-bar .myhd-logo { padding-top: 5px; }
}
@media (max-width: 560px) {
	.myhd-actions > .myhd-btn--primary { display: none; }
	.myhd-wrap { --h-pad: 12px; }
	.myhd.is-scrolled .myhd-wrap { --h-pad: 8px; }
}
