/* ============================================================
 * AI Hero Homepage band — uaeauto-car-rental plugin
 * Loaded only on front_page when uaeauto_ai_hero_enabled is true.
 * Spec: specs/003-ai-hero-homepage/spec.md
 * ============================================================ */

.uaeauto-ai-hero {
	position: relative;
	z-index: 10;
	width: 100%;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	color: #1f2937;
	padding: 48px 16px;
	box-sizing: border-box;
	border-bottom: 1px solid #e5e7eb;
	opacity: 0;
	animation: uaeauto-ai-hero-fallback 0s 0.6s forwards;
}

.uaeauto-ai-hero--positioned {
	opacity: 1;
	animation: none;
}

@keyframes uaeauto-ai-hero-fallback {
	to { opacity: 1; }
}

.uaeauto-ai-hero__inner {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.uaeauto-ai-hero__title {
	font-size: 36px;
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1f2937;
}

.uaeauto-ai-hero__subline {
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 32px;
	color: #6b7280;
}

.uaeauto-ai-hero__form {
	margin: 0 0 16px;
}

.uaeauto-ai-hero__input {
	display: block;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 20px;
	font-size: 17px;
	line-height: 1.3;
	color: #1f2937;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.06 );
	outline: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uaeauto-ai-hero__input:focus {
	border-color: #9ca3af;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.10 ), 0 0 0 4px rgba( 0, 0, 0, 0.05 );
}

.uaeauto-ai-hero__chips {
	display: grid;
	grid-template-columns: repeat( 3, max-content );
	justify-content: center;
	gap: 8px;
	margin: 0 auto 20px;
	max-width: 760px;
}

.uaeauto-ai-hero__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1.3;
	color: #374151;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
	font-family: inherit;
}

.uaeauto-ai-hero__chip:hover,
.uaeauto-ai-hero__chip:focus {
	background: #f9fafb;
	border-color: #9ca3af;
	transform: translateY( -1px );
	outline: none;
}

.uaeauto-ai-hero__browse {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	color: #6b7280;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.uaeauto-ai-hero__browse:hover,
.uaeauto-ai-hero__browse:focus {
	color: #1f2937;
}

/* Active chat state — input + chips replaced by iframe */
.uaeauto-ai-hero__iframe {
	display: block;
	width: 100%;
	max-width: 760px;
	margin: 16px auto 12px;
	height: 480px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 );
}

/* Down-state panel — chat unreachable */
.uaeauto-ai-hero__down {
	max-width: 720px;
	margin: 24px auto 16px;
	padding: 20px;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	color: #1f2937;
	text-align: center;
}

.uaeauto-ai-hero__down-message {
	font-size: 15px;
	margin: 0 0 16px;
	color: #4b5563;
}

.uaeauto-ai-hero__down .uaeauto-ai-hero__chip {
	text-decoration: none;
}

/* ------- Mobile (≤ 768 px) ------- */
@media ( max-width: 768px ) {
	.uaeauto-ai-hero {
		min-height: 100vh;
		padding: 32px 12px;
	}

	.uaeauto-ai-hero__title {
		font-size: 28px;
	}

	.uaeauto-ai-hero__subline {
		font-size: 15px;
		margin-bottom: 24px;
	}

	.uaeauto-ai-hero__input {
		padding: 14px 18px;
		font-size: 16px;
	}

	.uaeauto-ai-hero__chips {
		display: grid;
		grid-template-columns: repeat( 2, 1fr );
		justify-content: stretch;
		max-width: 100%;
	}

	.uaeauto-ai-hero__chip {
		justify-content: center;
		text-align: center;
	}

	.uaeauto-ai-hero__iframe {
		height: calc( 100vh - 220px );
		max-width: 100%;
		border-radius: 12px;
	}
}

/* ------- Vehica overlay handling (per research §3) ------- */
/* If Vehica's homepage hero stacks awkwardly, uncomment after staging QA. */
/* body.home .vehica-hero { margin-top: 0; } */
/* Make sure our band wins z-index against Vehica overlays */
body.home #ai-hero-band {
	position: relative;
	z-index: 100;
}

/* Hide the band entirely if for any reason the JS removes it (defensive) */
.uaeauto-ai-hero[hidden] {
	display: none !important;
}
