/* Lever Jobs Plugin Styles */

.lever-jobs-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.lever-jobs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.lever-job-card {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 20px;
	transition: box-shadow 0.3s ease, transform 0.2s ease;
	position: relative;
}

.lever-job-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.lever-job-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}

.lever-job-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.3;
	flex: 1;
	margin-right: 10px;
}

.lever-job-team {
	background: #3498db;
	color: white;
	padding: 4px 10px;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
}

.lever-job-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 15px;
}

.lever-job-meta span {
	display: inline-block;
	font-size: 0.9rem;
	color: #7f8c8d;
	line-height: 1.4;
}

.lever-job-location {
	color: #e74c3c !important;
}

.lever-job-commitment {
	color: #27ae60 !important;
}

.lever-job-workplace {
	color: #9b59b6 !important;
}

.lever-job-description {
	margin-bottom: 20px;
	color: #34495e;
	line-height: 1.5;
	font-size: 0.95rem;
}

.lever-job-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.lever-job-details-btn {
	background: #ecf0f1;
	color: #2c3e50;
	border: 1px solid #bdc3c7;
	padding: 8px 16px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.lever-job-details-btn:hover {
	background: #d5dbdb;
	border-color: #95a5a6;
}

.lever-job-apply-btn,
.lever-job-apply-btn-large {
	background: #3498db;
	color: white !important;
	border: none;
	padding: 8px 16px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	text-decoration: none !important;
	display: inline-block;
}

.lever-job-apply-btn-large {
	font-size: 1rem;
	padding: 12px 24px;
	font-weight: 600;
}

.lever-job-apply-btn:hover,
.lever-job-apply-btn-large:hover {
	background: #2980b9;
	transform: translateY(-1px);
}

/* Modal Styles */
.lever-modal {
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	overflow: auto;
}

.lever-modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 0;
	border-radius: 8px;
	width: 90%;
	max-width: 800px;
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lever-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: sticky;
	top: 0;
	right: 20px;
	background: white;
	z-index: 1;
	cursor: pointer;
	padding: 10px 0;
}

.lever-modal-close:hover,
.lever-modal-close:focus {
	color: #000;
}

.lever-job-details {
	padding: 30px;
}

.lever-job-details h2 {
	margin-top: 0;
	color: #2c3e50;
	font-size: 1.75rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #ecf0f1;
}

.lever-job-meta-details {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 25px;
}

.lever-job-meta-details p {
	margin: 8px 0;
	font-size: 0.95rem;
}

.lever-job-meta-details strong {
	color: #2c3e50;
	min-width: 100px;
	display: inline-block;
}

.lever-job-full-description h3,
.lever-job-list h4 {
	color: #2c3e50;
	font-size: 1.2rem;
	margin: 25px 0 15px 0;
}

.lever-job-full-description,
.lever-job-list,
.lever-job-closing {
	line-height: 1.6;
	color: #34495e;
}

.lever-job-full-description ul,
.lever-job-list ul {
	padding-left: 20px;
}

.lever-job-full-description li,
.lever-job-list li {
	margin-bottom: 8px;
}

.lever-job-apply-section {
	text-align: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
}

.lever-job-closing {
	margin: 20px 0;
	padding: 15px;
	background: #f1f2f6;
	border-left: 4px solid #3498db;
	border-radius: 0 6px 6px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.lever-jobs-container {
		padding: 15px;
	}

	.lever-jobs-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.lever-job-header {
		flex-direction: column;
		gap: 10px;
	}

	.lever-job-title {
		margin-right: 0;
	}

	.lever-job-team {
		align-self: flex-start;
	}

	.lever-modal-content {
		width: 95%;
		margin: 10px auto;
		max-height: 90vh;
	}

	.lever-job-details {
		padding: 20px;
	}

	.lever-job-actions {
		flex-direction: column;
	}

	.lever-job-details-btn,
	.lever-job-apply-btn {
		text-align: center;
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.lever-job-details {
		padding: 15px;
	}

	.lever-job-details h2 {
		font-size: 1.5rem;
	}

	.lever-jobs-container {
		padding: 10px;
	}
}

/* Loading States */
.lever-jobs-loading {
	text-align: center;
	padding: 40px 20px;
	color: #7f8c8d;
}

.lever-jobs-error {
	text-align: center;
	padding: 40px 20px;
	color: #e74c3c;
	background: #ffeaea;
	border-radius: 6px;
	border: 1px solid #f5b7b1;
}
