/* ────────────────────────────────────────
   Naipexo — Full-screen Search Modal
   ──────────────────────────────────────── */

.naipexo-search-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.naipexo-search-modal.active {
	display: flex !important;
	align-items: flex-start;
	justify-content: center;
}

.nsm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 3, 103, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: nsmFadeIn 0.25s ease;
}

.nsm-container {
	position: relative;
	z-index: 1;
	width: 90%;
	max-width: 780px;
	margin-top: 8vh;
	animation: nsmSlideDown 0.3s ease;
}

.nsm-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	padding: 8px;
}
.nsm-close:hover {
	opacity: 1;
}

.nsm-inner {
	background: #fff;
	border-radius: 16px;
	padding: 40px 48px;
	box-shadow: 0 25px 80px rgba(0,0,0,0.3);
	max-height: 80vh;
	overflow-y: auto;
}

.nsm-title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #FF2E57;
	margin: 0 0 20px 0;
}

.nsm-input-wrap {
	position: relative;
	margin-bottom: 24px;
}

.nsm-input {
	width: 100%;
	padding: 18px 50px 18px 20px;
	border: 2px solid #e8e8f0;
	border-radius: 12px;
	font-size: 22px;
	font-family: inherit;
	color: #0C0367;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.nsm-input:focus {
	border-color: #8F6DFF;
}
.nsm-input::placeholder {
	color: #b0b0c0;
}

.nsm-input-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: #b0b0c0;
	pointer-events: none;
}

.nsm-spinner {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: #8F6DFF;
}

.nsm-results {
	min-height: 0;
}

.nsm-group {
	margin-bottom: 24px;
}
.nsm-group:last-child {
	margin-bottom: 0;
}

.nsm-group-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #8F6DFF;
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0f0f5;
}

.nsm-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	margin: 0 -16px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
}
.nsm-item:hover {
	background: #f5f3ff;
	text-decoration: none;
	color: inherit;
}

.nsm-item-thumb {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f0f0f5;
}

.nsm-item-content {
	flex: 1;
	min-width: 0;
}

.nsm-item-title {
	font-size: 16px;
	font-weight: 600;
	color: #0C0367;
	margin: 0 0 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nsm-item-excerpt {
	font-size: 13px;
	color: #888;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nsm-no-results {
	text-align: center;
	padding: 40px 0;
	color: #999;
	font-size: 16px;
}

.nsm-item-icon {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: linear-gradient(135deg, #8F6DFF 0%, #FF2E57 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
	font-size: 18px;
}

@keyframes nsmFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes nsmSlideDown {
	from { opacity: 0; transform: translateY(-30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
	.nsm-container {
		width: 95%;
		margin-top: 4vh;
	}
	.nsm-inner {
		padding: 24px 20px;
		border-radius: 12px;
	}
	.nsm-input {
		font-size: 18px;
		padding: 14px 44px 14px 16px;
	}
	.nsm-close {
		top: -44px;
	}
}
