/* DEHA Career — Frontend filter widgets */

.deha-filter-box {
	box-sizing: border-box;
}

.deha-filter-title {
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 16px 0;
}

.deha-filter-list {
	display: grid;
	gap: 10px 16px;
}
.deha-filter-cols-1 { grid-template-columns: 1fr; }
.deha-filter-cols-2 { grid-template-columns: repeat(2, 1fr); }
.deha-filter-cols-3 { grid-template-columns: repeat(3, 1fr); }

.deha-filter-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.deha-filter-item span { transition: color 0.15s ease; }
.deha-filter-item.is-hidden { display: none; }
.deha-filter-item input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
	margin: 0;
}
.deha-filter-item .deha-filter-count {
	opacity: 0.6;
	margin-left: 4px;
}

.deha-filter-toggle-wrap {
	display: flex;
	margin-top: 12px;
}
.deha-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid transparent;
	color: #4a90e2;
	cursor: pointer;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.4;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.deha-filter-toggle:hover,
.deha-filter-toggle:focus {
	outline: none;
	text-decoration: none;
}
.deha-filter-toggle-text { display: inline-block; }
.deha-filter-toggle-icon { font-size: 12px; line-height: 1; }

.deha-filter-empty {
	font-size: 13px;
	opacity: 0.6;
	font-style: italic;
}

/* Salary range slider */
.deha-salary-range {
	position: relative;
	padding: 12px 0 4px;
}
.deha-salary-track {
	position: relative;
	height: 4px;
	background: rgba(128, 128, 128, 0.25);
	border-radius: 2px;
	margin: 14px 6px;
}
.deha-salary-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: #4a90e2;
	border-radius: 2px;
}
.deha-salary-inputs {
	position: absolute;
	left: 0;
	right: 0;
	top: 14px;
	height: 28px;
	pointer-events: none;
}
.deha-salary-inputs input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.deha-salary-inputs input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #4a90e2;
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.deha-salary-inputs input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #4a90e2;
	border: 2px solid #fff;
	cursor: pointer;
}
.deha-salary-inputs input[type="range"]::-webkit-slider-runnable-track {
	background: transparent;
}
.deha-salary-labels {
	display: flex;
	gap: 6px;
	font-size: 13px;
	margin-top: 8px;
}
.deha-salary-sep { opacity: 0.5; }
.deha-salary-unit { opacity: 0.7; margin-left: auto; }
.deha-salary-negotiable { margin-top: 12px; display: inline-flex; }

.deha-filter-salary.is-negotiable .deha-salary-range { opacity: 0.4; pointer-events: none; }

/* Search */
.deha-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.deha-search-icon {
	position: absolute;
	left: 14px;
	color: #888;
	pointer-events: none;
	display: inline-flex;
}
.deha-search-input {
	width: 100%;
	padding: 12px 16px 12px 42px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-radius: 999px;
	font-size: 14px;
	background: transparent;
	color: inherit;
}
.deha-search-input:focus {
	outline: none;
	border-color: #4a90e2;
}

/* Sort */
.deha-sort-select {
	padding: 10px 16px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	cursor: pointer;
	min-width: 140px;
}
.deha-sort-select:focus { outline: none; border-color: #4a90e2; }

/* Result count */
.deha-result-count {
	font-size: 14px;
	opacity: 0.85;
}
.deha-result-count strong {
	font-weight: 600;
}

/* Reset button */
.deha-reset-btn {
	background: transparent;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-radius: 999px;
	padding: 8px 18px;
	cursor: pointer;
	font-size: 13px;
	color: inherit;
}
.deha-reset-btn:hover { border-color: #4a90e2; color: #4a90e2; }

/* Active tags */
.deha-active-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.deha-active-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(74, 144, 226, 0.15);
	color: #4a90e2;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
}
.deha-active-tag-remove {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

/* Loop loading & skeleton */
.deha-loop-loading { position: relative; }
.deha-skeleton-wrap {
	display: grid;
	gap: 16px;
}
.deha-skeleton-card {
	border-radius: 12px;
	padding: 24px;
	background: linear-gradient(90deg, rgba(128,128,128,0.07), rgba(128,128,128,0.15), rgba(128,128,128,0.07));
	background-size: 200% 100%;
	animation: deha-skel 1.4s ease-in-out infinite;
}
.deha-skel-line {
	height: 12px;
	border-radius: 4px;
	background: rgba(128, 128, 128, 0.18);
	margin-bottom: 10px;
}
.deha-skel-line.short { width: 60%; }
@keyframes deha-skel {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Closed badge / status badge */
.deha-career-loop-item { position: relative; }
.deha-career-loop-item.is-closed { opacity: 0.7; }
.deha-career-closed-badge,
.deha-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.4;
}
.deha-career-closed-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(180, 50, 50, 0.85);
	color: #fff;
	z-index: 2;
}
.deha-badge-new {
	background: rgba(28, 168, 96, 0.18);
	color: #1ca860;
}
.deha-badge-closed {
	background: rgba(180, 50, 50, 0.18);
	color: #c33;
}

/* Empty state */
.deha-career-empty {
	text-align: center;
	padding: 40px 20px;
	font-size: 15px;
	opacity: 0.7;
}
