/* Navigation slice — owned by the NAV slice.
 * Bottom 3 glass-bubble nav (Home / Friends / You), top Go Pro + Coins bubbles,
 * the Friends contact-list screen, and the add/share "+" modal.
 * Loaded after styles.css; rules here override the base #topbar / #tabbar.
 * Glass refraction is layered on by glass.css; these rules keep the bubbles
 * fully visible and usable on their own. */

/* ---------- Top bubbles (Go Pro / Coins) ---------- */
#topbar {
	background: linear-gradient(#150f2bcc, #150f2b00);
	padding: 14px 14px 8px;
}
.top-bubble {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 14px 8px 11px;
	border-radius: 999px;
	font: 800 15px var(--display);
	border: 1px solid var(--line2);
	background: rgba(255, 255, 255, 0.06);
	color: var(--fg);
	transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.top-bubble:active {
	transform: scale(0.95);
}
.top-bubble img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.top-bubble.go-pro {
	background: linear-gradient(
		120deg,
		rgba(255, 206, 74, 0.2),
		rgba(155, 107, 255, 0.16)
	);
	border-color: rgba(255, 206, 74, 0.5);
	color: var(--gold);
}
.top-bubble.go-pro.is-pro {
	background: linear-gradient(135deg, var(--gold), #ff9e3d);
	border-color: transparent;
	color: #3a2400;
	box-shadow: 0 10px 24px -14px rgba(255, 158, 61, 0.9);
}
.top-bubble.coins {
	background: rgba(255, 206, 74, 0.16);
	border-color: rgba(255, 206, 74, 0.55);
	color: var(--gold);
	min-width: 76px;
	justify-content: center;
}
/* Labelled "Shop" sprite button, right-aligned in the top bar. */
.top-shop img {
	height: 40px;
}

/* ---------- Bottom nav bubbles (Home / Friends / You) ---------- */
#tabbar {
	display: flex;
	gap: 10px;
	justify-content: center;
	background: transparent;
	border-top: none;
	padding: 6px 14px calc(10px + var(--safe-b));
}
.nav-bubble {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	flex: 1;
	max-width: 116px;
	padding: 9px 0 7px;
	border-radius: 20px;
	border: 1px solid var(--line2);
	background: rgba(20, 14, 43, 0.82);
	color: var(--faint);
	font: 600 11px var(--display);
	box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.9);
	transition:
		transform 0.2s,
		color 0.2s,
		border-color 0.2s,
		background 0.2s;
}
.nav-bubble:active {
	transform: scale(0.96);
}
.nav-bubble img {
	width: 26px;
	height: 26px;
	opacity: 0.55;
	transition:
		transform 0.2s,
		opacity 0.2s;
}
.nav-bubble.active {
	color: var(--fg);
	border-color: rgba(255, 93, 143, 0.55);
	background: linear-gradient(
		160deg,
		rgba(255, 93, 143, 0.2),
		rgba(155, 107, 255, 0.14)
	);
}
.nav-bubble.active img {
	opacity: 1;
	transform: translateY(-2px) scale(1.08);
}

/* ---------- Friends screen ---------- */
.fr-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 6px 2px 12px;
}
.fr-add {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 93, 143, 0.55);
	background: linear-gradient(135deg, var(--pink), var(--purple));
	box-shadow: 0 12px 26px -12px rgba(255, 93, 143, 0.7);
	transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fr-add:active {
	transform: scale(0.92);
}
.fr-add img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.fr-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fr-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--card);
}
.fr-info {
	flex: 1;
	min-width: 0;
}
.fr-nm {
	font: 700 15px var(--display);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fr-st {
	font-size: 12px;
	color: var(--muted);
	text-transform: capitalize;
}
.fr-pro {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 206, 74, 0.15);
	border: 1px solid rgba(255, 206, 74, 0.4);
	color: var(--gold);
	font: 700 12px var(--display);
}

/* ---------- Add / share modal ---------- */
.fr-modal-backdrop {
	position: absolute;
	inset: 0;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 18px calc(26px + var(--safe-b));
	background: rgba(8, 5, 18, 0.72);
	backdrop-filter: blur(4px);
}
.fr-modal {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: var(--bg2);
	border: 1px solid var(--line2);
	border-radius: 26px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
	animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fr-modal .sec-title {
	margin-top: 0;
}
.fr-qr {
	display: grid;
	place-items: center;
	margin: 4px auto 12px;
	padding: 12px;
	width: 172px;
	height: 172px;
	border-radius: 18px;
	background: #fff;
}
.fr-qr canvas {
	width: 148px;
	height: 148px;
}
.fr-modal-hint {
	color: var(--muted);
	font-size: 14px;
	margin: 0 0 16px;
}
.fr-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
