/**
 * Careers Page Styles
 * Custom styles for job search, listings, and sidebar
 * 
 * @package MaskanFamily
 * @since 1.0.0
 */

/* =====================================================
   Careers Hero
   ===================================================== */

.career-hero-banner {
	background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #111827 100%);
	padding: 110px 0 90px;
	position: relative;
	overflow: hidden;
}

.career-hero-banner::after {
	content: '';
	position: absolute;
	width: 520px;
	height: 520px;
	background: rgba(133, 191, 24, 0.08);
	border-radius: 50%;
	filter: blur(0.5px);
	right: -120px;
	top: -160px;
}

.career-hero-content {
	position: relative;
	z-index: 1;
	max-width: 700px;
}

.hero-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
}

.hero-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.hero-kicker {
	margin-top: 18px;
	color: #85bf18;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.career-hero-content h1 {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	color: #ffffff;
	margin: 10px 0;
	line-height: 1.15;
}

.hero-lead {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.05rem;
	max-width: 560px;
}

/* =====================================================
   Job Search Section
   ===================================================== */

.job-search-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	position: relative;
	overflow: hidden;
}

.job-search-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: rgba(133, 191, 24, 0.05);
	border-radius: 50%;
	z-index: 0;
}

.job-search-wrap {
	position: relative;
	z-index: 1;
}

.search-header .search-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 10px;
}

.search-header .search-subtitle {
	font-size: 1.1rem;
	color: #666;
	margin: 0;
}

.job-search-form {
	background: #ffffff;
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.job-search-form:hover {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.search-box {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.search-input-wrap {
	flex: 1;
	position: relative;
	min-width: 300px;
}

.search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #85BF18;
	font-size: 1.2rem;
	pointer-events: none;
}

.search-input {
	width: 100%;
	padding: 18px 20px 18px 55px;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	font-size: 1rem;
	color: #333;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.search-input:focus {
	outline: none;
	border-color: #85BF18;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(133, 191, 24, 0.1);
}

.search-btn {
	padding: 18px 35px;
	white-space: nowrap;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
}

.trending-keywords {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

.trending-label {
	font-size: 0.9rem;
	color: #666;
	font-weight: 600;
}

.keyword-tag {
	padding: 8px 16px;
	background: #f8f9fa;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #555;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.keyword-tag:hover {
	background: #85BF18;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(133, 191, 24, 0.3);
}

/* =====================================================
   Filter Tabs
   ===================================================== */

.job-filter-tabs {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	background: #ffffff;
	padding: 20px 25px;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.filter-tabs-wrap {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-tab {
	padding: 12px 20px;
	background: #f8f9fa;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid transparent;
}

.filter-tab i {
	font-size: 1rem;
}

.filter-tab:hover {
	background: #e9ecef;
	color: #333;
	transform: translateY(-2px);
}

.filter-tab.active {
	background: #85BF18;
	color: #ffffff;
	border-color: #85BF18;
	box-shadow: 0 5px 15px rgba(133, 191, 24, 0.3);
}

.results-count {
	font-size: 0.95rem;
	color: #666;
	font-weight: 600;
}

.count-number {
	color: #85BF18;
	font-size: 1.3rem;
	font-weight: 700;
	margin-right: 3px;
}

/* =====================================================
   Job Listings
   ===================================================== */

.job-listings {
	animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.job-card-wrapper {
	transition: all 0.3s ease;
}

.job-card-wrapper:hover {
	transform: translateY(-5px);
}

.camping-card.job-card-no-thumb {
	display: block;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	border: none;
}

.camping-card.job-card-no-thumb .content {
	padding: 35px;
}

.job-card-meta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.job-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 9999px;
	background: #eef3f5;
	color: #374151;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.job-chip i {
	font-size: 0.85rem;
}

.job-chip:hover {
	background: #ffffff;
	border-color: rgba(55, 65, 81, 0.15);
	color: #111827;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.job-chip.is-featured {
	background: linear-gradient(135deg, #fde68a, #f59e0b);
	color: #6b2c11;
	border: none;
	box-shadow: 0 10px 18px rgba(245, 158, 11, 0.35);
}

.job-chip.is-ghost {
	background: rgba(133, 191, 24, 0.18);
	color: #31520a;
	border: none;
}

.job-card-info {
	margin-top: 25px;
}

.job-card-info .fund {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.featured-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 3px 10px rgba(255, 165, 0, 0.4);
	z-index: 2;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 3px 10px rgba(255, 165, 0, 0.4);
	}
	50% {
		box-shadow: 0 5px 15px rgba(255, 165, 0, 0.6);
	}
}

.featured-badge i {
	font-size: 0.8rem;
}

.camping-card .fund.salary-info {
	border-top: 1px solid #e9ecef;
	padding-top: 15px;
	margin-top: 10px;
}

.camping-card .d-wishlist {
	cursor: pointer;
	transition: all 0.3s ease;
}

.camping-card .d-wishlist:hover {
	background: #85BF18;
	border-color: #85BF18;
}

.camping-card .d-wishlist:hover i {
	color: #ffffff;
}

/* No Jobs Found */
.no-jobs-found {
	animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* =====================================================
   Sidebar Styles
   ===================================================== */

.job-sidebar {
	position: sticky;
	top: 100px;
}

.sidebar-widget {
	background: #ffffff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
}

.sidebar-widget:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.widget-header {
	padding: 20px 25px;
	background: linear-gradient(135deg, #85BF18 0%, #6da014 100%);
	border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.widget-content {
	padding: 25px;
}

/* Stats Widget */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.stat-item:hover {
	background: #e9ecef;
	transform: scale(1.05);
}

.stat-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #85BF18 0%, #6da014 100%);
	border-radius: 12px;
	color: #ffffff;
	font-size: 1.3rem;
	flex-shrink: 0;
}

.stat-info {
	flex: 1;
}

.stat-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 5px 0;
	line-height: 1;
}

.stat-label {
	font-size: 0.85rem;
	color: #666;
	margin: 0;
}

/* Categories Widget */
.category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-item {
	border-bottom: 1px solid #e9ecef;
}

.category-item:last-child {
	border-bottom: none;
}

.category-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	color: #555;
	text-decoration: none;
	transition: all 0.3s ease;
}

.category-link:hover {
	color: #85BF18;
	padding-left: 10px;
}

.category-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 500;
}

.category-name i {
	color: #85BF18;
	font-size: 1rem;
}

.category-count {
	font-size: 0.9rem;
	color: #999;
	font-weight: 600;
}

/* Spotlight Widget */
.spotlight-card {
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.spotlight-image {
	position: relative;
	overflow: hidden;
}

.spotlight-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.spotlight-card:hover .spotlight-image img {
	transform: scale(1.1);
}

.spotlight-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
	color: #ffffff;
	padding: 6px 15px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(255, 165, 0, 0.4);
}

.spotlight-content {
	padding: 20px 0 0 0;
}

.spotlight-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	line-height: 1.4;
}

.spotlight-title a {
	color: #222;
	text-decoration: none;
	transition: color 0.3s ease;
}

.spotlight-title a:hover {
	color: #85BF18;
}

.spotlight-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e9ecef;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #666;
}

.meta-item i {
	color: #85BF18;
	font-size: 0.9rem;
}

.spotlight-btn {
	width: 100%;
	justify-content: center;
	padding: 14px 25px;
}

/* CTA Widget */
.cta-card {
	text-align: center;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 12px;
	border: 2px dashed #e9ecef;
}

.cta-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #85BF18 0%, #6da014 100%);
	border-radius: 50%;
	color: #ffffff;
	font-size: 2rem;
	box-shadow: 0 10px 25px rgba(133, 191, 24, 0.3);
}

.cta-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px 0;
}

