/**
 * Film Greater Zion – Crew & Support Services Directory
 * Branded, clean, mobile-friendly styles (Greater Zion theme colors)
 * Colors: #364b54 (dark blue), #eb6b40 (orange), #d5d2d2 (light gray), #a0babf (light blue)
 */

/* ---- Archive layout (theme .site-container already has padding-top for fixed header) ---- */
.film-gz-crew-archive {
	padding-top: 0;
	padding-bottom: 2rem;
}

.film-gz-crew-archive > .container {
	padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.film-gz-crew-card-link,
	.film-gz-crew-filter-btn {
		transition: none;
	}
	.film-gz-crew-card-link:hover,
	.film-gz-crew-card-link:focus {
		transform: none;
	}
	.film-gz-crew-modal,
	.film-gz-crew-modal-panel {
		transition: none;
	}
}

/* ---- Archive header (room for clear page title) ---- */
.film-gz-crew-header {
	background: linear-gradient(135deg, #364b54 0%, #3a3736 100%);
	color: #fff;
	padding: 1.75rem 0;
	margin-bottom: 0;
}

.film-gz-crew-header-inner {
	max-width: 720px;
}

.film-gz-crew-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.film-gz-crew-intro {
	margin: 0;
	opacity: 0.92;
	font-size: 1rem;
	line-height: 1.5;
}

/* ---- Breadcrumb ---- */
.film-gz-crew-breadcrumb-wrap {
	margin: 0.5rem 0 0.75rem;
	padding: 0;
	background: transparent;
}

.film-gz-crew-archive .breadcrumb,
.film-gz-crew-single .breadcrumb {
	margin: 0;
	padding: 0;
	background: transparent;
}

.film-gz-crew-archive .breadcrumb a,
.film-gz-crew-single .breadcrumb a {
	color: #364b54;
}

/* ---- Layout: sidebar + main ---- */
.film-gz-crew-archive-container {
	padding-top: 0.5rem;
}

.film-gz-crew-layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 992px) {
	.film-gz-crew-layout {
		flex-direction: row;
		align-items: start;
		gap: 2.5rem;
	}
}

.film-gz-crew-sidebar {
	flex-shrink: 0;
}

@media (min-width: 992px) {
	.film-gz-crew-sidebar {
		width: 260px;
		position: sticky;
		top: 1.5rem;
	}
}

.film-gz-crew-main {
	flex: 1;
	min-width: 0;
}

@media (min-width: 992px) {
	.film-gz-crew-main {
		padding-top: 0.15rem;
	}
}

/* ---- Sidebar filters (vertical) ---- */
.film-gz-crew-filters {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 1.35rem 1.25rem;
	box-shadow: 0 2px 8px rgba(54, 75, 84, 0.06);
}

.film-gz-crew-filters-title {
	margin: 0 0 1.1rem;
	font-size: 1rem;
	font-weight: 600;
	color: #364b54;
	letter-spacing: 0.02em;
}

.film-gz-crew-filter-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.film-gz-crew-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.film-gz-crew-filter-field label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #5a6268;
}

