/* HZ Oldalsó menü – alap stílusok (a változókat a bővítmény beállításai adják) */
.hzsm,
.hzsm-toggle,
.hzsm-overlay { --hz-border: rgba(255, 255, 255, .16); --hz-spring: cubic-bezier(.175, .885, .32, 1.275); }

.hzsm {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	height: 100dvh;
	width: var(--hz-w);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: var(--hz-bg);
	-webkit-backdrop-filter: blur(var(--hz-blur));
	backdrop-filter: blur(var(--hz-blur));
	border-right: 1px solid var(--hz-border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
	color: var(--hz-text);
	font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	z-index: 99990;
	overflow: hidden;
	transition: width .6s var(--hz-spring);
}
body.admin-bar .hzsm { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media (max-width: 782px) { body.admin-bar .hzsm { top: 46px; height: calc(100vh - 46px); height: calc(100dvh - 46px); } }

.hzsm:hover,
.hzsm:focus-within { width: var(--hz-w-open); }

.hzsm *, .hzsm *::before, .hzsm *::after { box-sizing: border-box; }
.hzsm ul { list-style: none; margin: 0; padding: 0; }
.hzsm a { text-decoration: none; color: inherit; }

/* Logó */
.hzsm-logo { display: flex; align-items: center; height: 80px; margin-bottom: 16px; padding-left: calc((var(--hz-w) - 36px) / 2 - 1px); white-space: nowrap; overflow: hidden; flex: none; }
.hzsm-logo-mark {
	flex: none; width: 36px; height: 36px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: var(--hz-primary); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
	transition: transform .6s;
}
.hzsm:hover .hzsm-logo-mark { transform: rotate(360deg); }
.hzsm-logo-text { display: flex; flex-direction: column; line-height: 1.05; margin-left: 12px; opacity: 0; transform: translateX(-20px); transition: opacity .3s .1s, transform .3s .1s; }
.hzsm:hover .hzsm-logo-text, .hzsm:focus-within .hzsm-logo-text { opacity: 1; transform: none; }
.hzsm-brand { font-weight: 700; font-size: 19px; color: #fff; }
.hzsm-sub { color: var(--hz-primary); font-size: 11px; letter-spacing: .24em; font-weight: 500; }

/* Lista */
.hzsm-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 8px !important; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.hzsm-list::-webkit-scrollbar { display: none; }
.hzsm-item { position: relative; }
.hzsm-link { position: relative; display: flex; align-items: center; height: 48px; border-radius: 12px; color: var(--hz-text); white-space: nowrap; transition: background .3s, box-shadow .3s, color .3s; }
.hzsm-link:hover, .hzsm-link:focus-visible { background: rgba(255, 255, 255, .1); box-shadow: 0 0 15px rgba(255, 255, 255, .08); color: var(--hz-text-hover); }
.hzsm-link:focus-visible, .hzsm-social a:focus-visible, .hzsm-toggle:focus-visible { outline: 2px solid var(--hz-primary); outline-offset: 2px; }
.hzsm-icon { flex: none; width: 48px; display: flex; align-items: center; justify-content: center; }
.hzsm-link:hover .hzsm-icon, .hzsm-link:focus-visible .hzsm-icon { color: var(--hz-primary); }
.hzsm-label { opacity: 0; transform: translateX(-10px); transition: opacity .2s, transform .2s; font-size: 15px; font-weight: 500; }
.hzsm:hover .hzsm-label, .hzsm:focus-within .hzsm-label { opacity: 1; transform: none; }

.hzsm-link.is-active { background: var(--hz-primary-soft); color: var(--hz-text-hover); }
.hzsm-link.is-active .hzsm-icon { color: var(--hz-primary); }
.hzsm-link.is-active::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--hz-primary); }

.hzsm-link.is-cta { background: var(--hz-primary); color: #fff; margin-top: 8px; }
.hzsm-link.is-cta .hzsm-icon, .hzsm-link.is-cta:hover .hzsm-icon { color: #fff; }
.hzsm-link.is-cta:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

.hzsm-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Alsó rész: social + lábléc */
.hzsm-bottom { flex: none; border-top: 1px solid var(--hz-border); padding: 12px 8px 8px; }
.hzsm-social { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hzsm:hover .hzsm-social, .hzsm:focus-within .hzsm-social { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.hzsm-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--hz-text); transition: background .3s, color .3s, transform .3s; }
.hzsm-social a:hover { background: rgba(255, 255, 255, .12); color: var(--hz-primary); transform: translateY(-2px); }
.hzsm-social .hzsm-svg { width: 20px; height: 20px; }
.hzsm-footer { padding: 8px 8px 4px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.hzsm:hover .hzsm-footer, .hzsm:focus-within .hzsm-footer { opacity: 1; }

/* Hamburger gomb + overlay (csak mobilon látszik, lásd inline CSS).
   A "button.hzsm-toggle" + !important azért kell, hogy a téma (pl. Hello Elementor) általános gombstílusa ne írja felül. */
button.hzsm-toggle {
	display: none !important; position: fixed; top: 14px; z-index: 99995;
	width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0; align-items: center; justify-content: center;
	font: inherit; line-height: 1; text-transform: none; text-decoration: none;
	border: 1px solid var(--hz-border); border-radius: 14px; cursor: pointer;
	background: var(--hz-bg-solid); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
	-webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
button.hzsm-toggle:hover, button.hzsm-toggle:focus, button.hzsm-toggle:active {
	background: var(--hz-bg-solid); color: #fff; border-color: var(--hz-border); text-decoration: none;
}
body.admin-bar button.hzsm-toggle { top: 46px; }
.hzsm-burger { position: relative; width: 22px; height: 16px; display: block; }
.hzsm-burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .2s, top .4s cubic-bezier(.22, 1, .36, 1); }
.hzsm-burger i:nth-child(1) { top: 0; }
.hzsm-burger i:nth-child(2) { top: 7px; }
.hzsm-burger i:nth-child(3) { top: 14px; }
html.hzsm-open .hzsm-burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
html.hzsm-open .hzsm-burger i:nth-child(2) { opacity: 0; }
html.hzsm-open .hzsm-burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
html.hzsm-open button.hzsm-toggle, html.hzsm-open button.hzsm-toggle:hover, html.hzsm-open button.hzsm-toggle:focus { background: var(--hz-primary); }

.hzsm-overlay { display: none; position: fixed; inset: 0; z-index: 99985; background: rgba(8, 5, 24, .6); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
html.hzsm-open .hzsm-overlay { opacity: 1; pointer-events: auto; }
.hzsm-overlay[hidden] { display: none !important; }
html.hzsm-open, html.hzsm-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.hzsm, .hzsm *, .hzsm-toggle, .hzsm-burger i, .hzsm-overlay { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
