/**
 * Cinemore fejléc stílusa — [cinemore_fejlec] shortcode.
 * Sticky fejléc: fix pozíció, scroll-ra háttérváltás.
 */

.cinemore-fejlec {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 48px;
	background: rgba(244, 250, 247, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

/* Scrollált állapot (JS adja hozzá). */
.cinemore-fejlec--scrolled {
	background: rgba(244, 250, 247, 0.95);
	border-bottom-color: #e0efe7;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Logo */
.cinemore-fejlec__logo {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.cinemore-fejlec__logo img {
	height: 38px;
	width: auto;
	display: block;
}

.cinemore-fejlec__logo--text {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #07130e;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

/* Navigáció */
.cinemore-fejlec__nav {
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #2c4239;
}

.cinemore-fejlec__link {
	text-decoration: none;
	color: inherit;
	transition: color 0.25s;
	position: relative;
}

.cinemore-fejlec__link:hover {
	color: #0a8f63;
}

/* Aktív menüpont aláhúzás: balról jobbra animálódik. */
.cinemore-fejlec__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 2px;
	background: #0a8f63;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.cinemore-fejlec__link--active::after {
	transform: scaleX(1);
}

/* CTA gomb */
.cinemore-fejlec__cta {
	text-decoration: none;
	background: #14c98d;
	color: #07130e;
	padding: 11px 22px;
	border-radius: 100px;
	font-weight: 700;
	transition: transform 0.25s, filter 0.25s, box-shadow 0.25s;
	white-space: nowrap;
}

.cinemore-fejlec__cta:hover {
	transform: translateY(-3px);
	filter: brightness(1.04);
	box-shadow: 0 14px 30px rgba(20, 201, 141, 0.3);
	color: #07130e;
}

/* Smooth scroll + fix header offset az anchor linkekhez. */
html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: 90px;
}

/* === Hamburger gomb (desktopon rejtett) === */
.cinemore-fejlec__hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	gap: 5px;
	z-index: 70;
}

.cinemore-fejlec__hamburger span {
	width: 24px;
	height: 2px;
	background: #07130e;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

/* X animáció amikor nyitva */
.cinemore-fejlec__hamburger--active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.cinemore-fejlec__hamburger--active span:nth-child(2) {
	opacity: 0;
}
.cinemore-fejlec__hamburger--active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* === Off-canvas overlay === */
.cinemore-fejlec__overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 19, 14, 0.5);
	z-index: 64;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cinemore-fejlec__overlay--visible {
	opacity: 1;
	visibility: visible;
}

/* === Off-canvas drawer === */
.cinemore-fejlec__offcanvas {
	position: fixed;
	top: 0;
	right: 0;
	width: 340px;
	max-width: 85vw;
	height: 100vh;
	height: 100dvh;
	background: #f4faf7;
	z-index: 65;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.3, 1);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.cinemore-fejlec__offcanvas--open {
	transform: translateX(0);
}

/* Drawer fejléc (logo + bezár) */
.cinemore-fejlec__offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.cinemore-fejlec__offcanvas-logo {
	height: 32px;
	width: auto;
	max-width: 180px;
}

.cinemore-fejlec__offcanvas-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #5a7067;
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.25s;
}

.cinemore-fejlec__offcanvas-close:hover {
	color: #07130e;
}

/* Drawer nav linkek (függőleges) */
.cinemore-fejlec__offcanvas-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.cinemore-fejlec__offcanvas-link {
	text-decoration: none;
	color: #07130e;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 17px;
	padding: 13px 0;
	border-bottom: 1px solid #e0efe7;
	transition: color 0.25s;
}

.cinemore-fejlec__offcanvas-link:hover {
	color: #0a8f63;
}

.cinemore-fejlec__offcanvas-cta {
	text-decoration: none;
	background: #14c98d;
	color: #07130e;
	padding: 14px 22px;
	border-radius: 100px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	margin-top: 16px;
	transition: transform 0.25s, filter 0.25s;
}

.cinemore-fejlec__offcanvas-cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

/* Drawer footer (kapcsolati adatok) */
.cinemore-fejlec__offcanvas-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e0efe7;
}

.cinemore-fejlec__offcanvas-footer a {
	text-decoration: none;
	color: #5a7067;
	font-size: 14.5px;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 500;
	transition: color 0.25s;
}

.cinemore-fejlec__offcanvas-footer a:hover {
	color: #0a8f63;
}

.cinemore-fejlec__offcanvas-footer span {
	color: #5a7067;
	font-size: 14.5px;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 500;
}

/* === Reszponzív === */
@media (max-width: 767px) {
	.cinemore-fejlec {
		padding: 10px 20px;
	}
	.cinemore-fejlec__nav {
		gap: 12px;
		font-size: 13px;
	}
	.cinemore-fejlec__logo img {
		height: 30px;
	}
	.cinemore-fejlec__cta {
		padding: 9px 16px;
		font-size: 13px;
	}
	/* Desktop menü linkek elrejtése, hamburger mutatása. */
	.cinemore-fejlec__link {
		display: none;
	}
	.cinemore-fejlec__hamburger {
		display: flex;
	}
}

/* Body scroll lock amikor a drawer nyitva. */
body.cinemore-fejlec-noscroll {
	overflow: hidden;
}
