/**
 * In-content share / subscribe pills (Newsletter / Telegram / WhatsApp).
 *
 * @package Hamechadesh
 */

.hm-share-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block: var(--hm-space-lg);
	contain: layout;
}

.hm-share-pills__item {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding-inline-start: 30px;
	padding-inline-end: 0;
	border-radius: 50px;
	text-decoration: none;
	color: var(--hm-color-text);
	background-color: transparent;
	border: none;
	cursor: pointer;
	font-family: var(--hm-font-primary);
	transition: transform var(--hm-transition-fast), filter var(--hm-transition-fast);
	flex: 0 1 auto;
	min-width: 0;
	/* Reset native button styles */
	appearance: none;
	-webkit-appearance: none;
}

.hm-share-pills__item:hover,
.hm-share-pills__item:focus-visible {
	transform: translateY(-1px);
	filter: brightness(0.98);
	outline: none;
	text-decoration: none;
}

.hm-share-pills__item:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 23, 62, 0.35);
}

.hm-share-pills__item--newsletter { background-color: rgba(255, 23, 62, 0.05); }
.hm-share-pills__item--telegram  { background-color: rgba(55, 174, 226, 0.05); }
.hm-share-pills__item--whatsapp  { background-color: rgba(44, 172, 18, 0.05); }

.hm-share-pills__icon {
	display: block;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
}

.hm-share-pills__label {
	display: block;
	font-weight: 300;
	font-size: 17px;
	line-height: 20px;
	color: #050d2c;
	width: 170px;
	text-align: right;
	unicode-bidi: isolate;
	text-box-trim: both;
	text-box-edge: cap alphabetic;
}

/* Tablet — 2 pills per row (tighter layout) */
@media (max-width: 1023px) and (min-width: 641px) {
	.hm-share-pills {
		gap: 10px;
		justify-content: flex-start;
	}

	.hm-share-pills__item {
		flex: 1 1 calc(50% - 10px);
		min-width: 0;
	}

	.hm-share-pills__label {
		width: auto;
		flex: 1;
	}
}

/* Mobile — stack pills full width */
@media (max-width: 640px) {
	.hm-share-pills {
		gap: 8px;
	}

	.hm-share-pills__item {
		width: 100%;
		padding-inline-start: 16px;
		gap: 8px;
	}

	.hm-share-pills__icon {
		width: 44px;
		height: 44px;
	}

	.hm-share-pills__label {
		width: auto;
		flex: 1;
		font-size: 15px;
		line-height: 19px;
	}
}
