/* Moneypenny Job Board - Public Styles */

/* Root container */
.moneypenny-job-board {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #333;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

/* Header */
.moneypenny-job-board-header {
	margin-bottom: 30px;
}

.moneypenny-job-board-header h1 {
	margin: 0 0 20px 0;
	font-size: 28px;
	font-weight: 600;
	color: #222;
}

.moneypenny-back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.moneypenny-back-link:hover {
	text-decoration: underline;
}

/* Filters */
.moneypenny-filters {
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.moneypenny-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.moneypenny-filter-group {
	flex: 1;
	min-width: 200px;
	display: flex;
}

.moneypenny-search-input,
.moneypenny-location-filter {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	background-color: white;
	color: #333;
	transition: border-color 0.2s ease;
}

.moneypenny-search-input:focus,
.moneypenny-location-filter:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.moneypenny-filter-button {
	padding: 10px 30px;
	background: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.moneypenny-filter-button:hover {
	background: #005a87;
}

.moneypenny-clear-filters {
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.moneypenny-clear-filters:hover {
	text-decoration: underline;
}

/* No jobs message */
.moneypenny-no-jobs {
	padding: 40px 20px;
	text-align: center;
	background: #f9f9f9;
	border-radius: 4px;
	color: #666;
}

.moneypenny-no-jobs p {
	margin: 0;
	font-size: 16px;
}

/* Job table */
.moneypenny-job-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
	background: white;
}

.moneypenny-job-table thead {
	background: #f9f9f9;
	border-bottom: 2px solid #e5e5e5;
}

.moneypenny-job-table th {
	padding: 1em 0.5em;
	text-align: left;
	font-weight: 600;
	color: #333;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.moneypenny-job-table td {
	padding: 1em 0.5em;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	color: #333;
	vertical-align: middle;
}

.moneypenny-job-table tbody tr:hover {
	background: #fafafa;
}

.moneypenny-job-table tbody tr:last-child td {
	border-bottom: none;
}

.moneypenny-job-title-link {
	color: inherit;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.moneypenny-job-title-link:hover {
	text-decoration: underline;
}

/* Job detail view */
.moneypenny-job-detail {
	max-width: 900px;
	margin: 0 auto;
}

/* Full-width header with title */
.moneypenny-job-detail-header {
	margin-bottom: 40px;
	padding-bottom: 0;
	border-bottom: none;
}

.moneypenny-job-detail-title {
	margin: 0 0 0 0;
	padding-bottom: 30px;
	border-bottom: 2px solid #e5e5e5;
	font-size: 32px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

/* Two-column layout wrapper */
.moneypenny-job-detail-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

/* Left column: main content */
.moneypenny-job-detail-main {
	min-width: 0;
}

/* Right column: sidebar with form */
.moneypenny-job-detail-sidebar {
	display: flex;
	flex-direction: column;
}

.moneypenny-job-detail-meta {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 30px;
	margin-bottom: 40px;
	align-items: start;
	padding-bottom: 30px;
	border-bottom: 1px solid #e5e5e5;
}

/* Location column (left side) */
.moneypenny-meta-location {
	min-width: 0;
}

/* Other metadata fields (right side, 3 per row) */
.moneypenny-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.moneypenny-meta-item {
	display: flex;
	flex-direction: column;
	font-size: 14px;
}

.moneypenny-meta-label {
	font-weight: 700;
	margin-bottom: 5px;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.moneypenny-meta-value {
	font-size: 16px;
	color: #333;
}

/* Job detail content */
.moneypenny-job-detail-content {
	margin-bottom: 0;
}

.moneypenny-job-description {
	margin-bottom: 0;
	font-size: 15px;
	line-height: 1.8;
	color: #444;
}

.moneypenny-job-description h2,
.moneypenny-job-description h3,
.moneypenny-job-description h4 {
	margin-top: 25px;
	margin-bottom: 15px;
	font-weight: 600;
	color: #222;
}

.moneypenny-job-description p {
	margin: 0 0 15px 0;
}

.moneypenny-job-description ul,
.moneypenny-job-description ol {
	margin: 0 0 15px 25px;
	padding: 0;
}

.moneypenny-job-description li {
	margin-bottom: 8px;
}

.moneypenny-job-description strong {
	font-weight: 600;
	color: #222;
}

/* Job form container */
.moneypenny-job-form-container {
	position: sticky;
	top: 20px;
}

.hraimo-outer-element {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* Detail footer */
.moneypenny-job-detail-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	gap: 15px;
}

.moneypenny-back-to-jobs-btn {
	display: inline-block;
	padding: 10px 30px;
	background: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s ease;
	border: none;
	cursor: pointer;
}

.moneypenny-back-to-jobs-btn:hover {
	background: #005a87;
	text-decoration: none;
}

/* Not found page */
.moneypenny-404-content {
	text-align: center;
	padding: 60px 20px;
}

.moneypenny-404-content h1 {
	font-size: 32px;
	margin-bottom: 20px;
	color: #222;
}

.moneypenny-404-content p {
	font-size: 16px;
	color: #666;
	margin-bottom: 30px;
	line-height: 1.6;
}

.moneypenny-button-primary {
	display: inline-block;
	padding: 12px 30px;
	background: #0073aa;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.moneypenny-button-primary:hover {
	background: #005a87;
	text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
	.moneypenny-job-board-header h1 {
		font-size: 24px;
	}

	.moneypenny-filter-form {
		flex-direction: column;
	}

	.moneypenny-filter-group {
		width: 100%;
		min-width: unset;
	}

	.moneypenny-filter-button {
		width: 100%;
	}

	.moneypenny-job-detail-title {
		font-size: 24px;
	}

	.moneypenny-job-detail-meta {
		grid-template-columns: 1fr;
	}

	/* Stack columns on tablets */
	.moneypenny-job-detail-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.moneypenny-job-form-container {
		position: static;
	}

	/* Stack metadata location on top for tablets */
	.moneypenny-job-detail-meta {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Reduce metadata fields to 2 per row on tablets */
	.moneypenny-meta-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.moneypenny-job-board-header h1 {
		font-size: 20px;
	}

	.moneypenny-job-detail-title {
		font-size: 20px;
	}

	.moneypenny-filter-button,
	.moneypenny-back-to-jobs-btn {
		width: 100%;
	}

	/* Single column for metadata fields on mobile */
	.moneypenny-meta-grid {
		grid-template-columns: 1fr;
	}
}

/* Expandable location regions */
.moneypenny-location-regions {
	font-size: 16px !important;
	color: #333 !important;
}

.moneypenny-region-group {
	margin-bottom: 15px;
}

.moneypenny-region-header {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	padding: 0;
	font-size: 16px;
	color: #333;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition: color 0.2s ease;
}

.moneypenny-region-header:hover {
	color: #0073aa;
}

.moneypenny-region-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	font-size: 18px;
	font-weight: 700;
	color: #666;
	transition: color 0.2s ease;
}

.moneypenny-region-header:hover .moneypenny-region-toggle {
	color: #0073aa;
}

.moneypenny-region-name {
	font-weight: 500;
}

.moneypenny-municipalities-list {
	margin-top: 4px;
	margin-left: 28px;
	padding-left: 0;
}

.moneypenny-municipality-item {
	padding: 0;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

/* Truncation indicator in list view */
.moneypenny-location-more {
	font-weight: 600;
	color: #0073aa;
	cursor: help;
	margin-left: 4px;
}

/* Print styles */
@media print {
	.moneypenny-filters,
	.moneypenny-job-detail-footer,
	.moneypenny-back-link,
	.hraimo-outer-element {
		display: none;
	}
}
