/**
 * Newsletter Social Share Styles
 *
 * @package AdditionalFunctions
 */

/* Share FAB Button */
.newsletter-share-container {
	margin: var(--wp--preset--spacing--x-small, 1rem) 0 var(--wp--preset--spacing--medium, 2rem) 0;
	text-align: center;
}

.newsletter-share-fab {
	display: inline-flex !important;
	width: 50px !important;
	height: 50px !important;
	background: transparent !important;
	border: 2px solid var(--wp--preset--color--neutral-950, #1a1a1a) !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	cursor: pointer !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.3s ease !important;
}

.newsletter-share-fab:hover {
	transform: scale(1.1) !important;
	background: var(--wp--preset--color--neutral-950, #1a1a1a) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.newsletter-share-fab svg {
	width: 38px !important;
	height: 38px !important;
	fill: var(--wp--preset--color--neutral-950, #1a1a1a) !important;
	transition: fill 0.3s ease !important;
}

.newsletter-share-fab:hover svg {
	fill: var(--wp--preset--color--neutral-0, #fff) !important;
}

/* Modal */
.newsletter-share-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.newsletter-share-modal.active {
	display: flex;
}

.newsletter-share-modal-content {
	background: var(--wp--preset--color--neutral-0, #fff);
	padding: var(--wp--preset--spacing--medium, 2rem) var(--wp--preset--spacing--large, 3rem);
	border-radius: 12px;
	max-width: 600px;
	width: auto;
	min-width: 300px;
	position: relative;
	animation: modalSlideIn 0.3s ease-out;
	text-align: center;
}

@keyframes modalSlideIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Modal Close Button */
.newsletter-share-modal-close {
	position: absolute !important;
	top: 15px !important;
	right: 15px !important;
	width: 30px !important;
	height: 30px !important;
	padding: 5px !important;
	background: none !important;
	border: none !important;
	font-size: 24px !important;
	line-height: 1 !important;
	color: var(--wp--preset--color--neutral-600, #999) !important;
	cursor: pointer !important;
	transition: color 0.2s ease !important;
	box-shadow: none !important;
}

.newsletter-share-modal-close:hover {
	color: var(--wp--preset--color--neutral-950, #1a1a1a) !important;
}

/* Modal Title */
.newsletter-share-modal h3 {
	margin: 0 0 var(--wp--preset--spacing--x-small, 1rem) 0 !important;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
	font-size: 30px !important;
	font-weight: var(--e-global-typography-primary-font-weight, 600) !important;
	color: var(--wp--preset--color--neutral-950, #1a1a1a) !important;
}

/* Social Links */
.newsletter-share-social-links {
	display: flex;
	gap: var(--wp--preset--spacing--2-x-small, 12px);
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
}

.newsletter-share-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid var(--wp--preset--color--neutral-950, #1a1a1a);
	text-decoration: none;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.newsletter-share-social-link:hover {
	transform: scale(1.1);
	background: var(--wp--preset--color--neutral-950, #1a1a1a);
}

.newsletter-share-social-link svg {
	width: 24px;
	height: 24px;
	fill: var(--wp--preset--color--neutral-950, #1a1a1a);
	transition: fill 0.3s ease;
}

.newsletter-share-social-link:hover svg {
	fill: var(--wp--preset--color--neutral-0, #fff);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
	.newsletter-share-modal-content {
		margin: 0 10px;
		padding: 1.5rem 1.5rem 1.25rem;
		min-width: 0;
		width: calc(100% - 20px);
	}

	.newsletter-share-modal h3 {
		font-size: 22px !important;
		margin-bottom: 1rem !important;
	}

	.newsletter-share-modal-close {
		width: 40px !important;
		height: 40px !important;
		font-size: 28px !important;
		top: 10px !important;
		right: 10px !important;
	}

	.newsletter-share-social-links {
		gap: 10px;
	}

	.newsletter-share-social-link {
		width: 40px;
		height: 40px;
	}

	.newsletter-share-social-link svg {
		width: 20px;
		height: 20px;
	}
}
