/* ShareSK - Frontend Styles */

.sharesk-wrap {
	margin: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sharesk-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 8px;
}

/* Row: buttons + total side by side on desktop */
.sharesk-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.sharesk-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Total count block */
.sharesk-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 4px 10px;
	border-left: 2px solid #e5e5e5;
	line-height: 1.2;
}

.sharesk-total-number {
	font-size: 20px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
	transition: all 0.2s ease;
}

.sharesk-total-text {
	font-size: 10px;
	font-weight: 500;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

/* Base button */
.sharesk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background-color: var(--sk-color, #555);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
	border: none;
	outline: none;
}

.sharesk-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
	color: #fff !important;
	text-decoration: none !important;
}

.sharesk-btn:active {
	transform: translateY(0);
	opacity: 0.75;
}

/* Shapes */
.sharesk-shape-rounded .sharesk-btn { border-radius: 6px; }
.sharesk-shape-square   .sharesk-btn { border-radius: 0; }
.sharesk-shape-pill     .sharesk-btn { border-radius: 999px; }

/* Icon */
.sharesk-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.sharesk-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Name (only in "full" style) */
.sharesk-name {
	white-space: nowrap;
}

/* Total count pop animation */
@keyframes sharesk-pop {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

.sharesk-total-number.sharesk-updated {
	animation: sharesk-pop 0.3s ease;
}

/* Mobile: stack total below buttons on its own line */
@media (max-width: 600px) {
	.sharesk-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.sharesk-total {
		flex-direction: row;
		align-items: center;
		gap: 6px;
		border-left: none;
		border-top: 2px solid #e5e5e5;
		padding: 8px 0 0;
		width: 100%;
		min-width: 0;
	}

	.sharesk-total-number {
		font-size: 17px;
	}

	.sharesk-total-text {
		font-size: 11px;
		margin-top: 0;
	}

	.sharesk-btn {
		padding: 8px 10px;
	}

	.sharesk-icon svg {
		width: 15px;
		height: 15px;
	}
}
