/**
 * No Signal Media Navigation
 * Rooms and Tools shell navigation.
 */

/* =========================================================
   Desktop Sidebars
   ========================================================= */

.nsm-sidebar,
.nsm-utility {
	position: sticky;
	top: 92px;
	align-self: start;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0;
	border: 1px solid rgba(216, 194, 122, 0.42);
	border-radius: 20px;
	background: rgba(23, 25, 19, 0.88);
	padding: 18px;
}

/* Prevent tiny visual jumps when sticky state engages */
.nsm-sidebar,
.nsm-utility {
	transform: translateZ(0);
	backface-visibility: hidden;
	will-change: position;
}

.nsm-sidebar-title,
.nsm-utility-title {
	margin: 0 0 14px;
	color: #dfd37a;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nsm-nav-list,
.nsm-tools-list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nsm-nav-list li,
.nsm-tools-list li {
	margin: 0;
	padding: 0;
}

.nsm-nav-list a,
.nsm-tools-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 36px;
	padding: 7px 10px;
	border-radius: 10px;
	color: #f4f2ea;
	text-decoration: none;
	font-size: 1.08rem;
	font-weight: 300;
	line-height: 1;
	transition:
		background 160ms ease,
		color 160ms ease,
		box-shadow 160ms ease;
}

.nsm-nav-list a:hover,
.nsm-nav-list a:focus,
.nsm-tools-list a:hover,
.nsm-tools-list a:focus {
	background: rgba(223, 211, 122, 0.14);
	color: #dfd37a;
}

/* Nav label/status layout */
.nsm-nav-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nsm-nav-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-left: auto;
}

/* Current room/tool state */
.nsm-page-my-room .nsm-nav-list a[href="/my-room/"],
.nsm-page-radio .nsm-nav-list a[href="/radio/"],
.nsm-page-tv .nsm-nav-list a[href="/tv/"],
.nsm-page-social .nsm-nav-list a[href="/social/"],
.nsm-page-learn .nsm-nav-list a[href="/learn/"],
.nsm-page-private .nsm-nav-list a[href="/private/"],
.nsm-page-meet .nsm-nav-list a[href="/meet/"],
.nsm-page-messages .nsm-tools-list a[href="/messages/"],
.nsm-page-account .nsm-tools-list a[href="/account/"],
.nsm-page-settings .nsm-tools-list a[href="/settings/"] {
	background: rgba(216, 194, 122, 0.14);
	color: #dfd37a;
	box-shadow: inset 0 0 0 1px rgba(216, 194, 122, 0.28);
}

/* =========================================================
   Shared Status Pills
   ========================================================= */

.nsm-status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.45em;
	height: 1.45em;
	padding: 0 0.45em;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.nsm-status-pill--count,
.nsm-status-pill--gold {
	background: #ddcd81;
	color: #111;
}

.nsm-status-pill--live {
	border: 1px solid rgba(255, 120, 90, 0.38);
	background: rgba(255, 120, 90, 0.16);
	color: #ffb09a;
}

.nsm-status-pill--new {
	border: 1px solid rgba(169, 193, 255, 0.34);
	background: rgba(120, 160, 255, 0.14);
	color: #a9c1ff;
}

.nsm-status-pill--muted {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.72);
}

/* Legacy support for existing message badge output */
.nsm-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.45em;
	height: 1.45em;
	margin-left: 0.4rem;
	padding: 0 0.45em;
	border-radius: 999px;
	background: #ddcd81;
	color: #111;
	font-size: 0.72em;
	font-weight: 800;
	line-height: 1;
	vertical-align: middle;
}

.nsm-nav-status .nsm-unread-badge {
	margin-left: 0;
	font-size: 0.68rem;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
	.nsm-sidebar,
	.nsm-utility {
		position: static;
		top: auto;
		margin-top: 0;
		transform: none;
		will-change: auto;
	}

	.nsm-nav-list,
	.nsm-tools-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 560px) {
	.nsm-nav-list,
	.nsm-tools-list {
		grid-template-columns: 1fr;
	}

	.nsm-nav-list a,
	.nsm-tools-list a {
		min-height: 34px;
		font-size: 1rem;
	}
}

.nsm-nav-rooms {
	margin-top: 1.2rem;
}
