/**
 * Mușuroi — clopoțelul și contul din antetul site-ului.
 *
 * Stă lângă iconițele sociale ale temei, deci împrumută mărimea și culoarea
 * lor. Se încarcă pe tot site-ul, pentru utilizatorii autentificați.
 */

.musuroi-hu {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.musuroi-hu__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--theme-headings-color, #454545);
	cursor: pointer;
	list-style: none;
	transition: background-color .18s ease;
}

/* `<summary>` are un marcaj propriu în Safari și Chrome. */
.musuroi-hu__icon-btn::-webkit-details-marker { display: none; }
.musuroi-hu__icon-btn::marker { content: ""; }

.musuroi-hu__icon-btn:hover {
	/* Iconițele temei se sting la hover; le ținem isonul, fără pată de fundal —
	   contururile trebuie să rămână la fel de suple ca ale ei. */
	opacity: .65;
}

/* ── Clopoțel ─────────────────────────────────────────── */

.musuroi-hu__bell {
	position: relative;
}

.musuroi-hu__badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #e11d48;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}

/* ── Panouri ──────────────────────────────────────────── */

.musuroi-hu__panel {
	position: absolute;
	top: calc(100% + .5rem);
	right: 0;
	z-index: 100;
	width: 320px;
	max-width: calc(100vw - 2rem);
	background: var(--theme-palette-color-8, #fff);
	border: 1px solid var(--theme-palette-color-5, #edeff2);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
	overflow: hidden;
	text-align: left;
}

.musuroi-hu__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .875rem 1rem;
	border-bottom: 1px solid var(--theme-palette-color-5, #edeff2);
	color: var(--theme-headings-color, #454545);
}

.musuroi-hu__link-btn {
	border: 0;
	background: none;
	padding: 0;
	color: var(--theme-link-initial-color, #017a29);
	font-size: .8125rem;
	cursor: pointer;
}

.musuroi-hu__panel-body {
	max-height: 340px;
	overflow-y: auto;
}

.musuroi-hu__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--theme-palette-color-5, #edeff2);
	color: var(--theme-text-color, #545353);
	text-decoration: none;
}

.musuroi-hu__item:hover {
	background: var(--theme-palette-color-6, #f9fafb);
}

.musuroi-hu__item.is-unread .musuroi-hu__item-title {
	font-weight: 600;
	color: var(--theme-headings-color, #454545);
}

.musuroi-hu__item-time {
	flex-shrink: 0;
	font-size: .75rem;
	color: var(--theme-text-color, #545353);
	opacity: .7;
}

.musuroi-hu__empty {
	margin: 0;
	padding: 1.5rem 1rem;
	text-align: center;
	color: var(--theme-text-color, #545353);
	font-size: .875rem;
}

.musuroi-hu__panel-foot {
	display: block;
	padding: .875rem 1rem;
	text-align: center;
	font-size: .875rem;
	text-decoration: none;
	color: var(--theme-link-initial-color, #017a29);
	border-top: 1px solid var(--theme-palette-color-5, #edeff2);
}

/* ── Cont ─────────────────────────────────────────────── */

.musuroi-hu__account {
	position: relative;
}

.musuroi-hu__panel--account {
	display: flex;
	flex-direction: column;
	width: 220px;
	padding: .5rem;
}

.musuroi-hu__who {
	padding: .5rem .75rem;
	font-weight: 600;
	color: var(--theme-headings-color, #454545);
	border-bottom: 1px solid var(--theme-palette-color-5, #edeff2);
	margin-bottom: .25rem;
}

.musuroi-hu__panel--account a {
	padding: .5rem .75rem;
	border-radius: 10px;
	color: var(--theme-text-color, #545353);
	text-decoration: none;
	font-size: .9375rem;
}

.musuroi-hu__panel--account a:hover {
	background: var(--theme-palette-color-6, #f9fafb);
}

.musuroi-hu__logout {
	margin-top: .25rem;
	border-top: 1px solid var(--theme-palette-color-5, #edeff2);
	border-radius: 0 !important;
}
