/**
 * First-Case ATS - Public Styles
 *
 * Minimal, accessible styling for jobs archive and single job pages.
 * Theme can override by enqueuing its own styles with higher priority.
 */

/* Archive */
.fcats-archive .page-header {
	margin-bottom: 2rem;
}

.fcats-jobs-list {
	display: grid;
	gap: 2rem;
}

.fcats-job-item {
	border: 1px solid #ddd;
	padding: 1.5rem;
	border-radius: 4px;
	transition: box-shadow 0.2s ease;
}

.fcats-job-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fcats-job-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.fcats-job-title a {
	text-decoration: none;
	color: inherit;
}

.fcats-job-title a:hover {
	text-decoration: underline;
}

.fcats-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 1rem;
}

.fcats-job-meta span:not(:last-child)::after {
	content: "•";
	margin-left: 1rem;
	color: #999;
}

.fcats-job-excerpt {
	margin-bottom: 1rem;
	color: #444;
}

.fcats-job-footer {
	margin-top: 1rem;
}

.fcats-job-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.fcats-job-link:hover {
	background: #005177;
	color: #fff;
}

.fcats-no-jobs {
	padding: 2rem;
	text-align: center;
	background: #f7f7f7;
	border-radius: 4px;
}

/* Single Job */
.fcats-single-job .fcats-job-header {
	margin-bottom: 2rem;
}

.fcats-single-job .fcats-job-title {
	margin: 0 0 1rem;
	font-size: 2rem;
}

.fcats-single-job .fcats-job-meta {
	display: grid;
	gap: 0.75rem;
	padding: 1.5rem;
	background: #f7f7f7;
	border-radius: 4px;
	margin-bottom: 2rem;
}

.fcats-meta-item {
	display: flex;
	gap: 0.5rem;
}

.fcats-meta-item strong {
	min-width: 150px;
	color: #666;
}

.fcats-job-thumbnail {
	margin-bottom: 2rem;
}

.fcats-job-thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.fcats-job-content {
	margin-bottom: 3rem;
	line-height: 1.6;
}

.fcats-back-link {
	display: inline-block;
	color: #0073aa;
	text-decoration: none;
	margin-top: 2rem;
}

.fcats-back-link:hover {
	text-decoration: underline;
}

/* Language Switcher */
.fcats-language-switcher {
	margin: 1rem 0;
}

.fcats-language-switcher ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
}

.fcats-language-switcher li {
	margin: 0;
}

.fcats-language-switcher a {
	text-decoration: none;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	background: #f0f0f0;
	color: #333;
}

.fcats-language-switcher .current-lang a {
	background: #0073aa;
	color: #fff;
}

.fcats-language-switcher a:hover {
	background: #0073aa;
	color: #fff;
}

/* Admin status badges */
.fcats-status-open {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: #46b450;
	color: #fff;
	border-radius: 3px;
	font-size: 0.85rem;
}

.fcats-status-closed {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: #dc3232;
	color: #fff;
	border-radius: 3px;
	font-size: 0.85rem;
}

/* Application Form */
.fcats-application-form-section {
	margin: 3rem 0;
	padding: 2rem;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fcats-form-header h2 {
	margin: 0 0 2rem;
	font-size: 1.75rem;
}

.fcats-application-success {
	padding: 2rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	margin: 2rem 0;
}

.fcats-application-success h3 {
	margin: 0 0 1rem;
	color: #155724;
}

.fcats-application-success p {
	margin: 0;
	color: #155724;
}

.fcats-application-form {
	max-width: 700px;
}

.fcats-form-row {
	margin-bottom: 1.5rem;
}

.fcats-form-field label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #333;
}

.fcats-form-field .required {
	color: #dc3232;
}

.fcats-form-field .optional {
	color: #666;
	font-weight: normal;
	font-size: 0.9em;
}

.fcats-form-field input[type="text"],
.fcats-form-field input[type="email"],
.fcats-form-field input[type="tel"],
.fcats-form-field input[type="url"],
.fcats-form-field input[type="file"],
.fcats-form-field select,
.fcats-form-field textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.fcats-form-field input:focus,
.fcats-form-field select:focus,
.fcats-form-field textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.fcats-form-field textarea {
	resize: vertical;
	min-height: 120px;
}

.fcats-form-field input[type="file"] {
	padding: 0.5rem;
}

.fcats-field-hint {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #666;
}

.fcats-field-error input,
.fcats-field-error select,
.fcats-field-error textarea {
	border-color: #dc3232;
}

.fcats-error-message {
	display: block;
	margin-top: 0.5rem;
	color: #dc3232;
	font-size: 0.875rem;
}

.fcats-form-error-general {
	padding: 1rem;
	margin-bottom: 1.5rem;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
}

.fcats-form-checkbox .fcats-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.fcats-form-checkbox input[type="checkbox"] {
	width: auto;
	margin-top: 0.25rem;
	cursor: pointer;
}

.fcats-form-checkbox a {
	color: #0073aa;
	text-decoration: underline;
}

.fcats-form-checkbox a:hover {
	text-decoration: none;
}

.fcats-submit-button {
	display: inline-block;
	padding: 0.875rem 2rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fcats-submit-button:hover,
.fcats-submit-button:focus {
	background: #005177;
}

.fcats-submit-button:focus {
	outline: 2px solid #005177;
	outline-offset: 2px;
}

/* Honeypot (hidden spam trap) */
.fcats-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
	.fcats-job-meta {
		flex-direction: column;
		gap: 0.5rem;
	}

	.fcats-job-meta span::after {
		display: none;
	}

	.fcats-single-job .fcats-job-title {
		font-size: 1.5rem;
	}

	.fcats-meta-item {
		flex-direction: column;
	}

	.fcats-meta-item strong {
		min-width: auto;
	}

	.fcats-application-form-section {
		padding: 1rem;
	}

	.fcats-form-header h2 {
		font-size: 1.5rem;
	}

	.fcats-submit-button {
		width: 100%;
	}
}
