/**
 * LCIS Job Search — base styles.
 *
 * This plugin runs across multiple sites (lcis.com, focusonjobs.com,
 * focusonresumes.com, focusonfreelance.com) that each keep their own
 * color theme. Every color here is a CSS custom property with a neutral
 * fallback, so each site's theme can override just the variables it
 * cares about — in the theme's own stylesheet, or in a small snippet in
 * Appearance > Customize > Additional CSS — instead of overriding rules.
 *
 * Example override for one site:
 *
 *   :root {
 *     --lsjs-accent: #2e7d32;
 *     --lsjs-accent-contrast: #ffffff;
 *     --lsjs-featured-bg: #fff8e1;
 *   }
 */

.lsjs-wrap,
.lsjs-results-wrap {
	--lsjs-accent: #90ee90;         /* legacy default (lightgreen) — override per site */
	--lsjs-accent-hover: #555555;
	--lsjs-accent-contrast: #000000;
	--lsjs-accent-hover-contrast: #ffffff;
	--lsjs-featured-bg: ivory;
	--lsjs-border: #dddddd;
	--lsjs-muted-bg: #f8f8f8;
	--lsjs-text-muted: #666666;

	max-width: 900px;
	margin: 0 auto 1.5em;
}

.lsjs-signup-banner {
	background: var( --lsjs-muted-bg );
	border: 1px solid var( --lsjs-border );
	padding: 12px 16px;
	margin-bottom: 1em;
	border-radius: 4px;
}

.lsjs-signup-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.lsjs-error {
	color: #b3261e;
}

.lsjs-search-form {
	background: var( --lsjs-muted-bg );
	border: 1px solid var( --lsjs-border );
	padding: 16px;
	border-radius: 4px;
}

.lsjs-field-row {
	margin-bottom: 12px;
}

.lsjs-field-row label {
	margin-right: 6px;
}

.lsjs-field-row input[type="text"],
.lsjs-field-row input[type="email"] {
	max-width: 100%;
}

.lsjs-checkbox-label {
	margin-left: 10px;
	font-weight: normal;
}

.lsjs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lsjs-filter {
	display: flex;
	flex-direction: column;
	min-width: 180px;
}

.lsjs-filter label {
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 4px;
}

.lsjs-button,
.lsjs-search-form button[type="submit"] {
	background-color: var( --lsjs-accent );
	color: var( --lsjs-accent-contrast );
	border: 1px solid #555;
	padding: 6px 14px;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	font-size: 0.95em;
}

.lsjs-button:hover {
	background-color: var( --lsjs-accent-hover );
	color: var( --lsjs-accent-hover-contrast );
}

.lsjs-actions {
	display: flex;
	gap: 8px;
}

.lsjs-results-wrap {
	max-width: 900px;
	margin: 1em auto;
}

.lsjs-landing-heading {
	margin-bottom: 0.25em;
}

.lsjs-msg {
	font-weight: bold;
}

.lsjs-broadened {
	color: #7a5b00;
}

.lsjs-count {
	margin: 0.75em 0;
}

.lsjs-pagination {
	display: flex;
	gap: 6px;
	margin: 10px 0;
}

.lsjs-listings {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lsjs-listing {
	border: 1px solid var( --lsjs-border );
	background: #fff;
	padding: 14px 16px;
	border-radius: 4px;
}

.lsjs-listing-featured {
	background: var( --lsjs-featured-bg );
	border-color: #e0d9a0;
}

.lsjs-listing-title {
	margin: 0 0 6px;
}

.lsjs-badge {
	display: inline-block;
	font-size: 0.8em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 6px;
}

.lsjs-badge-unpublished {
	background: #e0e0e0;
	color: #333;
}

.lsjs-unpublished-link {
	text-decoration: none;
}

.lsjs-listing-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.9em;
	color: var( --lsjs-text-muted );
	margin-bottom: 8px;
}

.lsjs-listing-description {
	margin-bottom: 10px;
	color: #222;
}

.lsjs-listing-source {
	color: #999;
	font-size: 0.85em;
	margin: 6px 0 0;
}

.lsjs-recent-searches,
.lsjs-trending {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var( --lsjs-border );
}

.lsjs-recent-searches ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lsjs-trending-group {
	margin-bottom: 1em;
}

.lsjs-trend-button {
	display: inline-block;
	background: #eeeeee;
	color: #333;
	border-radius: 4px;
	padding: 3px 10px;
	margin: 4px 6px 0 0;
	text-decoration: none;
	font-size: 0.9em;
}

.lsjs-trend-button:hover {
	background: var( --lsjs-accent );
	color: var( --lsjs-accent-contrast );
}

.lsjs-admin-diagnostics {
	margin-top: 2em;
	background: #1e1e1e;
	color: #eaeaea;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.85em;
}

.lsjs-admin-diagnostics pre {
	white-space: pre-wrap;
	word-break: break-word;
	background: #111;
	padding: 8px;
	border-radius: 3px;
}

.lsjs-note {
	color: var( --lsjs-text-muted );
	font-size: 0.85em;
}

@media (max-width: 600px) {
	.lsjs-filters {
		flex-direction: column;
	}
}
