/**
 * Blessed Careers Manager — Frontend Styles
 * Blue & Gold healthcare palette, rounded corners, soft shadows.
 */

.bcm-careers-wrap {
	--bcm-blue: #43B0FF;
	--bcm-blue-dark: #2f8fe0;
	--bcm-gold: #FFBC42;
	--bcm-gold-dark: #e5a52e;
	--bcm-navy: #1c3a52;
	--bcm-text: #4a5a68;
	--bcm-bg-soft: #f4f9ff;
	--bcm-white: #ffffff;
	--bcm-radius: 16px;
	--bcm-shadow: 0 6px 24px rgba(28, 58, 82, 0.08);
	--bcm-shadow-hover: 0 14px 32px rgba(28, 58, 82, 0.14);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bcm-text);
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.bcm-careers-wrap *, .bcm-careers-wrap *::before, .bcm-careers-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Filters ---------- */

.bcm-filters {
	background: var(--bcm-white);
	border-radius: var(--bcm-radius);
	box-shadow: var(--bcm-shadow);
	padding: 20px;
	margin-bottom: 28px;
}

.bcm-filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.bcm-field {
	flex: 1 1 180px;
	position: relative;
}

.bcm-field--search {
	flex: 2 1 260px;
}

.bcm-field input[type="text"],
.bcm-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2ecf5;
	border-radius: 10px;
	background: var(--bcm-bg-soft);
	font-size: 14px;
	color: var(--bcm-navy);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcm-field--search input {
	padding-left: 38px;
}

.bcm-field input:focus,
.bcm-field select:focus {
	outline: none;
	border-color: var(--bcm-blue);
	box-shadow: 0 0 0 3px rgba(67, 176, 255, 0.15);
}

.bcm-field .bcm-icon-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.5;
}

/* ---------- Buttons ---------- */

.bcm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bcm-btn-primary {
	background: linear-gradient(135deg, var(--bcm-blue), var(--bcm-blue-dark));
	color: #fff;
	box-shadow: 0 6px 16px rgba(67, 176, 255, 0.35);
}

.bcm-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(67, 176, 255, 0.45);
	color: #fff;
}

.bcm-btn-secondary {
	background: var(--bcm-bg-soft);
	color: var(--bcm-navy);
}

.bcm-btn-secondary:hover {
	background: #e6f2ff;
}

.bcm-btn-large { padding: 14px 30px; font-size: 15px; }
.bcm-btn-block { width: 100%; }

.bcm-btn-icon {
	background: none;
	border: 1px solid #e2ecf5;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	color: var(--bcm-navy);
}

.bcm-btn-icon:hover { background: var(--bcm-bg-soft); }

/* ---------- Status ---------- */

.bcm-jobs-status {
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--bcm-text);
}

/* ---------- Grid ---------- */

.bcm-jobs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 22px;
}

/* ---------- Job Card ---------- */

.bcm-job-card {
	position: relative;
	background: var(--bcm-white);
	border-radius: var(--bcm-radius);
	box-shadow: var(--bcm-shadow);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid transparent;
}

.bcm-job-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--bcm-shadow-hover);
	border-color: rgba(67, 176, 255, 0.25);
}

.bcm-job-card--featured {
	border-color: var(--bcm-gold);
	background: linear-gradient(180deg, #fffaf0 0%, #ffffff 18%);
}

.bcm-job-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
}

.bcm-job-card__title a {
	color: var(--bcm-navy);
	text-decoration: none;
}

.bcm-job-card__title a:hover { color: var(--bcm-blue-dark); }

.bcm-job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	font-size: 13px;
	color: var(--bcm-text);
}

.bcm-meta-item { display: inline-flex; align-items: center; gap: 6px; }

.bcm-icon { display: inline-block; width: 14px; height: 14px; opacity: 0.65; }
.bcm-icon-location::before { content: "📍"; }
.bcm-icon-briefcase::before { content: "💼"; }
.bcm-icon-department::before { content: "🏥"; }
.bcm-icon-experience::before { content: "⏱️"; }
.bcm-icon-search::before { content: "🔍"; }

.bcm-job-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--bcm-text);
	margin: 0;
	flex-grow: 1;
}

.bcm-job-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid #eef4fa;
}

.bcm-job-card__deadline {
	font-size: 12px;
	color: #7c8b98;
}

.bcm-badge-featured, .bcm-badge-urgent {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bcm-badge-featured {
	background: var(--bcm-gold);
	color: #6b4700;
}

.bcm-badge-urgent {
	top: 46px;
	background: #fdeaea;
	color: #c0392b;
}

.bcm-job-card--featured .bcm-badge-urgent { top: 46px; }

/* ---------- Empty / loading ---------- */

.bcm-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	background: var(--bcm-white);
	border-radius: var(--bcm-radius);
	box-shadow: var(--bcm-shadow);
}

.bcm-empty-state__icon { font-size: 42px; margin-bottom: 10px; }
.bcm-empty-state h3 { color: var(--bcm-navy); margin: 8px 0; }

.bcm-jobs-loading {
	text-align: center;
	padding: 40px 0;
}

.bcm-spinner {
	width: 36px;
	height: 36px;
	border: 4px solid var(--bcm-bg-soft);
	border-top-color: var(--bcm-blue);
	border-radius: 50%;
	margin: 0 auto 10px;
	animation: bcm-spin 0.8s linear infinite;
}

