/* ==========================================================================
   Пошук і фільтр за категоріями на сторінці новин (home.php)

   Оверлей завантаження бере готові стилі теми (.ajax-loader-overlay),
   тут лише панель пошуку, категорії й порожній стан.
   ========================================================================== */

.news-filter__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Поле пошуку — за зразком інпутів теми (60px, рамка #EEE, радіус 10)
   -------------------------------------------------------------------------- */
.news-filter__search {
	position: relative;
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

.news-filter__input {
	width: 100%;
	height: 60px;
	padding: 0 56px 0 18px;
	border: 1px solid #eeeeee;
	border-radius: 10px;
	background: #ffffff;
	font-family: 'Helvetica', sans-serif;
	font-size: 17px;
	color: #1a1a1a;
	outline: none;
	transition: all 0.3s ease 0s;
}

.news-filter__input::placeholder {
	color: #b1b1b1;
}

.news-filter__input:focus {
	border-color: #ffe307;
}

.news-filter__submit {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent no-repeat center;
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='6.5' stroke='%231A1A1A' stroke-width='1.8'/%3E%3Cpath d='M14 14L18.5 18.5' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	cursor: pointer;
	transition: all 0.3s ease 0s;
}

.news-filter__submit:hover {
	background-color: #ffe307;
}

.news-filter__count {
	font-size: 17px;
	color: #777777;
	flex: 0 0 auto;
}

/* Опис категорії з адмінки, якщо заповнений */
.news-filter__description {
	max-width: 820px;
	margin: -8px 0 24px;
	font-size: 17px;
	line-height: 1.6;
	color: #777777;
}

.news-filter__description p {
	margin: 0 0 10px;
}

.news-filter__description p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Категорії
   -------------------------------------------------------------------------- */
.news-filter__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.news-filter__category {
	display: block;
	padding: 10px 18px;
	background: #ffffff;
	border: 1px solid #eeeeee;
	border-radius: 10px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.3px;
	color: #1a1a1a;
	transition: all 0.3s ease 0s;
}

.news-filter__category.is-active {
	background: #ffe307;
	border-color: #ffe307;
	color: #000000;
}

/* На тачі :hover залипає після дотику, тому лише для справжнього курсора */
@media (hover: hover) {
	.news-filter__category:hover {
		border-color: #ffe307;
		color: #1a1a1a;
	}
}

/* --------------------------------------------------------------------------
   Порожній стан
   -------------------------------------------------------------------------- */
.news-filter__empty {
	width: 100%;
	padding: 60px 0;
	text-align: center;
	font-size: 18px;
	color: #777777;
}

/* --------------------------------------------------------------------------
   Адаптив — брейкпоінти теми
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
	.news-filter__bar {
		gap: 12px;
		margin-bottom: 18px;
	}

	.news-filter__search {
		flex: 1 1 100%;
	}

	.news-filter__input {
		height: 52px;
		font-size: 16px;
	}

	.news-filter__categories {
		gap: 8px;
		margin-bottom: 28px;
	}

	.news-filter__category {
		padding: 8px 14px;
		font-size: 15px;
	}
}
