/**
 * Equidam Agent Buttons
 * Styling for the "Read with Claude / ChatGPT / Copy for agent" button row
 * that is injected at the top of every blog post.
 *
 * Scoped entirely under .guide-agent-buttons so it cannot bleed into theme
 * styles. Uses CSS custom properties so the host theme can override the accent
 * without editing this file.
 */

.guide-agent-buttons {
	--gab-gap: 0.625rem;
	--gab-radius: 9999px;
	--gab-border: #e2e4e9;
	--gab-bg: #ffffff;
	--gab-text: #1d2433;
	--gab-text-muted: #5b6478;
	--gab-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	--gab-shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.12);
	--gab-claude: #d97757;
	--gab-chatgpt: #10a37f;

	margin: 0 0 1.75rem;
}

.guide-agent-buttons__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gab-gap);
}

.guide-agent-buttons__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.5rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	color: var(--gab-text);
	background: var(--gab-bg);
	border: 1px solid var(--gab-border);
	border-radius: var(--gab-radius);
	box-shadow: var(--gab-shadow);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, box-shadow 0.15s ease,
		transform 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.guide-agent-buttons__button:hover,
.guide-agent-buttons__button:focus-visible {
	box-shadow: var(--gab-shadow-hover);
	transform: translateY(-1px);
	text-decoration: none;
}

.guide-agent-buttons__button:focus-visible {
	outline: 2px solid var(--gab-text);
	outline-offset: 2px;
}

.guide-agent-buttons__button svg {
	display: block;
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 auto;
}

.guide-agent-buttons__button span {
	display: inline-block;
}

/* Per-platform accent on hover so each button reads as its brand. */
.guide-agent-buttons__button--claude:hover,
.guide-agent-buttons__button--claude:focus-visible {
	border-color: var(--gab-claude);
	color: var(--gab-claude);
}

.guide-agent-buttons__button--chatgpt:hover,
.guide-agent-buttons__button--chatgpt:focus-visible {
	border-color: var(--gab-chatgpt);
	color: var(--gab-chatgpt);
}

.guide-agent-buttons__button--copy {
	color: var(--gab-text-muted);
}

.guide-agent-buttons__button--copy:hover,
.guide-agent-buttons__button--copy:focus-visible {
	color: var(--gab-text);
	border-color: var(--gab-text-muted);
}

/* Brief confirmation state after a successful copy (toggled by the JS). */
.guide-agent-buttons__button--copy.is-copied {
	color: var(--gab-chatgpt);
	border-color: var(--gab-chatgpt);
}

@media (max-width: 480px) {
	.guide-agent-buttons__button {
		font-size: 0.85rem;
		padding: 0.45rem 0.8rem;
	}
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.guide-agent-buttons__button {
		transition: none;
	}
	.guide-agent-buttons__button:hover,
	.guide-agent-buttons__button:focus-visible {
		transform: none;
	}
}
