.tb {
	position: relative;
	z-index: 30;
	background: linear-gradient(100deg, var(--tb-bg1, #0f2a5c) 0%, var(--tb-bg2, #1668e3) 100%);
	color: var(--tb-fg, #fff);
	font-size: var(--tb-fs, 12px);
	overflow: hidden;
}

.tb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%);
	pointer-events: none;
}

.tb--sticky {
	position: sticky;
	top: 0;
	z-index: 1040;
}

.tb__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
}

.tb--compact .tb__inner { min-height: 34px; }
.tb--normal .tb__inner { min-height: 42px; }
.tb--large .tb__inner { min-height: 52px; }

.tb__zone {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.tb__zone--left { justify-content: flex-start; }
.tb__zone--center { justify-content: center; flex: 1 1 auto; overflow: hidden; }
.tb__zone--right { justify-content: flex-end; flex-shrink: 0; }

.tb__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.92;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

a.tb__item:hover {
	opacity: 1;
	color: inherit;
}

a.tb__item:hover .tb__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

a.tb__item:hover .tb__icon {
	transform: scale(1.08);
}

.tb__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tb-accent, #fbbf24);
	transition: transform 0.18s ease;
}

.tb__icon svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tb__item--mobile { display: none; }

/* ── Kayan yazı ─────────────────────────────────────────── */
.tb__marquee {
	position: relative;
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tb__marquee-track {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	white-space: nowrap;
	animation: tb-scroll 28s linear infinite;
	will-change: transform;
}

.tb:hover .tb__marquee-track {
	animation-play-state: paused;
}

.tb__sep {
	color: var(--tb-accent, #fbbf24);
	opacity: 0.8;
}

@keyframes tb-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ── Dil değiştirici ────────────────────────────────────── */
.tb__lang {
	display: inline-flex;
	align-items: center;
}

.tb__lang a,
.tb__lang button,
.tb__lang .lang-switcher-toggle,
.tb__lang .lang-switcher-toggle * {
	color: inherit;
}

/* ── Kapat butonu ───────────────────────────────────────── */
.tb__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	margin-left: 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: inherit;
	cursor: pointer;
	transition: background 0.18s ease;
}

.tb__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.tb__close svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.tb.is-hidden {
	display: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
	.tb--no-mobile {
		display: none;
	}

	.tb__item--desktop {
		display: none;
	}

	.tb__item--mobile {
		display: inline-flex;
	}

	.tb__zone--left {
		flex-shrink: 0;
	}

	.tb__zone--center {
		display: none;
	}

	.tb__inner {
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.tb__zone {
		gap: 12px;
	}

	.tb__item .tb__text {
		max-width: 60vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tb__marquee-track {
		animation: none;
	}
}
