/**
 * File: assets/css/header/topbar.css
 * Description: Desktop top utility bar styles.
 *
 * MAGIDA HEADER PASS 2.1:
 * - Topbar now scrolls away naturally instead of collapsing inside sticky header.
 * - Replaces text labels with centered SVG social icons.
 *
 * MAGIDA HEADER STABILITY PASS 13.3:
 * - Locks the topbar block size on desktop to avoid tiny height recalculations near scroll top.
 * - Keeps the topbar natural-scroll behavior; it is not hidden or animated by JavaScript.
 */

.site-topbar {
	position: relative;
	z-index: 2;

	/**
	 * MAGIDA HEADER STABILITY PASS 13.3:
	 * Use a stable block size so the sticky header has a predictable handoff point.
	 */
	height: var(--magida-topbar-height);
	min-height: var(--magida-topbar-height);
	overflow: hidden;
	background:
		linear-gradient(
			90deg,
			rgba(5, 223, 254, 0.12),
			rgba(67, 56, 240, 0.18),
			rgba(124, 106, 251, 0.14)
		),
		var(--magida-black-soft);
	border-bottom: 1px solid rgba(190, 189, 229, 0.1);
}

.site-topbar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	height: 100%;
	min-height: var(--magida-topbar-height);
	gap: 22px;
}

.site-topbar__left,
.site-topbar__right,
.site-topbar__link,
.site-topbar__item {
	display: inline-flex;
	align-items: center;
}

.site-topbar__left {
	justify-content: flex-start;
	gap: 14px;
	min-width: 0;
}

.site-topbar__right {
	justify-content: flex-end;
	gap: 12px;
}

.site-topbar__link,
.site-topbar__item,
.site-topbar__message,
.site-topbar__follow {
	color: var(--magida-text-soft);
	font-size: 0.82rem;
	line-height: 1;
	white-space: nowrap;
}

.site-topbar__message {
	color: var(--magida-white);
	font-weight: 700;
	text-align: center;
}

.site-topbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	margin-right: 7px;
	color: var(--magida-cyan);
}

.site-topbar__icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.site-topbar__separator {
	width: 1px;
	height: 15px;
	background: rgba(190, 189, 229, 0.2);
}

.site-topbar__link:hover,
.site-topbar__link:focus-visible {
	color: var(--magida-cyan);
}

.site-topbar__socials {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.site-topbar__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(190, 189, 229, 0.18);
	border-radius: var(--magida-radius-full);
	background: rgba(6, 7, 11, 0.45);
	color: var(--magida-text-soft);
	transition:
		color var(--magida-transition),
		border-color var(--magida-transition),
		box-shadow var(--magida-transition),
		transform var(--magida-transition);
}

.site-topbar__social svg {
	display: block;
	width: 15px;
	height: 15px;
}

.site-topbar__social:hover,
.site-topbar__social:focus-visible {
	border-color: rgba(5, 223, 254, 0.55);
	color: var(--magida-cyan);
	box-shadow: var(--magida-glow-soft);
	transform: translateY(-1px);
}

.site-topbar__social--whatsapp:hover,
.site-topbar__social--whatsapp:focus-visible {
	border-color: rgba(37, 211, 102, 0.55);
	color: #25d366;
}

@media (max-width: 1024px) {
	.site-topbar {
		display: none;
	}
}
