/**
 * Article Share Buttons - Frontend Styles
 */

.asb-wrap {
	/* margin: 30px 0; */
	padding: 20px 0;
}

.asb-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.asb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.asb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f5f5f5;
	border: none;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	transition: all 0.2s ease;
}

.asb-btn:hover {
	background: #e8e8e8;
	text-decoration: none;
	color: #333;
	opacity: 0.9;
}

/* Кастомный цвет фона при наведении */
.asb-btn[style*="background-color"]:hover {
	opacity: 0.85;
}

.asb-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.asb-btn svg,
.asb-btn .asb-btn-icon-custom,
.asb-btn img {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	object-fit: contain;
	margin: 0;
}

.asb-btn .asb-btn-icon-custom,
.asb-btn img {
	max-width: 20px;
	max-height: 20px;
}

.asb-btn-text {
	white-space: nowrap;
}

/* Кнопка только с иконкой (без текста) */
.asb-btn--icon-only {
	padding: 10px !important;
	min-width: auto;
}

.asb-btn--icon-only .asb-btn-text {
	display: none;
}

/* Стили для кнопки Copy */
.asb-btn--copy {
	cursor: pointer;
}

/* Toast сообщение */
.asb-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 10000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.asb-toast[hidden] {
	display: none;
}

/* Компактный режим */
.asb-wrap .asb-buttons.asb-compact .asb-btn {
	padding: 10px;
}

.asb-wrap .asb-buttons.asb-compact .asb-btn-text {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	.asb-buttons {
		gap: 8px;
	}
	
	.asb-btn {
		padding: 8px 12px;
		font-size: 13px;
	}
	
	.asb-btn svg,
	.asb-btn .asb-btn-icon-custom,
	.asb-btn img {
		width: 18px;
		height: 18px;
		max-width: 18px;
		max-height: 18px;
	}
	
	.asb-btn--icon-only {
		padding: 8px !important;
	}
}

