/**
 * Top Announcement Bar CSS — Web Techiq Official Theme
 * Developed by MH Badhon Ahmed (Web Techiq)
 *
 * Ultra-sleek Announcement Bar with Minimalist CTA Text Link (No bulky button border/bg).
 */

/* ── MAIN BAR CONTAINER ──────────────────────── */
.wt-top-bar {
	position: relative;
	width: 100%;
	background: #0f172a;
	color: #FFFFFF;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 0.8125rem;
	line-height: 1.4;
	z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

/* Subtle Shimmer Ray Top Bar Border */
.wt-top-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 200%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 107, 0, 0) 25%,
		#ff6b00 50%,
		rgba(255, 107, 0, 0) 75%,
		transparent 100%
	);
	animation: wt-top-bar-shimmer 6s ease-in-out infinite;
}

@keyframes wt-top-bar-shimmer {
	0%   { transform: translateX(-50%); }
	100% { transform: translateX(50%);  }
}

.wt-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
	gap: 1rem;
	min-height: 38px;
}

/* ── LEFT SIDE: BADGE + TEXT ───────────────── */
.wt-top-bar-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.wt-top-bar-badge {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
	color: #FFFFFF;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 0.22rem 0.65rem;
	border-radius: 50px;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.wt-top-bar-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wt-top-bar-text strong {
	color: #FFFFFF;
	font-weight: 700;
}

/* ── RIGHT SIDE: Minimalist CTA Text Link (No Box / No Pill Background) ─ */
.wt-top-bar-right {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.wt-top-bar-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	white-space: nowrap;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.wt-top-bar-cta-link:hover,
.wt-top-bar-cta-link:focus-visible {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #ff9f00;
	outline: none;
}

.wt-top-bar-cta-icon {
	flex-shrink: 0;
	color: #ff9f00;
	transition: transform 0.2s ease;
}

.wt-top-bar-cta-link:hover .wt-top-bar-cta-icon {
	transform: translateX(4px);
	color: #ff9f00;
}

/* ── Smooth Fade-Slide Transition State ────────── */
.wt-top-bar.is-transitioning .wt-top-bar-left,
.wt-top-bar.is-transitioning .wt-top-bar-right {
	opacity: 0;
	transform: translateY(-4px);
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────── */
@media (max-width: 991px) {
	.wt-top-bar-inner {
		gap: 0.75rem;
	}

	.wt-top-bar-text {
		font-size: 0.78rem;
	}

	.wt-top-bar-right {
		display: flex !important;
		flex-shrink: 0;
	}

	.wt-top-bar-cta-link {
		padding: 0;
		font-size: 0.75rem;
		gap: 4px;
		white-space: nowrap;
	}

	.wt-top-bar-cta-icon {
		width: 12px;
		height: 12px;
	}
}

@media (max-width: 576px) {
	.wt-top-bar-inner {
		padding-top: 0.35rem;
		padding-bottom: 0.35rem;
		gap: 0.4rem;
	}

	.wt-top-bar-left {
		gap: 0.4rem;
		flex: 1 1 auto;
		min-width: 0;
	}

	.wt-top-bar-badge {
		font-size: 0.55rem;
		padding: 0.18rem 0.48rem;
		letter-spacing: 0.05em;
		flex-shrink: 0;
	}

	.wt-top-bar-text {
		font-size: 0.72rem;
		line-height: 1.25;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.wt-top-bar-right {
		display: flex !important;
		flex-shrink: 0;
	}

	.wt-top-bar-cta-link {
		padding: 0;
		font-size: 0.7rem;
		gap: 3px;
		white-space: nowrap;
	}

	.wt-top-bar-cta-icon {
		width: 11px;
		height: 11px;
	}
}

@media (max-width: 400px) {
	.wt-top-bar-inner {
		gap: 0.3rem;
	}

	.wt-top-bar-left {
		gap: 0.3rem;
	}

	.wt-top-bar-badge {
		font-size: 0.52rem;
		padding: 0.16rem 0.4rem;
	}

	.wt-top-bar-text {
		font-size: 0.68rem;
	}

	.wt-top-bar-cta-link {
		padding: 0;
		font-size: 0.68rem;
	}
}

/* ── Device Visibility Controls ───────────────── */
@media (min-width: 1025px) {
	.wt-top-bar.anbar-hide-desktop { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
	.wt-top-bar.anbar-hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
	.wt-top-bar.anbar-hide-mobile { display: none !important; }
}
