/**
 * Public/frontend styles for Krea Employee Manager.
 *
 * @package KreaEmployeeManager
 */

/* Employee Listing - Grid Layout */
.kem-employee-listing {
	margin: 30px 0;
}

.kem-layout-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.kem-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

.kem-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Employee Listing - List Layout */
.kem-layout-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kem-layout-list .kem-employee-card {
	display: flex;
	gap: 20px;
}

.kem-layout-list .kem-employee-photo {
	flex-shrink: 0;
	width: 150px;
}

/* Employee Card */
.kem-employee-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.kem-employee-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kem-employee-photo img {
	width: 100%;
	height: auto;
	display: block;
}

.kem-employee-content {
	padding: 20px;
}

.kem-employee-name {
	margin: 0 0 8px 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
}

.kem-employee-designation {
	margin: 0 0 12px 0;
	color: #666;
	font-size: 0.95rem;
}

.kem-employee-department {
	margin: 0 0 8px 0;
	color: #888;
	font-size: 0.9rem;
}

.kem-employee-email {
	margin: 8px 0 0 0;
	font-size: 0.9rem;
}

.kem-employee-email a {
	color: #2271b1;
	text-decoration: none;
}

.kem-employee-email a:hover {
	text-decoration: underline;
}

.kem-employee-phone {
	margin: 4px 0 0 0;
	color: #666;
	font-size: 0.9rem;
}

/* Single Employee */
.kem-single-employee {
	margin: 30px 0;
}

.kem-employee-header {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
	padding: 30px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.kem-employee-photo-large {
	flex-shrink: 0;
	width: 250px;
}

.kem-employee-photo-large img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.kem-employee-header-content {
	flex: 1;
}

.kem-employee-header-content .kem-employee-name {
	margin: 0 0 10px 0;
	font-size: 2rem;
}

.kem-employee-header-content .kem-employee-designation {
	margin: 0 0 20px 0;
	font-size: 1.1rem;
	color: #666;
}

.kem-employee-contact {
	margin-top: 20px;
}

.kem-contact-item {
	margin: 8px 0;
	font-size: 0.95rem;
}

.kem-contact-item strong {
	display: inline-block;
	min-width: 120px;
	color: #333;
}

.kem-employee-bio {
	padding: 30px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	line-height: 1.8;
}

/* Department Employees */
.kem-department-employees {
	margin: 30px 0;
}

.kem-department-title {
	margin: 0 0 20px 0;
	font-size: 2rem;
	color: #333;
}

.kem-department-description {
	margin: 0 0 30px 0;
	padding: 20px;
	background: #f9f9f9;
	border-left: 4px solid #2271b1;
}

/* No Employees Message */
.kem-no-employees {
	padding: 40px;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	color: #666;
	font-style: italic;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.kem-layout-grid {
		grid-template-columns: 1fr;
	}

	.kem-columns-2,
	.kem-columns-3,
	.kem-columns-4 {
		grid-template-columns: 1fr;
	}

	.kem-employee-header {
		flex-direction: column;
	}

	.kem-employee-photo-large {
		width: 100%;
		max-width: 300px;
	}

	.kem-layout-list .kem-employee-card {
		flex-direction: column;
	}

	.kem-layout-list .kem-employee-photo {
		width: 100%;
	}
}
