/**
 * Fundraiser Share Block Styles
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.ambh-share-buttons {
	margin: 1em 0;
}

.ambh-share-buttons__label {
	margin: 0 0 .6em;
	font-size: .9em;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── List reset ─────────────────────────────────────────────────────────── */

.ambh-share-list {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ambh-share-list__item {
	margin: 0;
	padding: 0;
}

/* ── Base button ─────────────────────────────────────────────────────────── */

.ambh-share-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .45em .9em;
	border: none;
	border-radius: 4px;
	background: #555;
	color: #fff;
	font-size: .875em;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s ease, transform .1s ease;
	white-space: nowrap;
}

.ambh-share-btn:hover,
.ambh-share-btn:focus-visible {
	opacity: .85;
	color: #fff;
	text-decoration: none;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ambh-share-btn:active {
	transform: scale(.96);
}

.ambh-share-btn svg {
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ── Platform colours ────────────────────────────────────────────────────── */

.ambh-share-btn--facebook  { background: #1877f2; }
.ambh-share-btn--twitter   { background: #000;    }
.ambh-share-btn--whatsapp  { background: #25d366; }
.ambh-share-btn--linkedin  { background: #0a66c2; }
.ambh-share-btn--email     { background: #6b7280; }
.ambh-share-btn--copy      { background: #374151; }
.ambh-share-btn--threads   { background: #000;    }
.ambh-share-btn--mastodon  { background: #6364ff; }
.ambh-share-btn--bluesky   { background: #0085ff; }

/* aria-pressed feedback for copy button */
.ambh-share-btn--copy[aria-pressed="true"] {
	background: #16a34a;
}

/* ── Alignment ──────────────────────────────────────────────────────────── */

.ambh-share-buttons--align-left   { justify-content: flex-start; }
.ambh-share-buttons--align-center { justify-content: center;     }
.ambh-share-buttons--align-right  { justify-content: flex-end;   }

/* ── Icons-only mode ─────────────────────────────────────────────────────── */

.ambh-share-buttons--icons .ambh-share-btn {
	padding: .55em;
	border-radius: 50%;
	aspect-ratio: 1;
	justify-content: center;
}

/* Visually hidden text retained for screen readers */
.ambh-share-buttons--icons .ambh-share-btn__text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Editor placeholder ───────────────────────────────────────────────────── */

.ambh-block-preview {
	padding: 1em 1.25em;
	background: #f0f0f1;
	border: 1px dashed #999;
	border-radius: 4px;
	color: #555;
	font-size: .875em;
	text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.ambh-share-list {
		gap: .4em;
	}

	.ambh-share-btn {
		font-size: .8em;
		padding: .4em .75em;
	}
}
