/**
 * PlayRox — Gaming profile bottom navigation.
 *
 * Restyles the existing mobile bottom bars of all three dashboard designs
 * (Classic, V2, V3) into one floating dark-glass pill with a neon-green
 * active state. Icons stay Font Awesome (the theme's icon library); no
 * images, no emoji.
 *
 * Loaded last so it wins over playrox-premium-dash / -dash-v2 / -dash-v3.
 */

:root {
	--pxnav-green: #2ee65f;
	--pxnav-glow: rgba(46, 230, 95, 0.42);
	--pxnav-idle: #a7b0ac;
	--pxnav-idle-hover: #d3dad6;
	--pxnav-face-top: rgba(23, 28, 24, 0.94);
	--pxnav-face-bottom: rgba(11, 14, 12, 0.94);
	--pxnav-line: rgba(255, 255, 255, 0.075);
	--pxnav-h: 68px;
	--pxnav-radius: 28px;
	--pxnav-gutter: 14px;
	--pxnav-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--pxnav-clear: calc(var(--pxnav-h) + var(--pxnav-gutter) + 20px + env(safe-area-inset-bottom, 0px));
}

/* -------------------------------------------------------------------------
   1. The bar
   ---------------------------------------------------------------------- */

.plxd__mobilebar,
.playrox-dash--premium .plxd__mobilebar,
.plxv2__mobilenav,
.plx3__mnav {
	position: fixed;
	left: var(--pxnav-gutter);
	right: var(--pxnav-gutter);
	bottom: calc(var(--pxnav-gutter) + env(safe-area-inset-bottom, 0px));
	z-index: 900;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	height: var(--pxnav-h);
	padding: 0 6px;

	align-items: stretch;
	justify-content: space-between;

	border: 1px solid var(--pxnav-line);
	border-top: 1px solid var(--pxnav-line);
	border-radius: var(--pxnav-radius);
	background: #080a1508;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 16px 38px rgba(0, 0, 0, 0.55);
	overflow: hidden;

	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

/* -------------------------------------------------------------------------
   2. Items
   ---------------------------------------------------------------------- */

.plxd__mbitem,
.plxv2__mobilenav-item,
.plx3__mnav-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;

	padding: 10px 4px 13px;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;

	color: var(--pxnav-idle);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;

	-webkit-tap-highlight-color: transparent;
	transition:
		color 0.22s var(--pxnav-ease),
		transform 0.16s var(--pxnav-ease);
}

.plxd__mbitem i,
.plxv2__mobilenav-item i,
.plx3__mnav-item i {
	font-size: 22px;
	line-height: 1;
	transition:
		filter 0.25s var(--pxnav-ease),
		transform 0.25s var(--pxnav-ease);
}

.plxd__mbitem span,
.plxv2__mobilenav-item span,
.plx3__mnav-item span {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: inherit;
	font-weight: inherit;
}

/* -------------------------------------------------------------------------
   3. Active state — green icon, green label, thin underline, soft glow
   ---------------------------------------------------------------------- */

.plxd__mbitem.is-active,
.plxv2__mobilenav-item.is-active,
.plx3__mnav-item.is-active,
.playrox-dash--premium .plxd__mbitem.is-active {
	color: var(--pxnav-green);
	background: transparent;
}

.plxd__mbitem.is-active span,
.plxv2__mobilenav-item.is-active span,
.plx3__mnav-item.is-active span {
	font-weight: 600;
}

.plxd__mbitem.is-active i,
.plxv2__mobilenav-item.is-active i,
.plx3__mnav-item.is-active i {
	filter: drop-shadow(0 0 7px var(--pxnav-glow));
}

/* Underline indicator. */
.plxd__mbitem::after,
.plxv2__mobilenav-item::after,
.plx3__mnav-item::after {
	content: "";
	position: absolute;
	bottom: 9px;
	left: 50%;
	width: 30px;
	height: 3px;
	margin-left: -15px;
	border-radius: 2px;
	background: var(--pxnav-green);
	box-shadow: 0 0 8px var(--pxnav-glow);
	opacity: 0;
	transform: translateY(4px) scaleX(0.4);
	transition:
		opacity 0.24s var(--pxnav-ease),
		transform 0.28s var(--pxnav-ease);
}

