/* ==========================================================================
   MOBILE MENU — Black Edition
   Ładowany zawsze na mobile (<= 1024px)
   Nie duplikować w header-hero.css ani header-normal.css!
   ========================================================================== */

/* ---- Hamburger Toggle ---- */

.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--pure-white);
	background: none;
	border: none;
	cursor: pointer;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 24px;
	height: 24px;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile Menu Container ---- */

.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	pointer-events: none;
}

.mobile-menu.is-open {
	pointer-events: auto;
}

/* ---- Overlay (blur) ---- */
/* Blur i overlay fadują się jednocześnie z wjazdem panelu */

.mobile-menu-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu-overlay {
	opacity: 1;
}

/* ---- Panel ---- */
/* Wjeżdża bez fade — tylko transform, bez opacity */

.mobile-menu-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 320px;
	height: 100%;
	background: #0a0a0a;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	scrollbar-width: none;
}

.mobile-menu-panel::-webkit-scrollbar {
	display: none;
}

.mobile-menu-panel::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.mobile-menu-panel svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	flex-shrink: 0;
}

.mobile-menu.is-open .mobile-menu-panel {
	transform: translateX(0);
}

/* ---- Header ---- */

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	position: relative;
	z-index: 2;
}

.mobile-menu-header .site-logo-img {
	height: 28px;
	width: auto;
}

.mobile-menu-close {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.5);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}

.mobile-menu-close:hover {
	background: var(--red);
	color: var(--pure-white);
	transform: scale(1.05);
}

.mobile-menu-close svg {
	width: 15px;
	height: 15px;
}

/* ---- Navigation ---- */

.mobile-menu-nav {
	flex: 1;
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
	z-index: 2;
}

.mobile-menu-item {
	border: none;
}

.mobile-menu-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 12px;
	background: none;
	width: 100%;
	font-family: inherit;
	transition: all 0.25s ease;
	letter-spacing: 0.2px;
}

.mobile-menu-link:hover {
	background: rgba(255,255,255,0.03);
	border-color: rgba(255,255,255,0.07);
	color: var(--pure-white);
}

/* Produkty — featured glass card + red accent */

.mobile-menu-item--has-children .mobile-menu-link {
	background: #141414;
	border: 1px solid rgba(200,16,46,0.15);
	color: var(--pure-white);
	font-weight: 600;
	font-size: 15px;
	padding: 16px 16px 16px 20px;
	box-shadow:
		0 2px 16px rgba(200,16,46,0.06),
		inset 0 1px 0 rgba(255,255,255,0.04);
	position: relative;
	overflow: hidden;
}

.mobile-menu-item--has-children .mobile-menu-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: var(--red);
	border-radius: 0 2px 2px 0;
}

.mobile-menu-item--has-children .mobile-menu-link:hover {
	border-color: rgba(200,16,46,0.3);
	box-shadow:
		0 4px 28px rgba(200,16,46,0.12),
		inset 0 1px 0 rgba(255,255,255,0.04);
}

.mobile-menu-badge {
	font-size: 10px;
	font-weight: 600;
	color: var(--red);
	background: rgba(200,16,46,0.10);
	padding: 2px 9px;
	border-radius: 10px;
	letter-spacing: 0.5px;
}

.mobile-menu-link .chevron {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	transition: transform 0.3s ease;
	opacity: 0.5;
}

.mobile-menu-item--has-children .mobile-menu-link .chevron {
	opacity: 0.8;
	stroke: var(--red);
}

.mobile-menu-submenu-toggle[aria-expanded="true"] .chevron {
	transform: rotate(180deg);
}

/* ---- Submenu ---- */

.mobile-menu-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-submenu.is-open {
	max-height: 300px;
}

.mobile-menu-submenu-inner {
	padding: 6px 0 2px 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.mobile-menu-submenu .mobile-menu-subitem a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px 11px 24px;
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.2s ease;
	letter-spacing: 0.2px;
}

.mobile-menu-submenu .mobile-menu-subitem a:hover {
	color: var(--pure-white);
	background: rgba(255,255,255,0.03);
}

.mobile-menu-submenu .dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--red);
	flex-shrink: 0;
	opacity: 0.35;
}

.mobile-menu-submenu .mobile-menu-subitem a:hover .dot {
	opacity: 1;
}

/* ---- Footer ---- */

.mobile-menu-footer {
	margin-top: auto;
	padding: 14px;
	position: relative;
	z-index: 2;
}

.mobile-menu-footer-card {
	background: #141414;
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 14px;
	padding: 18px;
}

.mobile-menu-footer-label {
	font-size: var(--b-s);
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
	margin-bottom: 14px;
}

.mobile-menu-contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mobile-menu-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	transition: all 0.2s ease;
}

.mobile-menu-contact-item:hover {
	color: var(--pure-white);
}

.mobile-menu-contact-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(200,16,46,0.10);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.mobile-menu-contact-item:hover .mobile-menu-contact-icon {
	background: var(--red);
}

.mobile-menu-contact-icon svg {
	width: 14px;
	height: 14px;
	stroke: var(--red);
}

.mobile-menu-contact-item:hover .mobile-menu-contact-icon svg {
	stroke: var(--pure-white);
}

/* ---- Stagger entrance ---- */

@keyframes mmFadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu.is-open .mobile-menu-item {
	animation: mmFadeUp 0.35s ease forwards;
	opacity: 0;
}

.mobile-menu.is-open .mobile-menu-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu-item:nth-child(2) { animation-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu-item:nth-child(4) { animation-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu-item:nth-child(5) { animation-delay: 0.25s; }

/* ---- Responsive: aktywacja na mobile ---- */

@media (max-width: 1024px) {
	.mobile-menu-toggle {
		display: flex;
		margin: 0 -10px 0 0;
	}

	.mobile-menu {
		display: block;
	}
}
