/**
 * Login Check Feature - Additional Styles
 * Menambahkan visual feedback untuk tombol yang memerlukan login
 */

/* Hover effect untuk tombol yang memerlukan login */
.require-login-detail:hover,
.require-login-buy:hover {
	transform: scale(1.05);
	transition: all 0.3s ease;
}

/* Loading state untuk tombol */
.btn-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.btn-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
	to {
		transform: rotate(360deg);
	}
}

/* Custom Toastr styling untuk login notification */
.toast-warning.login-required {
	background-color: #f39c12 !important;
	font-weight: 500;
}

.toast-success.cart-success {
	background-color: #27ae60 !important;
}

/* Pulse effect untuk tombol beli sekarang */
@keyframes pulse-buy {
	0% {
		box-shadow: 0 0 0 0 rgba(210, 105, 30, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(210, 105, 30, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(210, 105, 30, 0);
	}
}

.require-login-buy {
	animation: pulse-buy 2s infinite;
}

/* Disable animation saat hover */
.require-login-buy:hover {
	animation: none;
}

/* Badge untuk "Login Required" */
.login-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #e74c3c;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: bold;
	z-index: 10;
}

/* Smooth transitions */
.require-login-detail,
.require-login-buy {
	transition: all 0.3s ease-in-out;
}

/* Focus state untuk accessibility */
.require-login-detail:focus,
.require-login-buy:focus {
	outline: 2px solid #f39c12;
	outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.require-login-buy {
		animation: none; /* Disable pulse on mobile untuk performa */
	}
}