.film-gz-crew-search-input {
	width: 100%;
	min-width: 0;
	padding: 0.6rem 0.9rem;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	font-size: 1rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.film-gz-crew-search-input::placeholder {
	color: #6c757d;
}

.film-gz-crew-search-input:focus,
.film-gz-crew-search-input:focus-visible {
	border-color: #364b54;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(54, 75, 84, 0.2);
}

.film-gz-crew-role-select {
	width: 100%;
	min-width: 0;
	padding: 0.6rem 2rem 0.6rem 0.9rem;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	font-size: 1rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.film-gz-crew-role-select:focus,
.film-gz-crew-role-select:focus-visible {
	border-color: #364b54;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(54, 75, 84, 0.15);
}

.film-gz-crew-filter-btn {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.65rem 1.25rem;
	background: #eb6b40;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.film-gz-crew-filter-btn:hover {
	background: #d85a32;
	color: #fff;
	box-shadow: 0 2px 8px rgba(235, 107, 64, 0.3);
}

.film-gz-crew-filter-btn:active {
	transform: scale(0.98);
}

.film-gz-crew-filter-btn:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(54, 75, 84, 0.35);
}

/* ---- Result count ---- */
.film-gz-crew-result-count {
	margin: 0 0 1.35rem;
	font-size: 0.9375rem;
	color: #5a6268;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

/* ---- Grid (3 columns on desktop with sidebar) ---- */
.film-gz-crew-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

@media (min-width: 576px) {
	.film-gz-crew-grid {
		gap: 1.5rem;
	}
}

@media (min-width: 768px) {
	.film-gz-crew-grid {
		gap: 1.5rem;
	}
}

@media (min-width: 992px) {
	.film-gz-crew-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

/* ---- Card ---- */
.film-gz-crew-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.film-gz-crew-card-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-align: left;
	text-decoration: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 0;
	margin: 0;
	border: 1px solid #e5e8eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: 0 2px 6px rgba(54, 75, 84, 0.06);
}

.film-gz-crew-card-link:hover,
.film-gz-crew-card-link:focus-visible {
	border-color: #a0babf;
	box-shadow: 0 8px 24px rgba(54, 75, 84, 0.12);
	transform: translateY(-2px);
}

.film-gz-crew-card-link:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(54, 75, 84, 0.22), 0 8px 24px rgba(54, 75, 84, 0.08);
}

.film-gz-crew-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Subtle accent: left border in theme color on hover */
.film-gz-crew-card-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #eb6b40;
	opacity: 0;
	transition: opacity 0.25s ease;
	border-radius: 10px 0 0 10px;
}

.film-gz-crew-card-link:hover::before,
.film-gz-crew-card-link:focus-visible::before {
	opacity: 1;
}

.film-gz-crew-card-image {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
	overflow: hidden;
	background: #eef0f2;
}

.film-gz-crew-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.film-gz-crew-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #364b54 0%, #3a3736 100%);
}

.film-gz-crew-card-initial {
	font-size: 3rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1;
}

/* No photo: content gets more padding for a balanced, spacious card */
.film-gz-crew-card--no-photo .film-gz-crew-card-content {
	padding-top: 2rem;
}

.film-gz-crew-card-content {
	padding: 1.35rem 1.35rem 1.35rem;
	padding-top: 1.35rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	justify-content: center;
	min-height: 4.5rem;
}

.film-gz-crew-card-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
	color: #364b54;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.film-gz-crew-card-role {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: #5a6268;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

/* ---- No results ---- */
.film-gz-crew-none {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1.5rem;
	color: #6c757d;
	font-size: 1.05rem;
	line-height: 1.5;
	margin: 0;
}

/* ---- Pagination ---- */
.film-gz-crew-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.film-gz-crew-pagination a,
.film-gz-crew-pagination span.current,
.film-gz-crew-pagination span.dots {
	display: inline-block;
	padding: 0.5rem 1rem;
	min-width: 44px;
	min-height: 44px;
	text-align: center;
	line-height: 2;
	box-sizing: border-box;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	text-decoration: none;
	color: #364b54;
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.film-gz-crew-pagination a:hover {
	background: #f8f9fa;
	border-color: #364b54;
	color: #364b54;
}

.film-gz-crew-pagination a:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 2px rgba(54, 75, 84, 0.3);
}

.film-gz-crew-pagination span.current {
	background: #364b54;
	border-color: #364b54;
	color: #fff;
	font-weight: 600;
}

.film-gz-crew-pagination span.dots {
	border: 0;
	background: transparent;
	color: #6c757d;
}

