/* Eilės Juosta: matched to siaubomokykla.lt (Kameron + Montserrat, #080808 / #E30000, pill shapes, ✦) */

:root {
	--ej-black: #080808;
	--ej-red: #e30000;
	--ej-red-deep: #a80000;
	--ej-white: #ffffff;
	--ej-h: 52px;
	--ej-top: 0px;
}

.admin-bar { --ej-top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar { --ej-top: 46px; }
}
/* WP's admin bar stops being fixed under 600px */
@media screen and (max-width: 600px) {
	.admin-bar { --ej-top: 0px; }
}

body.has-ej-bar {
	padding-top: var(--ej-h) !important;
}

/* Elementor Pro sticky header: once it sticks, sit below the bar instead of under it */
body.has-ej-bar .elementor-sticky--active {
	top: calc(var(--ej-top) + var(--ej-h)) !important;
}

.ej-bar {
	position: fixed;
	top: var(--ej-top);
	left: 0;
	right: 0;
	z-index: 99999999; /* the site header uses up to 9999999 */
	color: var(--ej-white);
	background: var(--ej-black);
	border-bottom: 2px solid var(--ej-red);
	box-shadow: 0 8px 28px rgba(227, 0, 0, 0.18);
	-webkit-font-smoothing: antialiased;
}

/* faint red glow rising from the bottom edge, like light under a door */
.ej-bar::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 120% at 50% 130%, rgba(227, 0, 0, 0.22), transparent 70%);
	pointer-events: none;
}

.ej-bar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 20px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 8px 16px;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ej-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.ej-bar__label {
	color: rgba(255, 255, 255, 0.86);
}

.ej-bar__num {
	display: inline-block;
	min-width: 2.2em;
	padding: 5px 14px 4px;
	border-radius: 41px;
	font-family: 'Kameron', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--ej-white);
	background: var(--ej-red);
	box-shadow: 0 0 16px rgba(227, 0, 0, 0.45);
}
.ej-bar__num.is-updated {
	animation: ej-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ej-bar__sep {
	color: var(--ej-red);
	font-size: 14px;
	line-height: 1;
}

.ej-bar__live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 41px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--ej-white);
}
.ej-bar__live i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ej-red);
	box-shadow: 0 0 8px var(--ej-red);
	animation: ej-flicker 4s infinite;
}

/* a failing bulb, not a heartbeat */
@keyframes ej-flicker {
	0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
	20%, 24%, 55% { opacity: 0.15; }
}
@keyframes ej-pop {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.18); background: var(--ej-white); color: var(--ej-red); }
	100% { transform: scale(1); }
}

@media (max-width: 640px) {
	.ej-bar__inner {
		gap: 6px 12px;
		padding: 7px 10px;
		font-size: 11px;
		letter-spacing: 0.04em;
	}
	.ej-bar__item { gap: 6px; }
	.ej-bar__num { padding: 4px 10px 3px; font-size: 17px; }
	.ej-bar__live { display: none; }
	.ej-bar__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ej-bar__live i,
	.ej-bar__num.is-updated { animation: none; }
}

/* Admin preview: sits in the page instead of floating */
.ej-bar--preview {
	position: relative;
	top: auto;
	z-index: 1;
}
