/*
 Theme Name: GeneratePress Job Portal
 Theme URI: https://generatepress.com
 Description: A child theme for GeneratePress to create a job portal using WordPress default categories with term meta.
 Author: Your Name
 Author URI: https://yourwebsite.com
 Template: generatepress
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: generatepress-jobportal
*/

/* ================================
   JOB CARD DESIGN - Clean & Modern
   ================================ */

.gpjp-job-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	padding: 1rem 1.125rem;
	transition: all 0.3s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
}

.gpjp-job-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
	border-color: #2563eb;
}

.gpjp-job-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.25rem 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 2.45em;
}

.gpjp-job-title a {
	color: #2563eb;
	text-decoration: none;
	transition: color 0.2s;
}

.gpjp-job-title a:hover {
	color: #1e40af;
	text-decoration: none;
}

.gpjp-job-company {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0;
	font-weight: 400;
}

/* Badges */
.gpjp-job-badges {
	display: flex;
	gap: 0.375rem;
	margin-bottom: 0.625rem;
	flex-wrap: wrap;
}

.gpjp-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.1875rem 0.5rem;
	font-size: 0.625rem;
	font-weight: 600;
	border-radius: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.gpjp-badge-urgent {
	background-color: #fee2e2;
	color: #dc2626;
}

.gpjp-badge-featured {
	background-color: #dbeafe;
	color: #2563eb;
}

.gpjp-badge-popular {
	background-color: #dcfce7;
	color: #16a34a;
}


.gpjp-view-details-btn {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	background-color: #2563eb;
	color: #ffffff;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.375rem;
	text-decoration: none;
	transition: all 0.2s;
}

.gpjp-view-details-btn:hover {
	background-color: #1e40af;
	color: #ffffff;
	text-decoration: none;
}

/* Grid Layouts */
.jobs-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.jobs-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.jobs-grid-4 {
		grid-template-columns: 1fr !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	.gpjp-job-card {
		padding: 1rem !important;
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	.gpjp-job-title {
		font-size: 0.9375rem !important;
	}
	
	.gpjp-job-meta {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.5rem !important;
	}
	
	/* Force single column for all job grids on mobile */
	.gpjp-jobs-grid,
	.jobs-grid-4,
	[class*="jobs-grid"],
	[class*="job-grid"] {
		display: grid !important;
		grid-template-columns: 1fr !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Force all job cards to full width */
	.gpjp-jobs-grid .gpjp-job-card,
	.jobs-grid-4 .gpjp-job-card,
	[class*="jobs-grid"] .gpjp-job-card,
	[class*="job-grid"] .gpjp-job-card {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
		float: none !important;
		clear: both !important;
	}
}

