﻿/*
 * alnokhba-experts.css
 * Experts / Team archive — matches TeamPage.tsx
 */

/* ─── Page wrapper ─── */
.an-team-page {
	background: #000;
	min-height: 100vh;
	padding-top: 7rem;   /* clear the fixed navbar */
	padding-bottom: 0;
	direction: rtl;
}

/* ─── Page header ─── */
.an-team-page__header {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	padding: 4rem 0;
}

.an-team-page__header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.an-team-page__kicker {
	color: rgba(255, 255, 255, .3);
	letter-spacing: 0.5em;
	text-transform: uppercase;
	font-size: 0.7rem;
	font-family: 'Inter', 'Cairo', sans-serif;
	margin: 0 0 0.75rem;
}

.an-team-page__title {
	font-family: 'Playfair Display', 'Cairo', serif;
	font-size: clamp(2.5rem, 7vw, 5rem);
	color: #fff;
	line-height: 1;
	margin: 0 0 1rem;
	font-weight: 700;
}

.an-team-page__clear {
	display: inline-block;
	color: rgba(255, 255, 255, .4);
	font-size: 0.8rem;
	font-family: 'Inter', 'Cairo', sans-serif;
	text-decoration: none;
	letter-spacing: 0.05em;
	transition: color .2s;
	margin-top: 0.5rem;
}

.an-team-page__clear:hover {
	color: #fff;
}

/* ─── Members list ─── */
.an-team-page__list {
	max-width: 1280px;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 7rem;
}

/* ─── Empty state ─── */
.an-team-page__empty {
	text-align: center;
	padding: 5rem 1.5rem;
}

.an-team-page__empty p {
	color: rgba(255, 255, 255, .4);
	font-family: 'Cairo', sans-serif;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

.an-team-page__empty-btn {
	display: inline-block;
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-family: 'Inter', 'Cairo', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 0.75rem 2rem;
	text-decoration: none;
	transition: background .3s, color .3s;
}

.an-team-page__empty-btn:hover {
	background: #fff;
	color: #000;
}

/* ─── Team row ─── */
.an-team-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

/* Swap: image moves to the right (in RTL = visual left) */
.an-team-row--swap .an-team-row__media {
	order: 2;
}

.an-team-row--swap .an-team-row__copy {
	order: 1;
}

/* ─── Image column ─── */
.an-team-row__img-wrap {
	position: relative;
	background: #18181b;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

.an-team-row__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter .7s ease;
}

.an-team-row__img-wrap:hover .an-team-row__img {
	filter: grayscale(0%);
}

.an-team-row__img-ph {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* ─── Text column ─── */
.an-team-row__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.an-team-row__title {
	color: rgba(255, 255, 255, .3);
	letter-spacing: 0.4em;
	text-transform: uppercase;
	font-size: 0.625rem;     /* 10px */
	font-family: 'Inter', 'Cairo', sans-serif;
	margin: 0 0 0.75rem;
}

.an-team-row__name {
	font-family: 'Playfair Display', 'Cairo', serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
	color: #fff;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.an-team-row__meta {
	color: rgba(255, 255, 255, .4);
	font-size: 0.875rem;
	font-family: 'Inter', 'Cairo', sans-serif;
	margin: 0 0 1.5rem;
}

.an-team-row__bio {
	color: rgba(255, 255, 255, .5);
	font-size: 0.875rem;
	line-height: 2;
	font-family: 'Inter', 'Cairo', sans-serif;
	margin: 0 0 2rem;
	max-width: 44ch;
}

/* ─── Stats row ─── */
.an-team-row__stats {
	display: flex;
	gap: 2rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-top: 1.5rem;
	margin-bottom: 2rem;
	width: 100%;
}

.an-team-row__stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.an-team-row__stat-val {
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	color: #fff;
	margin: 0;
	line-height: 1;
}

.an-team-row__stat-lbl {
	font-family: 'Inter', 'Cairo', sans-serif;
	font-size: 0.625rem;
	color: rgba(255, 255, 255, .3);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

/* ─── Book button ─── */
.an-team-row__book {
	display: inline-block;
	border: 1px solid #fff;
	color: #fff;
	background: transparent;
	font-family: 'Inter', 'Cairo', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 0.75rem 2rem;
	text-decoration: none;
	cursor: pointer;
	transition: background .3s ease, color .3s ease;
}

.an-team-row__book:hover {
	background: #fff;
	color: #000;
}

.an-team-row__book--disabled {
	border-color: rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .2);
	cursor: default;
	pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
	.an-team-row {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.an-team-row--swap .an-team-row__media,
	.an-team-row--swap .an-team-row__copy {
		order: unset;
	}

	.an-team-row__img-wrap {
		aspect-ratio: 4 / 3;
		max-height: 420px;
	}

	.an-team-page__list {
		gap: 5rem;
	}
}

@media (max-width: 640px) {
	.an-team-page {
		padding-top: 5rem;
	}

	.an-team-page__header {
		padding: 2.5rem 0;
	}

	.an-team-page__list {
		padding: 2.5rem 1rem;
		gap: 4rem;
	}

	.an-team-row__img-wrap {
		aspect-ratio: 3 / 2;
		max-height: 280px;
	}

	.an-team-row__stats {
		gap: 1.5rem;
	}

	.an-team-row__bio {
		font-size: 0.8rem;
	}
}
