/**
 * JOBTEC Frontend Stylesheet
 * Responsive, Accessible, and Theme-Compatible.
 */

:root {
	--jobtec-primary: #2563eb;
	--jobtec-primary-hover: #1d4ed8;
	--jobtec-accent: #0d9488;
	--jobtec-radius: 8px;
	--jobtec-bg: #ffffff;
	--jobtec-surface: #f8fafc;
	--jobtec-border: #e2e8f0;
	--jobtec-text-main: #0f172a;
	--jobtec-text-muted: #64748b;
	--jobtec-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--jobtec-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
	--jobtec-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page wrapper container */
.jobtec-page-wrapper,
.jobtec-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
	color: var(--jobtec-text-main);
	font-family: inherit;
	line-height: 1.6;
}

.jobtec-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* --- Hero Banner --- */
.jobtec-archive-hero {
	background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 48px 32px;
	text-align: center;
	margin-bottom: 32px;
}

.jobtec-hero-logo img {
	max-height: 50px;
	margin-bottom: 16px;
}

.jobtec-hero-title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 10px 0;
	color: var(--jobtec-text-main);
	letter-spacing: -0.025em;
}

.jobtec-hero-subtitle {
	font-size: 1.1rem;
	color: var(--jobtec-text-muted);
	margin: 0 auto;
	max-width: 650px;
}

/* --- Search & Filter Bar --- */
.jobtec-search-bar-wrap {
	background: var(--jobtec-bg);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 16px;
	margin-bottom: 24px;
	box-shadow: var(--jobtec-shadow-sm);
}

.jobtec-search-inputs-grid {
	display: grid;
	grid-template-columns: 2fr 1.5fr 1.2fr 1.2fr 1.2fr auto;
	gap: 12px;
	align-items: center;
}

@media (max-width: 1024px) {
	.jobtec-search-inputs-grid {
		grid-template-columns: 1fr 1fr;
	}
	.jobtec-field-submit {
		grid-column: span 2;
	}
}

@media (max-width: 640px) {
	.jobtec-search-inputs-grid {
		grid-template-columns: 1fr;
	}
	.jobtec-field-submit {
		grid-column: span 1;
	}
}

.jobtec-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.jobtec-input-icon-wrap .jobtec-icon {
	position: absolute;
	left: 12px;
	color: #94a3b8;
}

.jobtec-input-icon-wrap input {
	padding-left: 38px !important;
}

.jobtec-input-field input,
.jobtec-input-field select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	background: var(--jobtec-bg);
	color: var(--jobtec-text-main);
	font-size: 14px;
	box-sizing: border-box;
	transition: var(--jobtec-transition);
}

.jobtec-input-field input:focus,
.jobtec-input-field select:focus {
	outline: none;
	border-color: var(--jobtec-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.jobtec-field-submit {
	display: flex;
	gap: 8px;
}

/* --- Buttons --- */
.jobtec-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--jobtec-radius);
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: var(--jobtec-transition);
	white-space: nowrap;
}

.jobtec-btn:focus-visible {
	outline: 2px solid var(--jobtec-primary);
	outline-offset: 2px;
}

.jobtec-btn-primary {
	background-color: var(--jobtec-primary);
	color: #ffffff !important;
}

.jobtec-btn-primary:hover {
	background-color: var(--jobtec-primary-hover);
	color: #ffffff !important;
}

.jobtec-btn-outline {
	background-color: transparent;
	border-color: var(--jobtec-border);
	color: var(--jobtec-text-main) !important;
}

.jobtec-btn-outline:hover {
	background-color: var(--jobtec-surface);
	border-color: #cbd5e1;
}

.jobtec-btn-ghost {
	background: transparent;
	color: var(--jobtec-text-muted) !important;
	border: none;
}

.jobtec-btn-ghost:hover {
	background: var(--jobtec-surface);
	color: var(--jobtec-text-main) !important;
}

.jobtec-btn-lg {
	padding: 14px 28px;
	font-size: 16px;
}

/* --- Results Section & Meta --- */
.jobtec-results-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--jobtec-text-muted);
}

