/*--------------------------------------------------------------
  Lavena — bottom-nav.css
  Floating white bar, rounded ~42px, purple active capsule.
--------------------------------------------------------------*/

.lavena-bottomnav {
	position: fixed;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	transform: translateX(-50%);
	z-index: var(--lavena-z-bottomnav);
	width: min(100% - 24px, 480px);
	background: var(--lavena-surface);
	border: 1px solid var(--lavena-border);
	border-radius: var(--lavena-bottomnav-radius);
	box-shadow: var(--lavena-shadow-float);
	min-height: var(--lavena-bottomnav-height);
	display: flex;
	align-items: center;
}

.lavena-bottomnav__list {
	list-style: none;
	display: flex;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 8px;
	gap: 2px;
}

.lavena-bottomnav__item {
	flex: 1 1 0;
	min-width: 0;
}

.lavena-bottomnav__link {
	display: flex;
	justify-content: center;
	align-items: stretch;
	height: 100%;
}

.lavena-bottomnav__pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	padding: 8px 4px;
	border-radius: calc(var(--lavena-bottomnav-radius) - 8px);
	color: var(--lavena-muted);
	transition: background var(--lavena-fast) var(--lavena-ease),
		color var(--lavena-fast) var(--lavena-ease),
		transform var(--lavena-fast) var(--lavena-ease);
}

.lavena-bottomnav__label {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.lavena-bottomnav__link:hover .lavena-bottomnav__pill {
	color: var(--lavena-primary);
	background: var(--lavena-lavender);
}

/* Active capsule */
.lavena-bottomnav__item.is-active .lavena-bottomnav__pill {
	background: var(--lavena-gradient);
	color: #fff;
	box-shadow: 0 6px 18px rgba(90, 0, 180, 0.38);
}

/* Hide on desktop — desktop uses the horizontal header nav. */
@media (min-width: 1024px) {
	.lavena-bottomnav {
		display: none;
	}

	.lavena-has-bottom-nav .lavena-main {
		padding-bottom: 0;
	}

	.lavena-has-bottom-nav .lavena-footer {
		padding-bottom: 0;
	}
}
