/* ==========================================================================
   Social Share Shortcode  [social_share]
   Used by the `astro_shortcode_social_share` function.
   ========================================================================== */

.astro-social-share {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 0;
}

.astro-social-share__heading {
	font-size: 11px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	white-space: nowrap;
	flex-shrink: 0;
}

.astro-social-share__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

/* ---- Base button — icon only (default) ---- */
.astro-social-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f0f2f5;
	color: #505050;
	text-decoration: none;
	flex-shrink: 0;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		transform 0.15s ease,
		box-shadow 0.18s ease;
	outline: 2px solid transparent;
	outline-offset: 3px;
}

.astro-social-share__btn:hover,
.astro-social-share__btn:focus-visible {
	background: var(--sc, #505050);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
	outline-color: var(--sc, #505050);
	text-decoration: none;
}

.astro-social-share__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.astro-social-share__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ---- With labels variant (.astro-social-share--labeled) ---- */
.astro-social-share--labeled .astro-social-share__btn {
	width: auto;
	border-radius: 22px;
	padding: 0 14px 0 11px;
	gap: 7px;
}

.astro-social-share__name {
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
	.astro-social-share {
		gap: 8px;
	}

	.astro-social-share__row {
		gap: 6px;
	}

	.astro-social-share__btn {
		width: 38px;
		height: 38px;
	}

	.astro-social-share__icon svg {
		width: 17px;
		height: 17px;
	}
}