.jobtec-count-label {
	font-weight: 600;
	color: var(--jobtec-text-main);
}

/* --- Cards Container (List vs Grid) --- */
.jobtec-cards-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jobtec-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

/* --- Job Card Component --- */
.jobtec-card-item {
	background: var(--jobtec-bg);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 20px;
	box-shadow: var(--jobtec-shadow-sm);
	transition: var(--jobtec-transition);
	position: relative;
}

.jobtec-card-item:hover {
	border-color: #cbd5e1;
	box-shadow: var(--jobtec-shadow-md);
	transform: translateY(-2px);
}

.jobtec-card-body {
	display: flex;
	gap: 18px;
}

@media (max-width: 540px) {
	.jobtec-card-body {
		flex-direction: column;
	}
}

.jobtec-card-avatar {
	flex-shrink: 0;
}

.jobtec-card-avatar img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--jobtec-border);
	background: #ffffff;
}

.jobtec-avatar-placeholder {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #e2e8f0;
	color: #475569;
	font-weight: 700;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jobtec-card-main {
	flex-grow: 1;
}

.jobtec-card-header {
	margin-bottom: 8px;
}

.jobtec-card-title {
	margin: 0 0 4px 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.jobtec-card-title a {
	color: var(--jobtec-text-main);
	text-decoration: none;
	transition: var(--jobtec-transition);
}

.jobtec-card-title a:hover {
	color: var(--jobtec-primary);
}

.jobtec-card-company {
	font-size: 14px;
	font-weight: 500;
	color: #475569;
}

.jobtec-card-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 10px 0;
}

.jobtec-meta-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #475569;
	background: var(--jobtec-surface);
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid var(--jobtec-border);
}

.jobtec-meta-salary {
	font-weight: 600;
	color: #047857;
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.jobtec-pill-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 9999px;
}

.jobtec-pill-remote { background: #dcfce7; color: #15803d; }
.jobtec-pill-hybrid { background: #e0e7ff; color: #4338ca; }
.jobtec-pill-onsite,
.jobtec-pill-on-site { background: #fef3c7; color: #b45309; }

.jobtec-card-excerpt {
	font-size: 14px;
	color: var(--jobtec-text-muted);
	margin: 8px 0 14px 0;
	line-height: 1.5;
}

.jobtec-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--jobtec-border);
}

.jobtec-posted-time {
	font-size: 12px;
	color: #94a3b8;
}

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

/* --- Empty State --- */
.jobtec-empty-state {
	text-align: center;
	padding: 64px 24px;
	background: var(--jobtec-surface);
	border: 1px dashed var(--jobtec-border);
	border-radius: var(--jobtec-radius);
}

.jobtec-empty-state .empty-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #94a3b8;
	margin-bottom: 12px;
}

.jobtec-empty-state h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
}

.jobtec-empty-state p {
	color: var(--jobtec-text-muted);
	margin: 0;
}

/* --- Pagination --- */
.jobtec-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.jobtec-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--jobtec-radius);
	border: 1px solid var(--jobtec-border);
	background: var(--jobtec-bg);
	color: var(--jobtec-text-main);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.jobtec-pagination .page-numbers.current {
	background: var(--jobtec-primary);
	color: #ffffff;
	border-color: var(--jobtec-primary);
}

/* --- Single Job Page Styling --- */
.jobtec-single-wrapper {
	max-width: 1140px;
}

.jobtec-breadcrumb {
	margin-bottom: 20px;
	font-size: 14px;
}

.jobtec-breadcrumb a {
	color: var(--jobtec-primary);
	text-decoration: none;
	font-weight: 500;
}

.jobtec-single-header {
	background: var(--jobtec-bg);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 32px;
	box-shadow: var(--jobtec-shadow-sm);
	margin-bottom: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

@media (max-width: 768px) {
	.jobtec-single-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px;
	}
	.jobtec-single-header-apply {
		width: 100%;
	}
	.jobtec-btn-apply-hero {
		width: 100%;
	}
}

.jobtec-single-header-main {
	display: flex;
	gap: 20px;
	align-items: center;
}