.plxd__mbitem.is-active::after,
.plxv2__mobilenav-item.is-active::after,
.plx3__mnav-item.is-active::after {
	opacity: 1;
	transform: translateY(0) scaleX(1);
}

/* Thin green cap on the bar's top edge, above the active item. */
.plxd__mbitem::before,
.plxv2__mobilenav-item::before,
.plx3__mnav-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 62px;
	max-width: 70%;
	height: 2px;
	margin-left: -31px;
	border-radius: 0 0 3px 3px;
	background: var(--pxnav-green);
	box-shadow: 0 0 10px var(--pxnav-glow);
	opacity: 0;
	transition: opacity 0.24s var(--pxnav-ease);
}

.plxd__mbitem.is-active::before,
.plxv2__mobilenav-item.is-active::before,
.plx3__mnav-item.is-active::before {
	opacity: 1;
}

/* -------------------------------------------------------------------------
   4. Hover / tap / focus
   ---------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
	.plxd__mbitem:hover,
	.plxv2__mobilenav-item:hover,
	.plx3__mnav-item:hover {
		color: var(--pxnav-idle-hover);
	}
	.plxd__mbitem:hover i,
	.plxv2__mobilenav-item:hover i,
	.plx3__mnav-item:hover i {
		transform: translateY(-1px);
	}
	.plxd__mbitem.is-active:hover,
	.plxv2__mobilenav-item.is-active:hover,
	.plx3__mnav-item.is-active:hover {
		color: var(--pxnav-green);
	}
}

.plxd__mbitem:active,
.plxv2__mobilenav-item:active,
.plx3__mnav-item:active {
	transform: scale(0.94);
}

.plxd__mbitem:focus-visible,
.plxv2__mobilenav-item:focus-visible,
.plx3__mnav-item:focus-visible {
	outline: 2px solid var(--pxnav-green);
	outline-offset: -5px;
	border-radius: 20px;
}

.plxv2__mobilenav-item.is-locked { opacity: 0.55; }

/* -------------------------------------------------------------------------
   5. Keep page content clear of the floating bar
   ---------------------------------------------------------------------- */

@media (max-width: 720px) {
	.plxd { padding-bottom: var(--pxnav-clear) !important; }
}

@media (max-width: 900px) {
	.plxv2__body { padding-bottom: var(--pxnav-clear) !important; }
}

@media (max-width: 860px) {
	.plx3__view { padding-bottom: var(--pxnav-clear) !important; }
}

/* -------------------------------------------------------------------------
   6. Small phones
   ---------------------------------------------------------------------- */

@media (max-width: 360px) {
	:root {
		--pxnav-h: 62px;
		--pxnav-radius: 24px;
		--pxnav-gutter: 10px;
	}
	.plxd__mbitem i,
	.plxv2__mobilenav-item i,
	.plx3__mnav-item i { font-size: 20px; }

	.plxd__mbitem,
	.plxv2__mobilenav-item,
	.plx3__mnav-item { font-size: 11.5px; gap: 6px; }

	.plxd__mbitem::after,
	.plxv2__mobilenav-item::after,
	.plx3__mnav-item::after { width: 24px; margin-left: -12px; bottom: 8px; }

	.plxd__mbitem::before,
	.plxv2__mobilenav-item::before,
	.plx3__mnav-item::before { width: 50px; margin-left: -25px; }
}

/* V3 runs a light surface; keep the bar readable there too. */
.plxv2--light .plxv2__mobilenav-item { color: var(--pxnav-idle); }
.plxv2--light .plxv2__mobilenav-item.is-active { color: var(--pxnav-green); }

/* -------------------------------------------------------------------------
   7. Accessibility
   ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.plxd__mobilebar,
	.plxv2__mobilenav,
	.plx3__mnav,
	.plxd__mbitem,
	.plxv2__mobilenav-item,
	.plx3__mnav-item,
	.plxd__mbitem i,
	.plxv2__mobilenav-item i,
	.plx3__mnav-item i,
	.plxd__mbitem::after,
	.plxv2__mobilenav-item::after,
	.plx3__mnav-item::after,
	.plxd__mbitem::before,
	.plxv2__mobilenav-item::before,
	.plx3__mnav-item::before {
		transition-duration: 0.01ms !important;
	}
}
