/**
 * AstroLux Pro - Animations
 */

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes zodiac-rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes zodiac-rotate-reverse {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes zodiac-ring-pulse {
	0%, 100% {
		box-shadow:
			0 0 40px rgba(255, 215, 0, 0.14),
			0 0 80px rgba(255, 215, 0, 0.05),
			inset 0 0 40px rgba(255, 215, 0, 0.05);
	}
	50% {
		box-shadow:
			0 0 60px rgba(255, 215, 0, 0.28),
			0 0 120px rgba(255, 215, 0, 0.1),
			inset 0 0 55px rgba(255, 215, 0, 0.1);
	}
}

@keyframes pulse-glow {
	0%, 100% { opacity: 0.45; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.08); }
}

@keyframes twinkle {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

@keyframes shooting-star {
	0% { transform: translateX(0) translateY(0); opacity: 1; }
	100% { transform: translateX(300px) translateY(300px); opacity: 0; }
}

@keyframes fade-in-up {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

/* Twinkling stars */
.stars-layer {
	position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

.star {
	position: absolute; width: 2px; height: 2px;
	background: #fff; border-radius: 50%;
	animation: twinkle var(--duration, 3s) ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}

/* Shooting stars */
.shooting-star {
	position: absolute; width: 100px; height: 1px;
	background: linear-gradient(90deg, var(--color-accent), transparent);
	animation: shooting-star 1s ease-out forwards;
}

/* Floating planets */
.floating-planet {
	position: absolute; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,215,0,0.3), transparent);
	animation: float var(--float-duration, 6s) ease-in-out infinite;
	animation-delay: var(--float-delay, 0s);
	opacity: 0.4;
}

/* Page transitions */
.page-transition-enter {
	animation: fade-in-up 0.6s ease-out forwards;
}

/* Hover animations */
.glass-card {
	animation: fade-in-up 0.6s ease-out backwards;
}

.service-card:hover .service-icon {
	animation: pulse-glow 1s ease-in-out;
}

.btn-gold {
	background-size: 200% auto;
}

.btn-gold:hover {
	animation: shimmer 2s linear infinite;
	background-image: linear-gradient(90deg, var(--color-accent), #fff8dc, var(--color-accent-dim), var(--color-accent));
}

/* Horoscope tabs */
.horoscope-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.tab-btn {
	padding: 0.5rem 1.5rem; background: transparent;
	border: 1px solid var(--color-glass-border); border-radius: 50px;
	color: var(--color-text-muted); cursor: pointer; transition: all var(--transition);
}

.tab-btn.active, .tab-btn:hover {
	border-color: var(--color-accent); color: var(--color-accent);
	background: rgba(255,215,0,0.1);
}

/* Testimonial carousel animation */
.testimonial-slide {
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.testimonial-slide.active {
	animation: fade-in-up 0.5s ease-out;
}

/* Lottie container */
.lottie-container {
	display: flex; align-items: center; justify-content: center;
	min-height: 200px;
}

.lottie-placeholder {
	width: 150px; height: 150px;
	border: 2px dashed var(--color-glass-border);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--color-text-muted); font-size: 3rem;
	animation: pulse-glow 2s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.zodiac-wheel,
	.zodiac-center { animation: none; }
	.reveal { opacity: 1; transform: none; }
}
