/*
 * Wallex Job Opportunities – frontend styles
 *
 * Light-themed careers list (RTL): a search box, a department filter sidebar and
 * a scrollable list of job cards. Colors resolve from the Wallex theme CSS
 * variables where present, with self-contained fallbacks.
 */

.wallex-jobs-wrap {
	box-sizing: border-box;
	width: 100%;
	direction: rtl;
}

.wallex-jobs-wrap *,
.wallex-jobs-wrap *::before,
.wallex-jobs-wrap *::after {
	box-sizing: border-box;
}

.wallex-jobs {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

/* --------------------------------- Search --------------------------------- */
.wallex-jobs__search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	height: 52px;
	background: var(--color-negativeGlassBg, #ffffff);
	border: 1px solid var(--color-stroke-2, rgba(20, 20, 43, 0.10));
	border-radius: 12px;
	color: var(--color-text-2, #9aa4b2);
}

.wallex-jobs__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	color: var(--color-text-1, #1f2430);
}

.wallex-jobs__search-input::placeholder {
	color: var(--color-text-2, #9aa4b2);
}

/* ---------------------------------- Body ---------------------------------- */
.wallex-jobs__body {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

/* --------------------------------- Filter --------------------------------- */
.wallex-jobs__filter {
	position: sticky;
	top: 16px;
}

.wallex-jobs__filter-title {
	margin-bottom: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-text-1, #1f2430);
}

.wallex-jobs__filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wallex-jobs__filter-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	background: none;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 0.9rem;
	text-align: right;
	color: var(--color-text-2, #6b7280);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.wallex-jobs__filter-item:hover {
	background: var(--color-stroke-1, rgba(20, 20, 43, 0.04));
	color: var(--color-text-1, #1f2430);
}

.wallex-jobs__filter-item.is-active {
	color: var(--color-primary, #2f6bff);
	font-weight: 700;
}

/* ---------------------------------- List ---------------------------------- */
.wallex-jobs__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wallex-jobs__card {
	display: block;
	padding: 18px 20px;
	background: var(--color-negativeGlassBg, #ffffff);
	border: 1px solid var(--color-stroke-2, rgba(20, 20, 43, 0.08));
	border-radius: 14px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(20, 20, 43, 0.03);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.wallex-jobs__card:hover {
	border-color: var(--color-primary, #2f6bff);
	box-shadow: 0 8px 24px rgba(20, 20, 43, 0.08);
	transform: translateY(-1px);
}

.wallex-jobs__card.is-hidden {
	display: none;
}

.wallex-jobs__title {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--color-text-1, #1f2430);
	overflow-wrap: anywhere;
}

.wallex-jobs__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin-top: 12px;
	font-size: 0.85rem;
	color: var(--color-text-2, #9aa4b2);
}

.wallex-jobs__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.wallex-jobs__meta svg {
	flex: 0 0 auto;
	color: var(--color-primary, #2f6bff);
}

/* ------------------------------ Empty states ------------------------------ */
.wallex-jobs__empty,
.wallex-jobs__empty-filtered {
	padding: 40px 20px;
	text-align: center;
	color: var(--color-text-2, #6b7280);
	background: var(--color-negativeGlassBg, #ffffff);
	border: 1px dashed var(--color-stroke-2, rgba(20, 20, 43, 0.12));
	border-radius: 14px;
}

/* -------------------------------- Show more ------------------------------- */
.wallex-jobs__more-wrap {
	display: flex;
	justify-content: center;
}

.wallex-jobs__more {
	padding: 9px 28px;
	background: var(--color-negativeGlassBg, #ffffff);
	border: 1px solid var(--color-stroke-3, rgba(20, 20, 43, 0.18));
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-1, #1f2430);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wallex-jobs__more:hover {
	background: var(--color-primary, #2f6bff);
	border-color: var(--color-primary, #2f6bff);
	color: #ffffff;
}

.wallex-jobs__more.is-done {
	display: none;
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 782px) {
	.wallex-jobs__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.wallex-jobs__filter {
		position: static;
	}

	/* Department filter becomes a horizontal scroller above the list. */
	.wallex-jobs__filter-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.wallex-jobs__filter-item {
		width: auto;
		white-space: nowrap;
		border: 1px solid var(--color-stroke-2, rgba(20, 20, 43, 0.12));
	}
}