@keyframes bcm-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Pagination ---------- */

.bcm-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.bcm-pagination button {
	border: 1px solid #e2ecf5;
	background: var(--bcm-white);
	color: var(--bcm-navy);
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.bcm-pagination button.active {
	background: var(--bcm-blue);
	color: #fff;
	border-color: var(--bcm-blue);
}

/* ---------- Single Job ---------- */

.bcm-single-job {
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bcm-text, #4a5a68);
}

.bcm-single-job__header {
	background: linear-gradient(135deg, #43B0FF, #2f8fe0);
	border-radius: 20px;
	padding: 40px;
	color: #fff;
	margin-bottom: 30px;
	position: relative;
}

.bcm-single-job__title {
	color: #fff;
	margin: 10px 0 16px;
	font-size: 30px;
}

.bcm-single-job__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-bottom: 22px;
	font-size: 14px;
}

.bcm-single-job__meta .bcm-meta-item { color: #eaf6ff; }

.bcm-closed-notice {
	background: rgba(255,255,255,0.15);
	padding: 12px 16px;
	border-radius: 10px;
	display: inline-block;
}

.bcm-single-job__body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	align-items: start;
}

.bcm-job-section {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(28,58,82,0.08);
	padding: 26px 28px;
	margin-bottom: 22px;
}

.bcm-job-section h2 {
	color: #1c3a52;
	font-size: 19px;
	margin-top: 0;
	margin-bottom: 14px;
	border-bottom: 2px solid #FFBC42;
	display: inline-block;
	padding-bottom: 6px;
}

.bcm-job-section__content { line-height: 1.75; font-size: 15px; }

.bcm-job-summary-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(28,58,82,0.08);
	padding: 24px;
	position: sticky;
	top: 20px;
}

.bcm-job-summary-card h3 {
	color: #1c3a52;
	margin-top: 0;
}

.bcm-job-summary-card ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.bcm-job-summary-card li {
	padding: 8px 0;
	border-bottom: 1px solid #eef4fa;
	font-size: 14px;
}

.bcm-job-share-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

/* ---------- Apply Form (modal / slide-down) ---------- */

.bcm-apply-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(28, 58, 82, 0.55);
	z-index: 99999;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 16px;
}

.bcm-apply-overlay.bcm-open { display: flex; }

.bcm-apply-panel {
	background: #fff;
	border-radius: 20px;
	max-width: 720px;
	width: 100%;
	padding: 36px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	animation: bcm-slide-down 0.3s ease;
}

@keyframes bcm-slide-down {
	from { transform: translateY(-30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.bcm-apply-close {
	position: absolute;
	top: 18px;
	right: 20px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #7c8b98;
}

.bcm-apply-panel h2 { color: #1c3a52; margin: 0 0 4px; }
.bcm-apply-subtitle { color: #43B0FF; font-weight: 600; margin-bottom: 20px; }

.bcm-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bcm-form-field--full { grid-column: 1 / -1; }
.bcm-form-field--checkbox label { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }

.bcm-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1c3a52;
	margin-bottom: 6px;
}

.bcm-form-field input[type="text"],
.bcm-form-field input[type="email"],
.bcm-form-field input[type="tel"],
.bcm-form-field input[type="url"],
.bcm-form-field input[type="date"],
.bcm-form-field input[type="file"],
.bcm-form-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #e2ecf5;
	border-radius: 10px;
	background: #f4f9ff;
	font-size: 14px;
	color: #1c3a52;
}

.bcm-form-field input:focus, .bcm-form-field textarea:focus {
	outline: none;
	border-color: #43B0FF;
	box-shadow: 0 0 0 3px rgba(67,176,255,0.15);
}

.bcm-field-hint { display: block; font-size: 11px; color: #8899a6; margin-top: 4px; }
.bcm-field-error { display: block; font-size: 12px; color: #c0392b; margin-top: 4px; min-height: 14px; }

.bcm-form-field.bcm-has-error input,
.bcm-form-field.bcm-has-error textarea {
	border-color: #c0392b;
}

.bcm-form-general-error {
	background: #fdeaea;
	color: #c0392b;
	padding: 10px 14px;
	border-radius: 10px;
	margin: 16px 0;
	font-size: 13px;
}

#bcm-apply-submit {
	margin-top: 22px;
}

.bcm-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bcm-spin 0.7s linear infinite;
	display: inline-block;
}

.bcm-form-success {
	text-align: center;
	padding: 40px 10px;
}

.bcm-success-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background: #e4f7ec;
	color: #1c8a4b;
	font-size: 30px;
	margin: 0 auto 16px;
	animation: bcm-pop 0.4s ease;
}

@keyframes bcm-pop {
	0% { transform: scale(0.4); opacity: 0; }
	70% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.bcm-single-job__body { grid-template-columns: 1fr; }
	.bcm-job-summary-card { position: static; }
}

@media (max-width: 640px) {
	.bcm-form-grid { grid-template-columns: 1fr; }
	.bcm-single-job__header { padding: 26px; border-radius: 16px; }
	.bcm-single-job__title { font-size: 24px; }
	.bcm-apply-panel { padding: 24px; }
	.bcm-filters__row { flex-direction: column; align-items: stretch; }
}

@media print {
	.bcm-apply-overlay, .bcm-job-share-actions, #bcm-apply-trigger, .bcm-apply-trigger {
		display: none !important;
	}
}
