/**
 * Feature Search Section
 *
 * "Search Your Documents with AI" — compact pair with Chatbot above.
 * Uses --gradient-blue for h2 accent.
 *
 * @package AgenticWP
 */

/* ============================================
   Section Spacing
   Reduced padding (48px) — compact pair with Chatbot.
   ============================================ */

.feature-search {
	padding-top: 48px;
	padding-bottom: 64px;
}

/* ============================================
   Layout: Description left, panel right
   ============================================ */

.search-layout {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	align-items: flex-start;
}

@media (min-width: 900px) {
	.search-layout {
		flex-direction: row-reverse;
		gap: 3.5rem;
		align-items: center;
	}
}

/* ============================================
   Mock Search Panel
   ============================================ */

.search-panel-visual {
	width: 100%;
	max-width: 400px;
	flex-shrink: 0;
	background: #0b1220;
	border-radius: 12px;
	border: 1px solid var(--line);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.search-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1.25rem;
	background: rgba(59,130,246,0.15);
	border-bottom: 1px solid var(--line);
}

.search-panel-title {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ink);
}

.search-panel-badge {
	font-size: 0.8125rem;
	color: #93c5fd;
	background: rgba(255, 255, 255, 0.08);
	padding: 0.2rem 0.625rem;
	border-radius: 999px;
}

.search-panel-body {
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ============================================
   Search Input Area
   ============================================ */

.search-input-area {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 0.875rem;
	background: #111827;
	border: 1px solid rgba(59, 130, 246, 0.4);
	border-radius: 8px;
}

.search-input-icon {
	flex-shrink: 0;
	color: #3b82f6;
}

.search-input-text {
	font-size: 0.875rem;
	color: var(--ink);
	flex: 1;
}

.search-input-enter {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--muted);
	background: #1e293b;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-family: monospace;
}

/* ============================================
   Search Results
   ============================================ */

.search-results-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.search-results-list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.search-result-card {
	padding: 0.75rem 0.875rem;
	background: #111827;
	border: 1px solid var(--line);
	border-radius: 8px;
	border-left: 3px solid #3b82f6;
}

.search-result-doc {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 0.3rem;
}

.search-result-excerpt {
	font-size: 0.75rem;
	color: var(--muted);
	line-height: 1.5;
	margin-bottom: 0.4rem;
}

.search-result-citation {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.6875rem;
	color: #3b82f6;
	font-weight: 500;
}

/* ============================================
   Description + Bullets
   ============================================ */

.search-description {
	flex: 1;
}

.feature-search h2 {
	margin-bottom: 0.625rem;
}

.feature-search h2 .accent {
	background: var(--gradient-blue, linear-gradient(135deg, #3b82f6, #1e40af));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #1e40af;
}

.feature-search .lead {
	font-size: 1.0625rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.search-bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.search-bullets li {
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.5;
	padding-left: 1.25rem;
	position: relative;
}

.search-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3b82f6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
	.search-panel-visual {
		max-width: 100%;
	}
}
