/**
 * Shaw Staff Directory Styles
 *
 * Brand Colors:
 * Primary Green: #215732
 * Light Green: #EDFBE2
 * White: #FFFFFF
 * Black: #000000
 *
 * @package Shaw_Staff_Directory
 */

/* ============================================
   Directory Container
   ============================================ */

.shaw-staff-directory {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ============================================
   Filter Controls
   ============================================ */

.shaw-staff-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #EDFBE2;
	border-radius: 8px;
}

.shaw-filter-group {
	flex: 1 1 250px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.shaw-filter-group label {
	font-weight: 600;
	font-size: 0.875rem;
	color: #215732;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.shaw-search-input,
.shaw-type-filter,
.shaw-department-filter {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.shaw-search-input:focus,
.shaw-type-filter:focus,
.shaw-department-filter:focus {
	outline: none;
	border-color: #215732;
	box-shadow: 0 0 0 3px rgba(33, 87, 50, 0.15);
}

.shaw-search-input::placeholder {
	color: #999;
}

/* ============================================
   Staff Grid
   ============================================ */

.shaw-staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

/* ============================================
   Staff Card
   ============================================ */

.shaw-staff-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
	display: block;
}

.shaw-staff-card:hover {
	box-shadow: 0 4px 12px rgba(33, 87, 50, 0.15);
	transform: translateY(-2px);
	border-color: #215732;
}

.shaw-staff-card.hidden {
	display: none;
}

/* ============================================
   Staff Header (Photo + Name/Class/Department)
   ============================================ */

.shaw-staff-header {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	padding: 1.5rem;
	padding-bottom: 1rem;
	gap: 1.5rem;
}

.shaw-staff-photo-wrapper {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	overflow: hidden;
	background: #EDFBE2;
}

.shaw-staff-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shaw-staff-identity {
	flex: 1;
	min-width: 0;
}

/* ============================================
   Staff Details (Position/Contact/Bio)
   ============================================ */

.shaw-staff-details {
	padding: 0 1.5rem 1.5rem 1.5rem;
}

.shaw-staff-name {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #000;
	line-height: 1.3;
}

.shaw-staff-class {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #215732;
	line-height: 1.3;
}

.shaw-staff-position {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #215732;
}

.shaw-staff-department {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: #666;
	font-style: italic;
}

/* ============================================
   Contact Information
   ============================================ */

.shaw-staff-contact {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
}

.shaw-staff-contact p {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	line-height: 1.6;
}

.shaw-staff-contact p:last-child {
	margin-bottom: 0;
}

.shaw-staff-contact .shaw-label {
	font-weight: 600;
	color: #215732;
	display: inline-block;
	min-width: 60px;
}

.shaw-staff-email a,
.shaw-staff-phone a {
	color: #215732;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shaw-staff-email a:hover,
.shaw-staff-phone a:hover {
	color: #1a4528;
	text-decoration: underline;
}

.shaw-staff-office {
	color: #333;
}

/* ============================================
   Staff Bio
   ============================================ */

.shaw-staff-bio {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #444;
}

.shaw-staff-bio p {
	margin: 0 0 0.75rem;
}

.shaw-staff-bio p:last-child {
	margin-bottom: 0;
}

/* ============================================
   No Results Message
   ============================================ */

.shaw-no-results {
	text-align: center;
	padding: 3rem 1rem;
	font-size: 1.125rem;
	color: #215732;
	background: #EDFBE2;
	border-radius: 8px;
	margin: 2rem 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
	.shaw-staff-directory {
		padding: 1.5rem 1rem;
	}

	.shaw-staff-filters {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}

	.shaw-filter-group {
		flex: 1 1 100%;
	}

	.shaw-staff-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.shaw-staff-info {
		padding: 1.25rem;
	}

	.shaw-staff-name {
		font-size: 1.125rem;
	}

	.shaw-staff-class {
		font-size: 1.0625rem;
	}
}

/* Small Tablet / Large Phone */
@media screen and (max-width: 640px) {
	.shaw-staff-header {
		flex-direction: column;
		padding: 1.5rem;
		padding-bottom: 1rem;
		gap: 1rem;
	}

	.shaw-staff-photo-wrapper {
		width: 80px;
		height: 80px;
	}

	.shaw-staff-details {
		padding: 0 1.5rem 1.5rem 1.5rem;
	}
}

/* Mobile */
@media screen and (max-width: 480px) {
	.shaw-staff-directory {
		padding: 1rem 0.5rem;
	}

	.shaw-staff-filters {
		padding: 0.75rem;
	}

	.shaw-staff-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.shaw-staff-header {
		padding: 1rem;
		padding-bottom: 0.75rem;
		gap: 0.75rem;
	}

	.shaw-staff-photo-wrapper {
		max-width: 80px;
	}

	.shaw-staff-details {
		padding: 0 1rem 1rem 1rem;
	}

	.shaw-staff-name {
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	.shaw-staff-class {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.shaw-staff-department {
		margin-bottom: 0;
	}

	.shaw-staff-position {
		font-size: 0.9375rem;
	}

	.shaw-staff-contact {
		margin-top: 0.75rem;
		padding-top: 0.75rem;
	}

	.shaw-staff-contact .shaw-label {
		display: block;
		margin-bottom: 0.25rem;
	}
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
	.shaw-staff-filters {
		display: none;
	}

	.shaw-staff-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.shaw-staff-card:hover {
		box-shadow: none;
		transform: none;
	}

	.shaw-staff-email a {
		color: #000;
		text-decoration: underline;
	}
}
