/**
 * Shepherd Docs — Help Beacon styles
 * Self-contained; scoped under .shep-beacon-root so nothing leaks into the theme.
 */

.shep-beacon-root {
	--shep-accent: #2563eb;
	--shep-accent-dark: #1e40af;
	position: fixed;
	bottom: 22px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shep-beacon--br { right: 22px; }
.shep-beacon--bl { left: 22px; }

/* ── Toggle button ───────────────────────────────────────────────────────── */
.shep-beacon-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none !important;
	border-radius: 999px !important;
	background: var(--shep-accent) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

/* Keep the icon and label optically centred — inline SVGs add a baseline gap
   that otherwise pushes the label down a couple of pixels. */
.shep-beacon-toggle svg { display: block; }

.shep-beacon-label {
	line-height: 1;
	display: inline-block;
	padding: 0 !important;
	margin: 0 !important;
}

.shep-beacon-toggle:hover {
	background: var(--shep-accent-dark) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.shep-beacon-toggle:focus-visible {
	outline: 3px solid rgba(0, 0, 0, .25) !important;
	outline-offset: 2px;
}

.shep-beacon-icon { display: inline-flex; align-items: center; line-height: 0; }
.shep-beacon-icon--close { display: none; }
.shep-beacon--open .shep-beacon-icon--open { display: none; }
.shep-beacon--open .shep-beacon-icon--close { display: inline-flex; }

/* ── Panel ───────────────────────────────────────────────────────────────── */
.shep-beacon-panel {
	position: absolute;
	bottom: 62px;
	width: 360px;
	max-width: calc(100vw - 44px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	overflow: hidden;
	animation: shep-beacon-in .16s ease;
}

.shep-beacon--br .shep-beacon-panel { right: 0; }
.shep-beacon--bl .shep-beacon-panel { left: 0; }

@keyframes shep-beacon-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.shep-beacon-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--shep-accent);
	color: #fff;
}

.shep-beacon-title { font-size: 15px; font-weight: 600; }

.shep-beacon-close {
	display: inline-flex;
	padding: 4px;
	border: none !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	opacity: .85;
	border-radius: 6px !important;
}
.shep-beacon-close:hover { opacity: 1; }

/* ── Search field ────────────────────────────────────────────────────────── */
.shep-beacon-search {
	position: relative;
	display: flex;
	align-items: center;
	padding: 14px 16px 10px;
}

.shep-beacon-search-icon {
	position: absolute;
	left: 28px;
	color: #9ca3af;
	pointer-events: none;
}

.shep-beacon-input {
	width: 100%;
	padding: 10px 12px 10px 38px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 9px !important;
	font-size: 14px !important;
	color: #1a1a1a !important;
	background: #fff !important;
	box-shadow: none !important;
}

.shep-beacon-input:focus {
	border-color: var(--shep-accent) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--shep-accent) 18%, transparent) !important;
}

.shep-beacon-spinner {
	position: absolute;
	right: 28px;
	width: 16px;
	height: 16px;
	border: 2px solid #e5e7eb;
	border-top-color: var(--shep-accent);
	border-radius: 50%;
	animation: shep-beacon-spin .7s linear infinite;
}

@keyframes shep-beacon-spin { to { transform: rotate(360deg); } }

/* ── Results ─────────────────────────────────────────────────────────────── */
.shep-beacon-results {
	max-height: 320px;
	overflow-y: auto;
	padding: 0 8px;
}

.shep-beacon-result {
	display: block;
	padding: 10px 12px;
	border-radius: 9px;
	text-decoration: none !important;
	color: #1a1a1a !important;
	transition: background .12s ease;
}

.shep-beacon-result:hover { background: #f3f4f6; }

.shep-beacon-result-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

.shep-beacon-result-cat {
	display: inline-block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	color: var(--shep-accent);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.shep-beacon-empty {
	padding: 16px 18px;
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

/* ── Footer link ─────────────────────────────────────────────────────────── */
.shep-beacon-footer {
	display: block;
	padding: 14px 18px;
	border-top: 1px solid #f0f0f1;
	color: var(--shep-accent) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	background: #fafafa;
}
.shep-beacon-footer:hover { background: #f3f4f6; }

@media (max-width: 480px) {
	.shep-beacon-label { display: none; }
	.shep-beacon-toggle { padding: 14px; }
}
