/**
 * Estilos para el sistema de menciones @
 * 
 * @package LYC
 */

/* ========================================
   MENCIÓN RENDERIZADA
   ======================================== */

.lyc-mention {
	display: inline-block;
	background: linear-gradient(
		135deg,
		rgba(252, 70, 23, 0.1) 0%,
		rgba(252, 70, 23, 0.05) 100%
	);
	color: #fc4617;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 500;
	font-size: 0.9em;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: default;
}

.lyc-mention:hover {
	background: linear-gradient(
		135deg,
		rgba(252, 70, 23, 0.2) 0%,
		rgba(252, 70, 23, 0.1) 100%
	);
}

/* ========================================
   DROPDOWN DE AUTOCOMPLETADO
   ======================================== */

.lyc-mentions-dropdown {
	position: absolute;
	z-index: 999999;
	min-width: 200px;
	max-width: 300px;
	max-height: 250px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: none;
}

.lyc-mentions-dropdown.lyc-mentions-active {
	display: block;
}

.lyc-mentions-dropdown-header {
	padding: 8px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #757575;
	background: #f8f9fa;
	border-bottom: 1px solid #e2e4e7;
}

.lyc-mentions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lyc-mentions-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.lyc-mentions-item:hover,
.lyc-mentions-item.lyc-mentions-highlighted {
	background: #f0f7ff;
}

.lyc-mentions-item.lyc-mentions-highlighted {
	background: rgba(32, 206, 102, 0.1);
}

.lyc-mentions-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.lyc-mentions-info {
	flex: 1;
	min-width: 0;
}

.lyc-mentions-name {
	display: block;
	font-weight: 500;
	color: #1e1e1e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lyc-mentions-username {
	display: block;
	font-size: 0.8rem;
	color: #757575;
}

.lyc-mentions-empty {
	padding: 16px 12px;
	text-align: center;
	color: #757575;
	font-style: italic;
}

.lyc-mentions-loading {
	padding: 16px 12px;
	text-align: center;
	color: #757575;
}

.lyc-mentions-loading::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid #e2e4e7;
	border-top-color: #fc4617;
	border-radius: 50%;
	animation: lyc-mention-spin 0.8s linear infinite;
}

@keyframes lyc-mention-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   TEXTAREA/INPUT CON MENCIONES
   ======================================== */

.lyc-has-mentions {
	position: relative;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
	.lyc-mentions-dropdown {
		position: fixed;
		left: 10px;
		right: 10px;
		max-width: none;
		bottom: 60px;
		max-height: 200px;
	}
}
