/* Elite Gear Auction Banner — all selectors prefixed with .egab- */

.egab-ribbon {
	background: #1b202d;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
}

.egab-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
}

.egab-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.egab-badge {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding: 2px 8px;
	border-radius: 0;
}

.egab-badge--live {
	background: #dc2626;
	color: #fff;
}

.egab-badge--upcoming {
	border: 1px solid rgba(4, 189, 251, 0.4);
	background: rgba(4, 189, 251, 0.1);
	color: #04bdfb;
}

.egab-badge__short {
	display: none;
}

.egab-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
}

a.egab-title--link {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(4, 189, 251, 0.6);
}

a.egab-title--link:hover {
	color: #fff;
	text-decoration-color: #04bdfb;
}

.egab-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	text-decoration: none;
	border-radius: 0;
	padding: 0.4rem 1rem;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.egab-btn--live {
	background: #dc2626;
	border: 2px solid #fff;
	color: #fff;
}

.egab-btn--live:hover {
	background: #b91c1c;
	color: #fff;
	box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.egab-btn--outline {
	border: 1px solid #04bdfb;
	background: transparent;
	color: #04bdfb;
}

.egab-btn--outline:hover {
	background: #04bdfb;
	color: #0d1117;
}

/* Dismiss button (upcoming only) */
.egab-dismiss {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	color: #999;
	cursor: pointer;
	transition: color 0.2s ease;
}

.egab-dismiss:hover {
	color: #fff;
}

/* Countdown */
.egab-countdown {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	padding-left: 1rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
}

.egab-countdown__sep {
	color: #999;
}

.egab-seg {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.egab-seg__value {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.egab-seg__label {
	font-size: 8px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #04bdfb;
}

.egab-compact {
	display: none;
	flex-shrink: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
}

/* Pulsing icon */
.egab-pulse {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: #fff;
}

.egab-pulse__ping {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #fff;
	opacity: 0.75;
	animation: egab-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.egab-pulse__icon {
	position: relative;
}

@keyframes egab-ping {
	75%,
	100% {
		transform: scale(2);
		opacity: 0;
	}
}

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

/* Floating live button — above sticky #masthead (1000), below offcanvas (1045) */
.egab-float {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 1030;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	background: #dc2626;
	border: 2px solid #fff;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	text-decoration: none;
	border-radius: 0;
	padding: 0.75rem 1rem;
	box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.egab-float:hover {
	background: #b91c1c;
	color: #fff;
	box-shadow: 0 0 35px rgba(220, 38, 38, 0.6);
}

.egab-float .egab-pulse {
	width: 16px;
	height: 16px;
}

/* Mobile */
@media (max-width: 767.98px) {
	.egab-badge__full {
		display: none;
	}

	.egab-badge__short {
		display: inline;
	}

	.egab-ribbon--upcoming .egab-badge,
	.egab-ribbon--upcoming .egab-countdown,
	.egab-ribbon--upcoming .egab-btn--outline {
		display: none;
	}

	.egab-ribbon--upcoming .egab-compact {
		display: inline;
	}

	/* X + compact timer left, title link right */
	.egab-ribbon--upcoming .egab-left {
		flex: 1;
		justify-content: space-between;
		gap: 0.75rem;
	}

	.egab-ribbon--upcoming .egab-title {
		order: 2;
	}

	.egab-ribbon--upcoming .egab-dismiss {
		order: 0;
	}

	.egab-ribbon--upcoming .egab-compact {
		order: 1;
		margin-right: auto;
	}
}