.jobtec-company-avatar-lg img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 12px;
	border: 1px solid var(--jobtec-border);
}

.jobtec-avatar-placeholder-lg {
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: #e2e8f0;
	color: #334155;
	font-size: 30px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jobtec-single-title {
	font-size: 1.85rem;
	font-weight: 800;
	margin: 0 0 6px 0;
	line-height: 1.25;
}

.jobtec-single-company {
	font-size: 1.1rem;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
}

.jobtec-single-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* 2-Column Grid on Single Page */
.jobtec-single-body-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 900px) {
	.jobtec-single-body-grid {
		grid-template-columns: 1fr;
	}
}

.jobtec-content-section {
	background: var(--jobtec-bg);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 28px;
	margin-bottom: 24px;
	box-shadow: var(--jobtec-shadow-sm);
}

.jobtec-section-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--jobtec-text-main);
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 10px;
}

.jobtec-prose-content {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
}

.jobtec-bullet-list {
	margin: 0;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
}

.jobtec-bullet-list li {
	margin-bottom: 8px;
}

.jobtec-benefits-list {
	list-style: none;
	padding-left: 0;
}
.jobtec-benefits-list li {
	color: #047857;
	font-weight: 500;
}

/* Skills */
.jobtec-skills-subtitle {
	font-size: 13px;
	text-transform: uppercase;
	color: var(--jobtec-text-muted);
	margin: 0 0 8px 0;
	font-weight: 700;
}

.jobtec-skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jobtec-skill-tag {
	font-size: 13px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 9999px;
	border: 1px solid var(--jobtec-border);
}

.jobtec-skill-required {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

.jobtec-skill-preferred {
	background: #f8fafc;
	color: #475569;
}

/* Company Card */
.jobtec-company-card {
	padding-top: 4px;
}

.jobtec-company-header {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
}

.jobtec-company-logo-wrap img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--jobtec-border);
}

.jobtec-company-name {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 4px 0;
}

.jobtec-company-meta-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jobtec-company-description {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 16px;
}

.jobtec-company-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--jobtec-primary);
	text-decoration: none;
}

/* Bottom Apply CTA Card */
.jobtec-bottom-apply-box {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #ffffff;
	border-radius: var(--jobtec-radius);
	padding: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 640px) {
	.jobtec-bottom-apply-box {
		flex-direction: column;
		text-align: center;
	}
}

.jobtec-bottom-apply-box h3 {
	color: #ffffff;
	margin: 0 0 6px 0;
	font-size: 1.25rem;
}

.jobtec-bottom-apply-box p {
	color: #94a3b8;
	margin: 0;
	font-size: 14px;
}

/* Source Attribution */
.jobtec-source-attribution {
	font-size: 12px;
	color: #94a3b8;
	padding: 8px 0;
}

.jobtec-source-attribution a {
	color: #64748b;
}

/* Sidebar Details Box */
.jobtec-details-box {
	background: var(--jobtec-bg);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 24px;
	box-shadow: var(--jobtec-shadow-sm);
	margin-bottom: 24px;
}

.jobtec-details-grid {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jobtec-detail-item dt {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--jobtec-text-muted);
	font-weight: 600;
	margin-bottom: 2px;
}

.jobtec-detail-item dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--jobtec-text-main);
}

.jobtec-highlight-val {
	color: #047857 !important;
	font-size: 16px !important;
}

/* Share Box */
.jobtec-share-box {
	background: var(--jobtec-surface);
	border: 1px solid var(--jobtec-border);
	border-radius: var(--jobtec-radius);
	padding: 20px;
	text-align: center;
}

.jobtec-share-title {
	font-size: 13px;
	margin: 0 0 12px 0;
	color: #475569;
}

.jobtec-share-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.jobtec-share-btn {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	border: 1px solid var(--jobtec-border);
	background: #ffffff;
	color: #334155;
	text-decoration: none;
	cursor: pointer;
}

.jobtec-share-btn:hover {
	background: #f1f5f9;
}

/* Related Jobs */
.jobtec-related-section {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--jobtec-border);
}
