/**
 * Nothing Found Component — TMNhanPhat.
 * Giao diện trạng thái rỗng (Empty State) khi chuyên mục/tìm kiếm không có bài viết.
 *
 * @package TMNhanPhat
 */

.nothing-found {
	text-align: center;
	padding: clamp(40px, 5.5vw, 68px) clamp(18px, 4vw, 36px);
	margin: 28px auto 44px;
	max-width: 640px;
	background: #ffffff;
	border: 1.5px dashed #cbd5e1;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nothing-found__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #f0f7fd;
	color: var(--color-primary, #046AB5);
	margin-bottom: 20px;
	box-shadow: 0 0 0 8px rgba(4, 106, 181, 0.06);
}

.nothing-found__icon {
	width: 36px;
	height: 36px;
}

.nothing-found__title,
.nothing-found h2 {
	margin: 0 0 10px;
	font-size: clamp(20px, 2.3vw, 24px);
	font-weight: 750;
	color: #0f172a;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.nothing-found__desc,
.nothing-found p {
	margin: 0 auto 22px;
	max-width: 460px;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

/* Custom search bar */
.nothing-found__search,
.nothing-found .search-form {
	max-width: 420px;
	margin: 0 auto 20px;
}

.nothing-found__search-inner {
	display: flex;
	align-items: center;
	position: relative;
	background: #ffffff;
	border: 1.5px solid #dce5ee;
	border-radius: 12px;
	padding: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nothing-found__search-inner:focus-within {
	border-color: var(--color-primary, #046AB5);
	box-shadow: 0 0 0 3px rgba(4, 106, 181, 0.12);
}

.nothing-found__search-icon {
	margin-left: 12px;
	color: #94a3b8;
	flex-shrink: 0;
}

.nothing-found__search-input {
	flex: 1;
	min-width: 0;
	height: 38px;
	border: none;
	background: transparent;
	padding: 0 10px;
	font: inherit;
	font-size: 14px;
	color: #1e293b;
	outline: none;
}

.nothing-found__search-input::placeholder {
	color: #94a3b8;
}

.nothing-found__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 18px;
	background: var(--color-primary, #046AB5);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.nothing-found__search-btn:hover {
	background: #0284c7;
}

.nothing-found__search-btn:active {
	transform: scale(0.98);
}

/* Fallback cho form tìm kiếm mặc định của WordPress (.search-form) */
.nothing-found .search-form {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.nothing-found .search-form label {
	flex: 1;
	margin: 0;
}

.nothing-found .search-form input[type="search"],
.nothing-found .search-form .search-field {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1.5px solid #dce5ee;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s ease;
}

.nothing-found .search-form input[type="search"]:focus,
.nothing-found .search-form .search-field:focus {
	border-color: var(--color-primary, #046AB5);
	box-shadow: 0 0 0 3px rgba(4, 106, 181, 0.12);
}

.nothing-found .search-form input[type="submit"],
.nothing-found .search-form .search-submit {
	height: 42px;
	padding: 0 18px;
	background: var(--color-primary, #046AB5);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.nothing-found .search-form input[type="submit"]:hover,
.nothing-found .search-form .search-submit:hover {
	background: #0284c7;
}

/* Các nút điều hướng nhanh */
.nothing-found__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.nothing-found__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 6px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nothing-found__btn--primary {
	background: var(--color-primary, #046AB5);
	color: #ffffff;
	border: 1px solid var(--color-primary, #046AB5);
}

.nothing-found__btn--primary:hover {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff;
}

.nothing-found__btn--secondary {
	background: #f8fafc;
	color: #334155;
	border: 1px solid #dce5ee;
}

.nothing-found__btn--secondary:hover {
	background: #f1f5f9;
	color: var(--color-primary, #046AB5);
	border-color: var(--color-primary, #046AB5);
}

@media (max-width: 600px) {
	.nothing-found {
		padding: 32px 16px;
		margin: 20px auto 32px;
	}

	.nothing-found__search-inner {
		flex-direction: column;
		gap: 6px;
		padding: 6px;
	}

	.nothing-found__search-input {
		width: 100%;
	}

	.nothing-found__search-btn {
		width: 100%;
	}

	.nothing-found__actions {
		flex-direction: column;
		width: 100%;
	}

	.nothing-found__btn {
		width: 100%;
	}
}

