/*
 * Papillon Glow — sabit (floating) WhatsApp + telefon iletişim butonları.
 * Tüm sayfalarda sol alt köşede; sağ alt köşe toast bildirimlerine ayrıldı.
 * Animasyonlar transform/opacity ile sınırlı, prefers-reduced-motion destekli.
 */

.pg-float-contact {
	position: fixed;
	left: 18px;
	bottom: calc( 18px + env( safe-area-inset-bottom, 0px ) );
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 10px;
	animation: pg-float-in 0.5s cubic-bezier( 0.16, 1, 0.3, 1 ) 0.6s both;
}

@keyframes pg-float-in {
	from {
		opacity: 0;
		transform: translateY( 14px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.pg-float-contact__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba( 52, 44, 40, 0.18 );
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-float-contact__btn:hover,
.pg-float-contact__btn:focus-visible {
	transform: translateY( -3px ) scale( 1.05 );
	box-shadow: 0 10px 24px rgba( 52, 44, 40, 0.24 );
}

.pg-float-contact__btn svg {
	width: 25px;
	height: 25px;
}

.pg-float-contact__btn--whatsapp {
	background: var( --wp--preset--color--success );
	color: #ffffff;
}

.pg-float-contact__btn--phone {
	background: var( --wp--preset--color--accent-5 );
	color: var( --wp--preset--color--accent-1 );
	border: 1px solid var( --wp--preset--color--accent-6 );
	width: 46px;
	height: 46px;
	margin-left: 3px;
}

.pg-float-contact__btn--phone svg {
	width: 21px;
	height: 21px;
}

/* WhatsApp'ta çok hafif, aralıklı nabız halkası — dikkat çeker ama sırıtmaz. */
.pg-float-contact__btn--whatsapp::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var( --wp--preset--color--success );
	opacity: 0;
	animation: pg-float-pulse 4s ease-out 2s infinite;
	pointer-events: none;
}

@keyframes pg-float-pulse {
	0% {
		transform: scale( 1 );
		opacity: 0.55;
	}
	30% {
		transform: scale( 1.55 );
		opacity: 0;
	}
	100% {
		transform: scale( 1.55 );
		opacity: 0;
	}
}

/* Hover'da yana açılan etiket pili (yalnızca imleçli cihazlarda). */
.pg-float-contact__label {
	position: absolute;
	left: calc( 100% + 10px );
	top: 50%;
	transform: translateY( -50% ) translateX( -6px );
	background: var( --wp--preset--color--contrast );
	color: var( --wp--preset--color--base );
	font-size: 0.8rem;
	line-height: 1;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

@media ( hover: hover ) {
	.pg-float-contact__btn:hover .pg-float-contact__label,
	.pg-float-contact__btn:focus-visible .pg-float-contact__label {
		opacity: 1;
		transform: translateY( -50% ) translateX( 0 );
	}
}

@media ( max-width: 600px ) {
	.pg-float-contact {
		left: 12px;
		bottom: calc( 12px + env( safe-area-inset-bottom, 0px ) );
	}

	.pg-float-contact__btn {
		width: 48px;
		height: 48px;
	}

	.pg-float-contact__btn--phone {
		width: 42px;
		height: 42px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pg-float-contact {
		animation: none;
	}

	.pg-float-contact__btn--whatsapp::after {
		animation: none;
		opacity: 0;
	}

	.pg-float-contact__btn,
	.pg-float-contact__label {
		transition: none;
	}
}
