/**
 * Atlas Social Share Component CSS (2026 Modern Standard)
 * Zero-Overhead, High Contrast, Tactile Interactive Micro-interactions
 *
 * @package atlas
 */

.at-social-share-wrapper {
	margin: 1.5rem 0 1.25rem 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--at-color-border, #e2e8f0);
}

.at-social-share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

.at-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--at-surface-card, #ffffff) !important;
	text-decoration: none !important;
	border-radius: var(--at-radius-md, 10px);
	border: none;
	cursor: pointer;
	transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
	line-height: 1.25;
	user-select: none;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.at-share-btn:hover {
	transform: translateY(-2px);
	opacity: 0.96;
	box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.16);
}

.at-share-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.at-share-btn svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Platform Brand Colors (WCAG AA High Contrast > 5:1 with white text) */
.at-share-telegram {
	background-color: #0077b3;
}

.at-share-x {
	background-color: #0f1419;
}

.at-share-facebook {
	background-color: #1565c0;
}

.at-share-whatsapp {
	background-color: #0f7a3c;
}

.at-share-pinterest {
	background-color: #bd081c;
}

.at-social-share-buttons button.at-share-copy {
	background-color: var(--at-color-text-main, #334155);
	color: var(--at-surface-card, #ffffff) !important;
	position: relative;
}

.at-social-share-buttons button.at-share-copy:hover,
.at-social-share-buttons button.at-share-copy:focus {
	background-color: var(--at-color-midnight-surface, #1e293b);
}

/* Copy Toast Notification */
.at-copy-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background-color: var(--at-color-midnight, #0f172a);
	color: var(--at-surface-card, #ffffff);
	padding: 11px 20px;
	border-radius: var(--at-radius-md, 10px);
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: var(--at-shadow-xl, 0 20px 25px -5px rgba(15, 23, 42, 0.15));
	border: 1px solid var(--at-color-midnight-border, rgba(255, 255, 255, 0.08));
	z-index: 999999;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.at-copy-toast.show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 600px) {
	.at-social-share-buttons {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.at-share-x,
	.at-share-facebook {
		display: none;
	}

	.at-share-btn {
		width: 100%;
		justify-content: center;
		padding: 10px 10px;
		font-size: 0.8125rem;
	}
}