/* Nelov Promo: wygląd paska i popupa. Motywy = zmienne CSS (.nelov-theme--{slug}). Nowy motyw: nowy blok + wpis w class-themes.php */

/* ---------- motywy ---------- */
.nelov-theme--default {
	--np-bg: #a17888;
	--np-fg: #fff;
	--np-accent: var(--primary-color, #a17888);
	--np-cta-bg: var(--primary-color, #a17888);
	--np-cta-fg: #fff;
	--np-pop-bg: #fff;
	--np-pop-fg: var(--text-dark, #212121);
	--np-pop-muted: var(--text-gray, #5f5f5f);
}

.nelov-theme--black_week {
	--np-bg: #1c1c1c;
	--np-fg: #fff;
	--np-accent: #c9a55b;
	--np-bar-bg: linear-gradient(#c9a55b, #c9a55b) left bottom / 100% 3px no-repeat, #1c1c1c;
	--np-cta-bg: #c9a55b;
	--np-cta-fg: #1c1c1c;
	--np-pop-bg: #1c1c1c;
	--np-pop-fg: #fff;
	--np-pop-muted: #cfcfcf;
}

.nelov-theme--xmas {
	--np-bg: #14532d;
	--np-fg: #fff;
	--np-accent: #c8102e;
	--np-bell: url("../img/bells-bow.webp");
	--np-stripe: repeating-linear-gradient(135deg, #c8102e 0 10px, #fff 10px 20px);
	--np-bar-bg: var(--np-bell) no-repeat left 14% top 3px / 40px 40px, var(--np-bell) no-repeat right 14% top 3px / 40px 40px, var(--np-stripe) no-repeat left bottom / 100% 4px, #14532d;
	--np-cta-bg: #c8102e;
	--np-cta-fg: #fff;
	--np-pop-bg: #fff;
	--np-pop-fg: #14532d;
	--np-pop-muted: #4a4a4a;
}

/* ---------- pasek ---------- */
/* Slajdy leżą jeden na drugim (grid); aktywny jest widoczny, reszta przezroczysta. Każdy ma własny motyw i tło,
   więc zmiana jest płynnym przenikaniem (bez przesuwania). Wysokość = najwyższy slajd. */
.nelov-bar {
	position: relative;
	z-index: 999;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.nelov-bar[hidden],
.nelov-popup[hidden] { display: none; }

.nelov-bar__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nelov-bar__slide {
	grid-area: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	margin: 0;
	padding: 6px 48px 8px;
	box-sizing: border-box;
	background: var(--np-bar-bg, var(--np-bg));
	color: var(--np-fg);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
}

.nelov-bar__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.nelov-bar a {
	color: var(--np-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-left: 4px;
}

.nelov-bar a:hover { opacity: 0.85; }

.nelov-bar__close {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.nelov-bar__close:hover { opacity: 0.8; }

/* ---------- popup ---------- */
.nelov-popup-open { overflow: hidden; }

.nelov-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px;
	background: rgba(24, 29, 38, 0.62);
	backdrop-filter: blur(3px);
}

.nelov-popup__box {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 860px;
	max-height: 92vh;
	overflow: hidden;
	background: var(--np-pop-bg);
	color: var(--np-pop-fg);
	border-top: 3px solid var(--np-accent);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nelov-popup__media { flex: 0 0 42%; }

.nelov-popup__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 380px;
	object-fit: cover;
}

.nelov-popup__body {
	flex: 1 1 58%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 44px 40px 38px;
}

.nelov-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	background: #fff;
	color: #212121;
	border: 1px solid #8a8a8a;
	border-radius: 17px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.nelov-popup__close span[aria-hidden] { font-size: 1.4rem; line-height: 1; }

.nelov-popup__eyebrow {
	display: block;
	margin-bottom: 12px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--np-accent);
}

.nelov-popup__title {
	margin: 0 0 14px;
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--np-pop-fg);
}

.nelov-popup__divider {
	display: block;
	width: 48px;
	height: 2px;
	margin: 0 0 18px;
	background: var(--np-accent);
}

.nelov-popup__lead {
	margin: 0 0 10px;
	font-size: 1.1rem;
	line-height: 1.5;
	color: var(--np-pop-fg);
}

.nelov-popup__lead b,
.nelov-popup__lead strong { color: var(--np-accent); }

.nelov-popup__text {
	margin: 0 0 22px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--np-pop-muted);
}

.nelov-popup__cta {
	display: inline-block;
	padding: 12px 28px;
	background: var(--np-cta-bg);
	border: 2px solid var(--np-cta-bg);
	color: var(--np-cta-fg);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.nelov-popup__cta:hover { opacity: 0.88; color: var(--np-cta-fg); }

/* świąteczny popup: czerwono-biały pasek u góry zamiast zwykłej kreski */
.nelov-theme--xmas.nelov-popup .nelov-popup__box {
	border-top: 0;
	background: var(--np-stripe) no-repeat left top / 100% 5px, #fff;
}

/* ---------- telefon ---------- */
@media (max-width: 991px) {
	.nelov-bar { font-size: 12px; }
	.nelov-bar__slide { padding: 6px 40px 8px 38px; justify-content: flex-start; text-align: left; }
	.nelov-bar__close { right: 8px; }
	.nelov-theme--xmas.nelov-bar__slide {
		--np-bar-bg: var(--np-bell) no-repeat left 8px center / 26px 26px, var(--np-stripe) no-repeat left bottom / 100% 4px, #14532d;
	}
}

@media (max-width: 767px) {
	.nelov-popup__box { flex-direction: column; overflow-y: auto; }
	.nelov-popup__media { flex: none; height: 190px; }
	.nelov-popup__img { min-height: 0; }
	.nelov-popup__body { padding: 22px 20px 24px; }
	.nelov-popup__title { font-size: 1.5rem; }
}
