/**
 * AIA Top Bar — stiluri frontend (mobile-first).
 *
 * @package AIA_Pro
 */

.aia-pro-top-bar {
	--aia-topbar-max: 1280px;
	--aia-topbar-left-bg: #000;
	--aia-topbar-right-bg: #e60000;
	--aia-topbar-left-color: #fff;
	--aia-topbar-right-color: #fff;
	--aia-topbar-sep-color: rgba(255, 255, 255, 0.45);
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	font-family: 'Poppins', sans-serif;
	font-size: 0.875rem;
	line-height: 1.4;
}

.aia-top-bar {
	position: relative;
	width: 100%;
	max-width: 100%;
	background: linear-gradient(
		to right,
		var(--aia-topbar-left-bg) 0 50%,
		var(--aia-topbar-right-bg) 50% 100%
	);
}

.aia-top-bar__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: var(--aia-topbar-max);
	margin-inline: auto;
	min-height: 2.5rem;
}

.aia-top-bar__left,
.aia-top-bar__right {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
}

.aia-top-bar__left {
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.5rem 0.75rem;
	padding: 0.5rem 1rem 0.5rem 0;
	color: var(--aia-topbar-left-color);
	background-color: transparent;
	z-index: 2;
}

.aia-top-bar__left::before {
	display: none;
}

.aia-top-bar__right {
	min-width: 0;
	overflow: hidden;
	padding: 0.5rem 0 0.5rem 1rem;
	color: var(--aia-topbar-right-color);
	background-color: transparent;
	z-index: 1;
}

.aia-top-bar__right::after {
	display: none;
}

.aia-top-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}

.aia-top-bar__item--currency {
	gap: 0;
}

.aia-top-bar__currency-set {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
}

.aia-top-bar__currency-sep {
	display: block;
	width: 0.35rem;
	height: 0.35rem;
	background-color: #fff;
	flex-shrink: 0;
	align-self: center;
}

.aia-top-bar__sep {
	display: inline-flex;
	align-items: center;
	color: var(--aia-topbar-sep-color);
	font-weight: 300;
	user-select: none;
	transform: skewX(-12deg);
}

.aia-top-bar__weather-icon {
	width: 1rem;
	height: 1rem;
	font-size: 1rem;
	line-height: 1;
	text-align: center;
}

.aia-top-bar__ticker {
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}

.aia-top-bar__ticker-track {
	display: flex;
	width: max-content;
	animation: aia-top-bar-marquee var(--aia-ticker-duration, 40s) linear infinite;
}

.aia-top-bar__ticker:hover .aia-top-bar__ticker-track {
	animation-play-state: paused;
}

.aia-top-bar__ticker-group {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.aia-top-bar__ticker-item {
	display: inline-flex;
	align-items: center;
	padding-right: 2rem;
	white-space: nowrap;
}

.aia-top-bar__ticker-item a {
	color: inherit;
	text-decoration: none;
}

.aia-top-bar__ticker-item a:hover {
	text-decoration: underline;
}

.aia-top-bar__ticker-dot {
	display: inline-block;
	width: 0.35rem;
	height: 0.35rem;
	margin-right: 0.75rem;
	border-radius: 50%;
	background-color: currentColor;
	opacity: 0.85;
	flex-shrink: 0;
}

@keyframes aia-top-bar-marquee {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* Compatibilitate Elementor Flexbox Container */
.elementor-widget-aia-pro-top-bar {
	width: 100%;
	flex: 1 1 100%;
	max-width: 100%;
	align-self: stretch;
}

.elementor-widget-aia-pro-top-bar > .elementor-widget-container,
.elementor-widget-aia-pro-top-bar .aia-pro-top-bar,
.elementor-widget-aia-pro-top-bar .aia-top-bar {
	max-width: 100%;
	overflow-x: clip;
}

.e-con .e-con-inner:has(> .elementor-element .aia-pro-top-bar),
.e-con.e-parent:has(.aia-pro-top-bar) {
	max-width: 100%;
	overflow-x: clip;
}

/* Desktop: format complet */
.aia-top-bar__date-short,
.aia-top-bar__weather-compact,
.aia-top-bar__currency-set--compact {
	display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.aia-top-bar__date-full,
	.aia-top-bar__weather-full,
	.aia-top-bar__currency-set--full {
		display: none;
	}

	.aia-top-bar__date-short,
	.aia-top-bar__weather-compact,
	.aia-top-bar__currency-set--compact {
		display: inline-flex;
	}

	.aia-top-bar__left {
		padding-left: 50px;
	}
}

@media (max-width: 767px) {
	.aia-top-bar {
		background: none;
	}

	.aia-top-bar__inner {
		flex-direction: column;
	}

	.aia-top-bar__right {
		order: 1;
	}

	.aia-top-bar__left {
		order: 2;
	}

	.aia-top-bar__left,
	.aia-top-bar__right {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.aia-top-bar__date-full,
	.aia-top-bar__weather-full,
	.aia-top-bar__currency-set--full {
		display: none;
	}

	.aia-top-bar__date-short,
	.aia-top-bar__weather-compact,
	.aia-top-bar__currency-set--compact {
		display: inline-flex;
	}

	.aia-top-bar__left {
		justify-content: space-evenly;
		align-items: center;
		width: 100%;
		padding: 0.625rem 20px;
		background-color: var(--aia-topbar-left-bg);
		gap: 0.5rem 0.75rem;
	}

	.aia-top-bar__right {
		padding: 0.5rem 0;
		background-color: var(--aia-topbar-right-bg);
	}

	.aia-top-bar__ticker {
		mask-image: none;
	}
}

@media (max-width: 480px) {
	.aia-top-bar__left {
		font-size: 0.8125rem;
		gap: 0.35rem 0.75rem;
	}
}
