/* Member Tooltip Popup Card */

.mt-tooltip {
	position: absolute;
	z-index: 10000;
	width: 300px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.15);
	overflow: hidden;
	font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	animation: mt-fadeIn 0.15s ease-out;
}

@keyframes mt-fadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Header: avatar + name + group */
.mt-header {
	display: flex;
	gap: 12px;
	padding: 14px 16px 10px 16px;
	align-items: flex-start;
}

.mt-avatar-wrap {
	position: relative;
	flex: 0 0 50px;
}

.mt-avatar-wrap img,
.mt-avatar-wrap .avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.mt-avatar-letter {
	display: flex;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
}

.mt-status {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
}

.mt-online {
	background: #27ae60;
}

.mt-offline {
	background: #bbb;
}

.mt-header-info {
	flex: 1;
	min-width: 0;
}

.mt-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mt-name:hover {
	color: #2980b9;
}

.mt-group {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: #2980b9;
	padding: 1px 8px;
	border-radius: 3px;
	margin-top: 3px;
}

.mt-title {
	display: block;
	font-size: 11px;
	color: #999;
	margin-top: 2px;
	font-style: italic;
}

/* Stats row */
.mt-stats {
	display: flex;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
	background: #f9fafb;
}

.mt-stat {
	flex: 1;
	text-align: center;
	padding: 8px 5px;
	border-right: 1px solid #f0f0f0;
}

.mt-stat:last-child {
	border-right: none;
}

.mt-stat-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #2980b9;
	line-height: 1.2;
}

.mt-stat-label {
	display: block;
	font-size: 10px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Details */
.mt-details {
	padding: 8px 16px;
}

.mt-detail {
	font-size: 12px;
	color: #777;
	padding: 2px 0;
}

.mt-detail i {
	width: 14px;
	text-align: center;
	color: #bbb;
	margin-right: 5px;
}

.mt-blurb {
	font-style: italic;
	color: #888;
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #f5f5f5;
}

/* Action buttons */
.mt-actions {
	display: flex;
	gap: 6px;
	padding: 8px 16px 12px 16px;
}

.mt-btn {
	flex: 1;
	text-align: center;
	padding: 6px 10px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.mt-btn i {
	margin-right: 3px;
}

.mt-btn-profile {
	background: #f0f0f0;
	color: #333;
}

.mt-btn-profile:hover {
	background: #e0e0e0;
	text-decoration: none;
	color: #333;
}

.mt-btn-pm {
	background: #2980b9;
	color: #fff;
}

.mt-btn-pm:hover {
	background: #2471a3;
	text-decoration: none;
	color: #fff;
}

/* Mobile: hide tooltips */
@media (max-width: 768px) {
	.mt-tooltip {
		display: none !important;
	}
}