/* ---- Single crew member ---- */
.film-gz-crew-single-header {
	background: linear-gradient(135deg, #364b54 0%, #3a3736 100%);
	color: #fff;
	padding: 2rem 0;
}

.film-gz-crew-single-title {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: #fff;
}

.film-gz-crew-single-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.film-gz-crew-single-roles a {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.875rem;
	transition: background 0.2s;
}

.film-gz-crew-single-roles a:hover,
.film-gz-crew-single-roles a:focus-visible {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.film-gz-crew-single-content {
	padding: 2rem 0;
}

.film-gz-crew-single-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	.film-gz-crew-single-layout {
		grid-template-columns: 320px 1fr;
	}
}

.film-gz-crew-single-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.film-gz-crew-single-placeholder {
	aspect-ratio: 1;
	max-width: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #364b54 0%, #3a3736 100%);
	border-radius: 10px;
}

.film-gz-crew-single-initial {
	font-size: 5rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.film-gz-crew-detail-list {
	margin: 0 0 1.5rem;
	padding: 0;
}

.film-gz-crew-detail-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 0.75rem 1.5rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #e9ecef;
	margin: 0;
}

.film-gz-crew-detail-row:last-child {
	border-bottom: 0;
}

.film-gz-crew-detail-row dt {
	margin: 0;
	font-weight: 600;
	color: #364b54;
	font-size: 0.9rem;
}

.film-gz-crew-detail-row dd {
	margin: 0;
	color: #495057;
}

.film-gz-crew-detail-row a {
	color: #eb6b40;
	text-decoration: none;
}

.film-gz-crew-detail-row a:hover,
.film-gz-crew-detail-row a:focus-visible {
	text-decoration: underline;
	outline: 0;
}

.film-gz-crew-detail-row a:focus-visible {
	text-decoration: underline;
	border-radius: 2px;
	box-shadow: 0 0 0 2px rgba(235, 107, 64, 0.4);
}

.film-gz-crew-single-bio {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9ecef;
}

/* ---- Crew modal (popup) ---- */
.film-gz-crew-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s ease, opacity 0.2s ease;
}

.film-gz-crew-modal.film-gz-crew-modal-open {
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}

.film-gz-crew-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(54, 75, 84, 0.6);
	cursor: pointer;
}

.film-gz-crew-modal-panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: scale(0.95);
	transition: transform 0.2s ease;
}

.film-gz-crew-modal-open .film-gz-crew-modal-panel {
	transform: scale(1);
}

.film-gz-crew-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: #f0f0f0;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	color: #364b54;
	cursor: pointer;
	transition: background 0.2s;
	z-index: 1;
}

.film-gz-crew-modal-close:hover,
.film-gz-crew-modal-close:focus-visible {
	background: #e0e0e0;
	color: #364b54;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(54, 75, 84, 0.3);
}

.film-gz-crew-modal-body {
	padding: 2rem 1.5rem 1.5rem;
}

.film-gz-crew-modal-name {
	margin: 0 2rem 0 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #364b54;
	line-height: 1.3;
}

.film-gz-crew-modal-roles {
	margin: 0.5rem 0 1.25rem;
	font-size: 0.9rem;
	color: #6c757d;
}

.film-gz-crew-modal-details {
	margin: 0;
	padding: 0;
}

.film-gz-crew-modal-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 0.5rem 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e9ecef;
	margin: 0;
}

.film-gz-crew-modal-row:last-child {
	border-bottom: 0;
}

.film-gz-crew-modal-row dt {
	margin: 0;
	font-weight: 600;
	color: #364b54;
	font-size: 0.875rem;
}

.film-gz-crew-modal-row dd {
	margin: 0;
	color: #495057;
	font-size: 0.95rem;
}

.film-gz-crew-modal-row a {
	color: #eb6b40;
	text-decoration: none;
}

.film-gz-crew-modal-row a:hover,
.film-gz-crew-modal-row a:focus-visible {
	text-decoration: underline;
	outline: 0;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 991px) {
	.film-gz-crew-sidebar {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.film-gz-crew-header {
		padding: 1.25rem 0;
	}

	.film-gz-crew-filters {
		padding: 1.15rem 1rem;
	}

	.film-gz-crew-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.film-gz-crew-card-content {
		padding: 1.5rem 1.25rem;
	}

	.film-gz-crew-card-title {
		font-size: 1.2rem;
	}

	.film-gz-crew-card-role {
		font-size: 0.9rem;
	}

	.film-gz-crew-detail-row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.film-gz-crew-modal {
		padding: 0.75rem;
	}

	.film-gz-crew-modal-body {
		padding: 1.75rem 1.25rem 1.25rem;
	}

	.film-gz-crew-modal-name {
		font-size: 1.25rem;
		margin-right: 2.5rem;
	}

	.film-gz-crew-modal-row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/* Screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
