/**
 * FuzeHR ATS — Frontend styles.
 *
 * Mobile-first responsive styles for job listing and detail templates.
 * All classes prefixed with fuzehr-ats- to avoid theme conflicts.
 */

/* ==========================================================================
   Hook-injected meta (works with any theme)
   ========================================================================== */

.fuzehr-ats-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 8px;
}

.fuzehr-ats-meta span {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: #555;
}

.fuzehr-ats-meta__employment-type {
	font-weight: 600;
	color: #333;
}

.fuzehr-ats-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fuzehr-ats-badge--contract {
	background: #e8f4fd;
	color: #1a73e8;
}

.fuzehr-ats-badge--permanent {
	background: #e6f4ea;
	color: #1e8e3e;
}

.fuzehr-ats-badge--temp-to-hire,
.fuzehr-ats-badge--temp-to-perm {
	background: #fef7e0;
	color: #e37400;
}

.fuzehr-ats-badge--temporary {
	background: #fce8e6;
	color: #d93025;
}

/* ==========================================================================
   Fallback listing card template
   ========================================================================== */

.fuzehr-ats-job-card {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.fuzehr-ats-job-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fuzehr-ats-job-card a {
	text-decoration: none;
	color: inherit;
}

.fuzehr-ats-job-card__title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.fuzehr-ats-job-card__company {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.fuzehr-ats-job-card__details {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 13px;
	color: #777;
}

.fuzehr-ats-job-card__pay {
	font-weight: 600;
	color: #1e8e3e;
}

/* ==========================================================================
   Fallback single job template
   ========================================================================== */

.fuzehr-ats-single {
	max-width: 900px;
	margin: 0 auto;
}

.fuzehr-ats-single__header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.fuzehr-ats-single__title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
}

.fuzehr-ats-single__meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin: 16px 0;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 6px;
}

.fuzehr-ats-single__meta-item {
	display: flex;
	flex-direction: column;
}

.fuzehr-ats-single__meta-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	margin-bottom: 2px;
}

.fuzehr-ats-single__meta-value {
	font-size: 15px;
	color: #333;
}

.fuzehr-ats-single__description {
	margin: 24px 0;
	line-height: 1.7;
	color: #333;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 768px) {
	.fuzehr-ats-job-card {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.fuzehr-ats-job-card__details {
		margin-left: auto;
	}

	.fuzehr-ats-single__meta-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.fuzehr-ats-single__meta-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Position closed/filled notices */
.fuzehr-ats-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0;
	font-size: 14px;
}

.fuzehr-ats-notice p {
	margin: 0;
}

.fuzehr-ats-notice--closed {
	background: #fef3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.fuzehr-ats-notice--filled {
	background: #d4edda;
	border: 1px solid #28a745;
	color: #155724;
}
