/**
 * Staff Directory Template Styles
 */

.staff-directory-container {
	display: flex;
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
	flex-wrap: wrap;
}

/* Mobile Dropdown Navigation */
.staff-directory-mobile-nav {
	display: none;
	width: 100%;
	margin-bottom: 1.5rem;
}

.staff-directory-mobile-nav label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.staff-directory-mobile-nav select {
	width: 100%;
	padding: 0.75rem;
	font-size: 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: white;
	cursor: pointer;
}

/* Sidebar Navigation */
.staff-directory-sidebar {
	flex: 0 0 250px;
	position: sticky;
	top: 60px;
	max-height: calc(100vh - 80px);
	align-self: flex-start;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Custom scrollbar styling for sidebar */
.staff-directory-sidebar::-webkit-scrollbar {
	width: 6px;
}

.staff-directory-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.staff-directory-sidebar::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.staff-directory-sidebar::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.staff-nav-menu {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.staff-nav-menu h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	color: #333;
	border-bottom: 2px solid #ddd;
	padding-bottom: 0.5rem;
}

.staff-nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.staff-nav-menu li {
	margin-bottom: 0.25rem;
}

.staff-nav-menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	color: #555;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-size: 0.75rem;
	white-space: nowrap;
}

.staff-nav-menu a:hover,
.staff-nav-menu a:focus {
	background: #fff;
	color: #000;
	padding-left: 1rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.staff-nav-menu a.active {
	background: #004963;
	color: #fff;
	font-weight: 600;
}

/* Main Content Area */
.staff-directory-content {
	flex: 1;
	min-width: 0;
}

.staff-directory-intro {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f9f9f9;
	border-left: 4px solid #004963;
	border-radius: 4px;
}

/* Category Sections */
.staff-category-section {
	margin-bottom: 3rem;
	padding-top: 1rem;
	scroll-margin-top: 100px; /* Account for sticky header */
}

.staff-category-section h2,
.staff-category-section h3 {
	font-family: 'ScandiaLine', 'Scandia', sans-serif !important;
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: #222;
	position: relative;
	padding-bottom: 1.5rem;
	text-transform: uppercase;
	font-weight: normal;
}

.staff-category-section h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 8px;
	height: 8px;
	margin-left: -8px;
	background: #004963;
}

.staff-category-section h2::before {
	content: '';
	position: absolute;
	bottom: 3px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 2px;
	background: #004963;
	margin-left: -8px;
	z-index: -1;
}

.staff-category-description {
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
	color: #666;
}

.staff-category-description a {
	color: #0066cc;
	text-decoration: underline;
}

/* Sorting Controls */
.staff-sorting-controls {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1rem;
	background: #f5f5f5;
	border-radius: 8px;
}

.staff-sorting-controls label {
	font-weight: 600;
	margin-right: 0.5rem;
}

.staff-sorting-controls select {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	font-size: 1rem;
}

.staff-sorting-controls button {
	padding: 0.5rem 1.5rem;
	background: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease;
}

.staff-sorting-controls button:hover {
	background: #555;
}

/* Responsive Design */
@media (max-width: 968px) {
	.staff-category-section h2::after,
	.staff-category-section h2::before {
		margin-left: -4px;
	}
	.staff-directory-container {
		flex-direction: column;
		gap: 1rem;
	}

	.staff-directory-sidebar {
		display: none;
	}

	.staff-directory-mobile-nav {
		display: block;
	}

	.staff-directory-content {
		flex: 1 1 100%;
	}

	.staff-category-section {
		scroll-margin-top: 80px;
	}
}

@media (max-width: 600px) {
	.staff-nav-menu ul {
		grid-template-columns: 1fr;
	}

	.staff-category-section h2 {
		font-size: 1.5rem;
	}

	.staff-sorting-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.staff-sorting-controls select,
	.staff-sorting-controls button {
		width: 100%;
	}
}

/* Enhanced Mugshot Grid */
.trainerthumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 2rem auto;
	max-width: 100%;
	text-align: center;
}

.trainerthumbs li {
	margin: 0;
	flex: 0 0 auto;
	width: 200px;
	text-align: center;
}

.trainerthumbs a {
	display: block;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
	width: 100%;
}

.trainerthumbs img {
	border-radius: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.trainerthumbs a:hover img {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.trainerthumbs span {
	display: block;
	margin-top: 0.5rem;
	font-weight: 600;
}

.trainerthumbs span em {
	font-weight: normal;
}

.trainerthumbs .bookable {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.25rem 0.75rem;
	background: #28a745;
	color: white;
	font-size: 0.8rem;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.trainerthumbs .bookable.spa {
	background: #6f42c1;
}

/* Responsive thumbnail sizes - matching existing staff.css breakpoints */
@media (max-width: 1120px) {
	.trainerthumbs li {
		width: 180px;
	}
	.trainerthumbs {
		gap: 1.5rem;
	}
}

@media (max-width: 850px) {
	.trainerthumbs li {
		width: 160px;
	}
	.trainerthumbs {
		gap: 1.25rem;
	}
}

@media (max-width: 599px) {
	.trainerthumbs li {
		width: 140px;
	}
	.trainerthumbs {
		gap: 1rem;
	}
}