.cta-text {
	font-size: 0.95rem;
	color: #666;
	margin: 0 0 25px 0;
	line-height: 1.6;
}

.cta-btn {
	width: 100%;
	justify-content: center;
	padding: 14px 25px;
}

/* Contact Widget */
.contact-card {
	text-align: center;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	color: #ffffff;
}

.contact-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	font-size: 1.8rem;
	backdrop-filter: blur(10px);
}

.contact-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.contact-text {
	font-size: 0.9rem;
	margin: 0 0 20px 0;
	opacity: 0.95;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	transition: all 0.3s ease;
}

.contact-link:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link i {
	transition: transform 0.3s ease;
}

.contact-link:hover i {
	transform: translateX(5px);
}

/* =====================================================
   Career Detail Page
   ===================================================== */

.career-details-section {
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}

.career-detail-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 20px 50px rgba(15, 24, 43, 0.08);
	margin-bottom: 30px;
}

.career-detail-hero {
	margin-bottom: 30px;
}

.hero-eyebrow {
	font-size: 0.9rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #85bf18;
	margin-bottom: 10px;
}

.career-detail-hero h1 {
	font-size: 2.5rem;
	margin: 0 0 10px 0;
}

.hero-subtitle {
	color: #5f6c7b;
	font-size: 1.05rem;
	margin-bottom: 15px;
}

.career-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.career-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.career-meta-card {
	background: #f8f9fb;
	border-radius: 18px;
	padding: 18px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.career-meta-card p {
	margin: 0;
	font-size: 0.85rem;
	color: #7b8a9a;
}

.career-meta-card h5 {
	margin: 3px 0 0 0;
	font-size: 1.05rem;
}

.meta-icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(133, 191, 24, 0.12);
	color: #85bf18;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}

.career-content-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 35px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
	margin-bottom: 30px;
}

