/* ==========================================================
   Block — Utenti più attivi
   ========================================================== */

.mv-most-active-users-widget {
	display: grid;

	width: 100%;
	max-width: none;

	box-sizing: border-box;

	gap: 10px;
}

/* ==========================================================
   Header
   ========================================================== */

.mv-most-active-users-header {
	padding-bottom: 9px;

	border-bottom: 1px solid var(--mv-border);
}

.mv-most-active-users-header h3 {
	margin: 0;

	color: var(--mv-text);

	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
}

/* ==========================================================
   Lista
   ========================================================== */

.mv-most-active-users-list {
	display: grid;

	width: 100%;

	gap: 0;

	margin: 0;
	padding: 0;

	list-style: none;
}

.mv-most-active-users-item {
	display: block;

	width: 100%;
	min-width: 0;
}

/* ==========================================================
   Riga utente
   ========================================================== */

.mv-most-active-users-user {
	position: relative;

	display: flex;
	align-items: center;

	width: 100%;
	min-width: 0;

	box-sizing: border-box;

	gap: 9px;

	padding: 8px 22px 8px 4px;

	border-bottom: 1px solid var(--mv-border);
	border-radius: 0;

	color: var(--mv-text);

	text-decoration: none;

	transition:
		background-color .15s ease,
		color .15s ease;
}

.mv-most-active-users-item:last-child
.mv-most-active-users-user {
	border-bottom: 0;
}

.mv-most-active-users-user:hover {
	background: #fffaf7;
	color: var(--mv-primary);
}

/* ==========================================================
   Avatar
   ========================================================== */

.mv-most-active-users-avatar {
	display: grid;
	flex: 0 0 36px;
	place-items: center;

	width: 36px;
	height: 36px;

	overflow: hidden;

	border: 1px solid var(--mv-border);
	border-radius: 50%;

	background: var(--mv-surface);

	box-shadow: none;
}

.mv-most-active-users-avatar img,
.mv-most-active-users-avatar > span {
	display: grid;
	place-items: center;

	width: 100%;
	height: 100%;

	border-radius: inherit;
}

.mv-most-active-users-avatar img {
	object-fit: cover;
}

.mv-most-active-users-avatar > span {
	color: #fff;

	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

/* ==========================================================
   Corpo
   ========================================================== */

.mv-most-active-users-body {
	display: grid;
	flex: 1 1 auto;
	align-content: center;

	width: auto;
	min-width: 0;

	gap: 3px;
}

.mv-most-active-users-name {
	display: block;

	width: 100%;
	min-width: 0;

	overflow: hidden;

	color: inherit;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;

	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================
   Statistiche
   ========================================================== */

.mv-most-active-users-stats {
	display: grid;

	width: 100%;
	min-width: 0;

	gap: 2px;

	font-size: 9px;
	line-height: 1.2;

	text-align: left;
}

.mv-most-active-users-site-stats,
.mv-most-active-users-irc-stats {
	display: block;

	width: 100%;
	min-width: 0;

	overflow: hidden;

	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mv-most-active-users-site-stats {
	color: var(--mv-text);

	font-weight: 700;
}

.mv-most-active-users-irc-stats {
	color: var(--mv-muted);

	font-weight: 600;
}

/* ==========================================================
   Freccia
   ========================================================== */

.mv-most-active-users-user > i:last-child {
	position: absolute;
	top: 50%;
	right: 6px;

	color: var(--mv-muted);

	font-size: 9px;

	opacity: .45;

	transform: translateY(-50%);

	transition:
		color .15s ease,
		opacity .15s ease,
		transform .15s ease;
}

.mv-most-active-users-user:hover > i:last-child {
	color: var(--mv-primary);

	opacity: 1;

	transform:
		translateY(-50%)
		translateX(2px);
}

/* ==========================================================
   Stato vuoto
   ========================================================== */

.mv-most-active-users-empty {
	margin: 0;
	padding: 12px;

	border: 1px dashed var(--mv-border);
	border-radius: 0;

	background: #fffaf7;
	color: var(--mv-muted);

	font-size: 12px;
	line-height: 1.5;

	text-align: center;
}

/* ==========================================================
   Layout compatti
   ========================================================== */

.mv-most-active-users-widget.mv-block-width-3
.mv-most-active-users-user,
.mv-most-active-users-widget.mv-block-width-4
.mv-most-active-users-user {
	gap: 7px;

	padding: 7px 20px 7px 4px;
}

.mv-most-active-users-widget.mv-block-width-3
.mv-most-active-users-avatar,
.mv-most-active-users-widget.mv-block-width-4
.mv-most-active-users-avatar {
	flex-basis: 32px;

	width: 32px;
	height: 32px;
}

.mv-most-active-users-widget.mv-block-width-3
.mv-most-active-users-stats,
.mv-most-active-users-widget.mv-block-width-4
.mv-most-active-users-stats {
	font-size: 8px;
}

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

@media (max-width: 640px) {

	.mv-most-active-users-user {
		gap: 8px;

		padding: 7px 22px 7px 4px;
	}

	.mv-most-active-users-avatar {
		flex-basis: 34px;

		width: 34px;
		height: 34px;
	}

	.mv-most-active-users-stats {
		font-size: 8px;
	}

}
