/* =============================================
   MP Jobs Fetcher — Frontend Styles
   ============================================= */

/* ── Jobs List ────────────────────────────────── */
.mpjf-jobs {
	margin: 0 0 30px;
}

/* Grid Layout */
.mpjf-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* List Layout */
.mpjf-layout-list .mpjf-job-card {
	border-bottom: 1px solid #eee;
	padding: 16px 0;
}

.mpjf-layout-list .mpjf-job-card:last-child {
	border-bottom: none;
}

/* Job Card */
.mpjf-job-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 18px 20px;
	transition: box-shadow 0.2s ease;
}

.mpjf-job-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

.mpjf-job-title {
	font-size: 16px;
	margin: 0 0 10px;
	line-height: 1.4;
}

.mpjf-job-title a {
	text-decoration: none;
	color: #1a1a2e;
}

.mpjf-job-title a:hover {
	color: #0073aa;
}

/* Job Meta */
.mpjf-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 13px;
}

.mpjf-job-meta span {
	background: #f4f6f9;
	border-radius: 4px;
	padding: 3px 10px;
	color: #555;
}

.mpjf-dept {
	background: #e8f4fd !important;
	color: #0073aa !important;
}

.mpjf-vacancies {
	background: #e8f8e8 !important;
	color: #2d6a2d !important;
}

.mpjf-last-date {
	background: #fff3e0 !important;
	color: #b45309 !important;
}

.mpjf-urgent {
	background: #ffeaea !important;
	color: #c62828 !important;
	font-weight: 600;
}

/* Apply Button */
.mpjf-apply-btn {
	display: inline-block;
	background: #0073aa;
	color: #fff !important;
	padding: 8px 18px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.mpjf-apply-btn:hover {
	background: #005177;
}

/* ── Table Layout ─────────────────────────────── */
.mpjf-jobs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mpjf-jobs-table th {
	background: #f0f4f8;
	padding: 10px 14px;
	text-align: left;
	border-bottom: 2px solid #ddd;
	font-weight: 600;
}

.mpjf-jobs-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.mpjf-jobs-table tr:hover td {
	background: #f9f9f9;
}

.mpjf-jobs-table .mpjf-urgent {
	background: transparent !important;
}

/* ── Search Form ──────────────────────────────── */
.mpjf-search-form {
	background: #f4f6f9;
	border: 1px solid #dde1e7;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 28px;
}

.mpjf-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mpjf-search-input {
	flex: 1;
	min-width: 180px;
	padding: 9px 14px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
}

.mpjf-select {
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
	background: #fff;
	min-width: 140px;
}

.mpjf-search-btn {
	padding: 9px 24px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.mpjf-search-btn:hover {
	background: #005177;
}

/* ── Stats Block ──────────────────────────────── */
.mpjf-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.mpjf-stat-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px 16px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.mpjf-stat-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #0073aa;
	line-height: 1;
	margin-bottom: 6px;
}

.mpjf-stat-label {
	font-size: 13px;
	color: #777;
	font-weight: 500;
}

/* ── Category Box ─────────────────────────────── */
.mpjf-category-box {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
}

.mpjf-cat-title {
	background: #0073aa;
	color: #fff;
	padding: 10px 16px;
	margin: 0;
	font-size: 15px;
}

.mpjf-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mpjf-cat-list li {
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.mpjf-cat-list li:last-child {
	border-bottom: none;
}

.mpjf-cat-list a {
	text-decoration: none;
	color: #1a1a2e;
}

.mpjf-cat-list a:hover {
	color: #0073aa;
}

.mpjf-date {
	color: #888;
	font-size: 12px;
	white-space: nowrap;
	margin-left: 8px;
}

/* ── Last Date Alert ──────────────────────────── */
.mpjf-last-date-alerts {
	background: #fff8e1;
	border: 1px solid #ffca28;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.mpjf-last-date-alerts h4 {
	margin: 0 0 12px;
	font-size: 16px;
	color: #7c4d00;
}

.mpjf-last-date-alerts ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mpjf-last-date-alerts li {
	padding: 7px 0;
	border-bottom: 1px solid #ffe082;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.mpjf-last-date-alerts li:last-child {
	border-bottom: none;
}

.mpjf-last-date-alerts a {
	text-decoration: none;
	color: #1a1a2e;
	font-size: 14px;
}

.mpjf-last-date-alerts a:hover {
	color: #0073aa;
}

.mpjf-days-left {
	font-size: 12px;
	color: #c62828;
	font-weight: 600;
}

/* ── Expired Notice ───────────────────────────── */
.mpjf-expired-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 15px 18px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 15px;
}

/* ── Widget ───────────────────────────────────── */
.mpjf-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mpjf-widget-item {
	padding: 9px 0;
	border-bottom: 1px solid #f0f0f0;
}

.mpjf-widget-item:last-child {
	border-bottom: none;
}

.mpjf-widget-link {
	display: block;
	text-decoration: none;
	color: #1a1a2e;
	font-size: 14px;
	line-height: 1.4;
}

.mpjf-widget-link:hover {
	color: #0073aa;
}

.mpjf-widget-date {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 3px;
}

.mpjf-widget-date--urgent {
	color: #c62828;
	font-weight: 600;
}

.mpjf-widget-all {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
}

.mpjf-widget-all:hover {
	text-decoration: underline;
}

/* ── No Jobs ──────────────────────────────────── */
.mpjf-no-jobs,
.mpjf-no-alerts {
	color: #888;
	font-style: italic;
	font-size: 14px;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 600px) {
	.mpjf-layout-grid {
		grid-template-columns: 1fr;
	}

	.mpjf-search-row {
		flex-direction: column;
	}

	.mpjf-search-input,
	.mpjf-select,
	.mpjf-search-btn {
		width: 100%;
		min-width: 0;
	}

	.mpjf-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.mpjf-jobs-table {
		font-size: 12px;
	}

	.mpjf-jobs-table th,
	.mpjf-jobs-table td {
		padding: 8px 6px;
	}
}