.career-content-card h3 {
	margin-bottom: 18px;
	font-size: 1.5rem;
}

.career-bullet-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.career-bullet-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 12px;
	color: #4a5663;
}

.career-bullet-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #85bf18;
}

.career-sidebar-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
	margin-bottom: 25px;
}

.career-apply-card .w-100 {
	margin-top: 15px;
}

.deadline-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f9f3e6;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	color: #c47a00;
	margin-bottom: 10px;
}

.career-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.career-info-list li {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #eef0f2;
	padding: 12px 0;
}

.career-info-list span {
	font-weight: 600;
	color: #7a8797;
}

.career-info-list p {
	margin: 0;
	color: #2d3642;
	font-weight: 600;
}

.career-sidebar-card.contact-card {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #ffffff;
}

.career-sidebar-card.contact-card p {
	color: rgba(255, 255, 255, 0.85);
}

.career-sidebar-card.contact-card .contact-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	font-weight: 600;
	margin-top: 12px;
}

.career-sidebar {
	position: sticky;
	top: 120px;
}

.back-to-careers {
	margin-top: 12px;
	justify-content: center;
}

/* Modal */
.career-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 24, 43, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1050;
}

.career-modal.active {
	opacity: 1;
	pointer-events: auto;
}

.career-modal__dialog {
	background: #ffffff;
	border-radius: 24px;
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.career-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	border-bottom: 1px solid #eef0f2;
}

.career-modal__body {
	padding: 32px;
}

.modal-close {
	background: transparent;
	border: none;
	font-size: 1.2rem;
	color: #7a8797;
	cursor: pointer;
}

.career-modal .form-group {
	margin-bottom: 18px;
}

.career-modal label {
	font-weight: 600;
	margin-bottom: 6px;
	display: inline-block;
}

.career-modal input,
.career-modal textarea,
.career-modal select {
	width: 100%;
	border-radius: 12px;
	border: 1px solid #dfe3e8;
	padding: 12px 14px;
	font-size: 1rem;
}

.career-modal textarea {
	min-height: 120px;
	resize: vertical;
}

.career-modal .form-actions {
	display: flex;
	gap: 15px;
	margin-top: 10px;
}

.career-modal .alert {
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 15px;
	font-weight: 600;
}

.career-modal .alert-success {
	background: #e8f7ec;
	color: #1e7b32;
}

.career-modal .alert-error {
	background: #fdecea;
	color: #b3261e;
}

.e-primary-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

@media (max-width: 1199px) {
	.job-sidebar {
		position: static;
		margin-top: 40px;
	}

	.career-sidebar {
		position: static;
	}
}

@media (max-width: 991px) {
	.search-header .search-title {
		font-size: 2rem;
	}
	
	.job-search-form {
		padding: 30px;
	}
	
	.search-box {
		flex-direction: column;
	}
	
	.search-input-wrap {
		min-width: 100%;
	}
	
	.search-btn {
		width: 100%;
		justify-content: center;
	}
	
	.filter-tabs-wrap {
		width: 100%;
	}
	
	.filter-tab {
		flex: 1;
		justify-content: center;
		padding: 10px 15px;
		font-size: 0.85rem;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.career-detail-card,
	.career-content-card,
	.career-sidebar-card {
		padding: 25px;
	}

	.career-meta-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.career-hero-banner {
		padding: 90px 0 70px;
	}
}

@media (max-width: 767px) {
	.search-header .search-title {
		font-size: 1.6rem;
	}
	
	.search-header .search-subtitle {
		font-size: 1rem;
	}
	
	.job-search-form {
		padding: 25px 20px;
	}
	
	.filter-tabs-wrap {
		flex-direction: column;
	}
	
	.filter-tab {
		width: 100%;
	}
	
	.results-count {
		width: 100%;
		text-align: center;
		padding-top: 15px;
		border-top: 1px solid #e9ecef;
	}

	.career-meta-grid {
		grid-template-columns: 1fr;
	}

	.career-modal {
		padding: 15px;
	}

	.career-modal__dialog {
		border-radius: 18px;
	}

	.career-modal .form-actions {
		flex-direction: column;
	}

	.career-hero-banner {
		padding: 70px 0 60px;
		text-align: center;
	}

	.career-hero-content {
		margin: 0 auto;
	}

	.job-card-meta-row {
		flex-direction: column;
	}
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {
	.job-search-section,
	.job-filter-tabs,
	.job-sidebar,
	.featured-badge {
		display: none;
	}
	
	.camping-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}
