/*
 Theme Name:   cnk-profil
 Author:       SGnet
 Version:      1.0
 Template:     twentytwentyfive
 Text Domain:  cnk-profil
*/


/* Sticky glass header - Twenty Twenty-Five */

.wp-site-blocks > header,
header.wp-block-template-part {
	position: sticky;
	top: 10px;
	z-index: 9999;
	width: calc(100% - 24px);
	max-width: 1340px;
	margin: -11px auto 0;
	border-radius: 18px;
        background: rgb(75 75 75 / 50%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	border: 0px solid rgba(255, 255, 255, 0.45);
	overflow: hidden;
}

.wp-site-blocks > header .wp-block-group,
header.wp-block-template-part .wp-block-group {
	padding-left:0px;
}

/* Linki menu */
.wp-site-blocks > header a,
header.wp-block-template-part a {
	text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
	.wp-site-blocks > header,
	header.wp-block-template-part {
		top: 0px;
		width: calc(100% - 16px);
		margin-top: -11px;
		border-radius: 18px;
                height: 100% !important;
	}

	.wp-site-blocks > header .wp-block-group,
	header.wp-block-template-part .wp-block-group {
		padding: 5px;
	}

	/* Nie przycinaj mobilnego menu do boxa headera */
	.wp-site-blocks > header,
	header.wp-block-template-part,
	.glass-header {
		overflow: visible;
	}

	/* Mobilna nakładka menu jako pełny ekran */
	.wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100vh;
		max-width: none;
		margin: 0;
		padding: 24px;
		border-radius: 0;
		background: rgba(10, 10, 10, 0.92);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		z-index: 99999;
	}

	/* Wewnętrzny kontener menu */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 48px;
		align-items: flex-start;
	}

	/* Linki w menu */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 24px;
		line-height: 1.4;
		color: #fff;
	}

	/* Przycisk zamknięcia */
	.wp-block-navigation__responsive-container-close {
		top: 24px;
		right: 24px;
		color: #fff;
	}
}