/**
 * GDC Zone 3: The Host — Styles
 * S7 §Z3: Host profile card, crew cards, video embed
 *
 * @package GDC
 * @since   5.0.0
 */

/* S7 §Z3: Zone container */
.gdc-zone-3-host {
	background: var(--gdc-bg-deep);
}

/* S7 §Z3: Inner wrapper */
.gdc-host-inner {
	max-width: var(--gdc-max-narrow);
	margin: 0 auto;
	padding: var(--gdc-section-py-mobile) var(--gdc-section-px-mobile);
}

/* ==============================
   HOST PROFILE CARD
   ============================== */

.gdc-host-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--gdc-space-3);
	border: 1px solid var(--gdc-alpha-10);
	border-radius: 8px;
	padding: var(--gdc-space-4);
	background: var(--gdc-surface, var(--gdc-bg-abyss, #141B24));
}

/* S7 §Z3.3: Portrait — 120px mobile circle */
.gdc-host-portrait-wrap {
	flex-shrink: 0;
}

.gdc-host-portrait {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--gdc-alpha-20);
}

.gdc-host-portrait--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gdc-alpha-10);
	color: var(--gdc-white-muted);
	font-size: 2.5rem;
	font-weight: var(--gdc-font-semibold);
}

/* S7 §Z3.2: Host text */
.gdc-host-details {
	display: flex;
	flex-direction: column;
	gap: var(--gdc-space-1);
}

.gdc-host-name {
	font-family: var(--gdc-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--gdc-white);
	margin: 0;
}

.gdc-host-experience {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	color: var(--gdc-white-muted);
	margin: 0;
}

.gdc-host-languages {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	color: var(--gdc-white-dim);
	margin: 0;
}

.gdc-host-bio {
	font-family: var(--gdc-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--gdc-white-muted);
	margin: var(--gdc-space-1) 0 0;
}

/* S7 §Z3.2: Message CTA — secondary button */
.gdc-host-message-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: var(--gdc-space-2);
	padding: 12px 20px;
	border: 1px solid var(--gdc-alpha-30);
	border-radius: var(--gdc-radius-button, 6px);
	background: transparent;
	color: var(--gdc-white);
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	font-weight: var(--gdc-font-medium);
	text-decoration: none;
	cursor: pointer;
	min-height: var(--gdc-tap-target-primary, 48px);
	transition: border-color var(--gdc-duration-fast, 150ms) var(--gdc-ease-default, ease);
	align-self: center;
}

.gdc-host-message-btn:hover {
	border-color: var(--gdc-white-muted);
	color: var(--gdc-white);
}

.gdc-host-wa-icon {
	flex-shrink: 0;
}

/* ==============================
   CREW CARDS
   ============================== */

.gdc-crew-section {
	margin-top: var(--gdc-space-5);
}

.gdc-crew-heading {
	font-family: var(--gdc-font-heading);
	font-size: var(--gdc-text-lg);
	font-weight: 600;
	color: var(--gdc-white);
	margin: 0 0 var(--gdc-space-3);
}

/* S7 §Z3.4: Horizontal scroll on mobile */
.gdc-crew-scroll {
	display: flex;
	gap: var(--gdc-space-3);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	padding-bottom: var(--gdc-space-2);
}

.gdc-crew-scroll::-webkit-scrollbar {
	height: 4px;
}

.gdc-crew-scroll::-webkit-scrollbar-track {
	background: var(--gdc-alpha-10);
	border-radius: 2px;
}

.gdc-crew-scroll::-webkit-scrollbar-thumb {
	background: var(--gdc-alpha-30);
	border-radius: 2px;
}

.gdc-crew-card {
	flex: 0 0 140px;
	text-align: center;
	scroll-snap-align: start;
	outline: none;
}

.gdc-crew-card:focus-visible {
	outline: 2px solid var(--gdc-purple);
	outline-offset: 4px;
	border-radius: 8px;
}

.gdc-crew-portrait {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--gdc-alpha-20);
	margin: 0 auto var(--gdc-space-1);
	display: block;
}

.gdc-crew-portrait--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gdc-alpha-10);
	color: var(--gdc-white-dim);
	font-size: 1.5rem;
	font-weight: var(--gdc-font-semibold);
}

.gdc-crew-name {
	font-family: var(--gdc-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--gdc-white);
	margin: 0;
}

.gdc-crew-role {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-xs);
	color: var(--gdc-white-dim);
	margin: 2px 0 0;
}

.gdc-crew-fallback {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	color: var(--gdc-white-dim);
	font-style: italic;
	margin: 0;
}

/* ==============================
   HOST VIDEO
   ============================== */

.gdc-host-video {
	margin-top: var(--gdc-space-5);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.gdc-host-video-caption {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	color: var(--gdc-white-dim);
	margin: 0 0 var(--gdc-space-2);
	text-align: center;
}

/* S7 §Z3.5: 16:9 aspect ratio container */
.gdc-host-video-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	border-radius: 8px;
	overflow: hidden;
	background: var(--gdc-alpha-10);
}

.gdc-host-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==============================
   TABLET (768px+)
   ============================== */

@media (min-width: 768px) {
	.gdc-host-inner {
		padding: var(--gdc-space-10) var(--gdc-space-4);
	}

	.gdc-host-card {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
		gap: var(--gdc-space-4);
	}

	.gdc-host-portrait {
		width: 100px;
		height: 100px;
	}

	.gdc-host-portrait--placeholder {
		width: 100px;
		height: 100px;
		font-size: 2rem;
	}

	.gdc-host-message-btn {
		align-self: flex-start;
	}

	.gdc-crew-scroll {
		flex-wrap: wrap;
		overflow-x: visible;
	}

	.gdc-crew-card {
		flex: 0 0 auto;
	}
}

/* ==============================
   DESKTOP (1200px+)
   ============================== */

@media (min-width: 1200px) {
	.gdc-host-inner {
		padding: var(--gdc-section-py-desktop) var(--gdc-space-4);
	}

	.gdc-host-portrait {
		width: 160px;
		height: 160px;
	}

	.gdc-host-portrait--placeholder {
		width: 160px;
		height: 160px;
		font-size: 3rem;
	}
}

/* ==============================
   SCROLL FADE-IN
   ============================== */

@media (prefers-reduced-motion: no-preference) {
	.gdc-host-inner {
		opacity: 0;
		transform: translateY(var(--gdc-scroll-slide-distance));
		transition:
			opacity var(--gdc-scroll-fade-duration) var(--gdc-ease-default),
			transform var(--gdc-scroll-fade-duration) var(--gdc-ease-default);
	}

	.gdc-host-inner.se-visible {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdc-host-inner {
		opacity: 1;
		transform: none;
	}
}
