/**
 * Support Floating Button Styles
 * استایل‌های دکمه شناور پشتیبانی
 */

.tshop-support-button {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	left: auto;
	z-index: 9999;
	opacity: 0;
	transform: translateY(20px) scale(0.9);
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}

.tshop-support-button[data-support-button] {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.tshop-support-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 52px;
	height: 52px;
	padding: 0;
	background: rgba(20, 20, 20, 0.6);
	backdrop-filter: blur(16px) saturate(120%);
	-webkit-backdrop-filter: blur(16px) saturate(120%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.4),
		0 2px 8px rgba(0, 0, 0, 0.3);
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	position: relative;
	overflow: visible;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.tshop-support-button__link:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.5),
		0 4px 16px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(30, 30, 30, 0.7);
}

.tshop-support-button__link:active {
	transform: translateY(-2px) scale(1.02);
}

.tshop-support-button__icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	position: relative;
	z-index: 2;
}

.tshop-support-button__icon {
	width: 24px;
	height: 24px;
	color: rgba(255, 255, 255, 0.95);
	display: block;
	position: relative;
	z-index: 2;
}

.tshop-support-button__icon svg {
	width: 100%;
	height: 100%;
	stroke-width: 2.5;
}

.tshop-support-button__text {
	position: relative;
	z-index: 2;
	white-space: nowrap;
	font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tshop-support-button__ripple {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.5s ease, height 0.5s ease;
	pointer-events: none;
	z-index: 1;
}

.tshop-support-button__link:hover .tshop-support-button__ripple {
	width: 120px;
	height: 120px;
}

/* Animation on load */
@keyframes tshopSupportButtonFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Pulse Animation */
@keyframes tshopSupportButtonPulse {
	0%, 100% {
		box-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.4),
			0 2px 8px rgba(0, 0, 0, 0.3);
	}
	50% {
		box-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.4),
			0 2px 8px rgba(0, 0, 0, 0.3),
			0 0 0 8px rgba(255, 255, 255, 0.1),
			0 0 0 16px rgba(255, 255, 255, 0.05);
	}
}

.tshop-support-button[data-support-button] {
	animation: tshopSupportButtonFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tshop-support-button[data-support-button="visible"] .tshop-support-button__link {
	animation: tshopSupportButtonPulse 2.5s ease-in-out infinite;
	animation-delay: 0.8s;
}

/* حالت با متن */
.tshop-support-button__link:has(.tshop-support-button__text) {
	width: auto;
	padding: 1rem 1.5rem;
	border-radius: 50px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.tshop-support-button {
		bottom: 1.5rem;
		right: 1.5rem;
		left: auto;
	}
	
	.tshop-support-button__link {
		width: 48px;
		height: 48px;
	}
	
	.tshop-support-button__icon-wrapper {
		width: 22px;
		height: 22px;
	}
	
	.tshop-support-button__icon {
		width: 22px;
		height: 22px;
	}
	
	.tshop-support-button__link:has(.tshop-support-button__text) {
		width: auto;
		padding: 0.75rem 1.25rem;
	}
}

/* Safe area برای دستگاه‌های با notch */
@supports (padding: max(0px)) {
	.tshop-support-button {
		bottom: max(2rem, env(safe-area-inset-bottom, 0) + 1rem);
		right: max(2rem, env(safe-area-inset-right, 0) + 1rem);
		left: auto;
	}
	
	@media (max-width: 768px) {
		.tshop-support-button {
			bottom: max(1.5rem, env(safe-area-inset-bottom, 0) + 0.75rem);
			right: max(1.5rem, env(safe-area-inset-right, 0) + 0.75rem);
			left: auto;
		}
	}
}

