/**
 * Landing Pages Enhancements CSS
 * Advanced features for Live Entertainment platform
 * 
 * @package NSM_Idol_Live_Theme
 * @since 1.1.0
 */

/* ========================================
   1. VIDEO BACKGROUND HERO
======================================== */

.hero-video-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.hero-video-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.25;
	filter: blur(3px);
}

.hero-video-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, 
		transparent 0%, 
		rgba(11, 0, 20, 0.8) 100%
	);
	pointer-events: none;
}

/* Ensure hero content is above video */
.landing-hero-content {
	position: relative;
	z-index: 2;
}

/* ========================================
   2. ANIMATED PARTICLES CANVAS
======================================== */

#hero-particles-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ========================================
   3. LIVE ACTIVITY TICKER
======================================== */

.live-activity-ticker {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--bg-dark); /* Using CSS variable */
	border-top: 2px solid var(--neon-pink); /* Using CSS variable */
	padding: 14px 0;
	z-index: var(--z-fixed); /* Using CSS variable */
	overflow: hidden;
	backdrop-filter: blur(20px);
	box-shadow: var(--glow-pink); /* Using CSS variable */
}

.ticker-wrapper {
	display: flex;
	gap: 80px;
	animation: ticker-scroll 40s linear infinite;
	width: max-content;
}

@keyframes ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.ticker-item {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
	font-size: 14px;
	color: var(--text-primary);
	padding: 0 20px;
}

.ticker-icon {
	font-size: 24px;
	animation: ticker-icon-pulse 2s ease-in-out infinite;
	filter: drop-shadow(0 0 10px var(--neon-pink));
}

@keyframes ticker-icon-pulse {
	0%, 100% { 
		transform: scale(1);
		filter: drop-shadow(0 0 10px var(--neon-pink-rgba-50));
	}
	50% { 
		transform: scale(1.15);
		filter: drop-shadow(0 0 20px var(--neon-pink));
	}
}

.ticker-text {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ticker-text strong {
	color: var(--neon-pink);
	font-weight: 700;
	text-shadow: 0 0 10px var(--neon-pink-rgba-50);
}

/* ========================================
   4. FLOATING ACTION BUTTON (FAB)
======================================== */

.fab-cta {
	position: fixed;
	bottom: 90px;
	right: 30px;
	background: var(--gradient-primary); /* Using CSS variable */
	color: var(--text-primary); /* Using CSS variable */
	border: none;
	border-radius: var(--radius-full); /* Using CSS variable */
	padding: 18px 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: var(--glow-pink); /* Using CSS variable */
	z-index: var(--z-fixed); /* Using CSS variable */
	transition: all var(--transition-base); /* Using CSS variable */
	animation: fab-float 3s ease-in-out infinite;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

@keyframes fab-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-12px);
	}
}

.fab-cta:hover {
	transform: scale(1.1) translateY(-8px) !important;
	box-shadow: 0 15px 50px var(--neon-pink-rgba-90);
	background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
}

.fab-cta:active {
	transform: scale(1.05) translateY(-6px) !important;
}

.fab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.fab-icon svg {
	width: 100%;
	height: 100%;
	animation: fab-icon-rotate 3s ease-in-out infinite;
}

@keyframes fab-icon-rotate {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-10deg); }
	75% { transform: rotate(10deg); }
}

.fab-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: linear-gradient(135deg, var(--neon-red), var(--neon-magenta));
	color: var(--text-primary);
	font-size: 12px;
	font-weight: 900;
	padding: 4px 10px;
	border-radius: var(--radius-md);
	animation: fab-badge-pulse 2s ease-in-out infinite;
	box-shadow: 0 2px 15px var(--neon-red-rgba-80);
	border: 2px solid var(--text-primary-rgba-30);
}

@keyframes fab-badge-pulse {
	0%, 100% {
		box-shadow: 0 2px 15px var(--neon-red-rgba-80);
	}
	50% {
		transform: scale(1.2);
		box-shadow: 0 4px 25px var(--neon-red-rgba-100);
	}
}

/* Mobile responsive */
@media (max-width: 768px) {
	.fab-cta {
		bottom: 70px;
		right: 20px;
		padding: 14px 24px;
		font-size: 15px;
	}
}

/* ========================================
   5. IDOL LIVE AVATAR CAROUSEL
======================================== */

.idols-live-section {
	padding: 60px 0;
	background: linear-gradient(180deg, 
		var(--neon-pink-rgba-05) 0%, 
		transparent 100%
	);
	border-top: 1px solid var(--neon-pink-rgba-20);
	border-bottom: 1px solid var(--neon-pink-rgba-20);
}

.idols-live-header {
	text-align: center;
	margin-bottom: 40px;
}

.idols-live-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 12px;
}

.live-pulse {
	display: inline-block;
	width: 14px;
	height: 14px;
	background: var(--neon-red);
	border-radius: 50%;
	animation: live-pulse 1.5s ease-in-out infinite;
	box-shadow: 0 0 0 0 var(--neon-red-rgba-70);
}

@keyframes live-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 var(--neon-red-rgba-70);
	}
	50% {
		box-shadow: 0 0 0 15px var(--neon-red-rgba-0);
	}
}

.idols-carousel-wrapper {
	position: relative;
	overflow: hidden;
	padding: 30px 0;
}

.idols-carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0 20px;
}

.idols-carousel::-webkit-scrollbar {
	display: none;
}

.idol-avatar-card {
	position: relative;
	flex: 0 0 140px;
	scroll-snap-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.idol-avatar-wrapper {
	position: relative;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--neon-pink);
	box-shadow: 0 0 30px var(--neon-pink-rgba-60);
	transition: all 0.3s ease;
}

.idol-avatar-card:hover .idol-avatar-wrapper {
	transform: scale(1.1);
	box-shadow: 0 0 50px var(--neon-pink);
	border-color: var(--neon-aqua);
}

.idol-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.idol-live-badge {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--neon-red), var(--neon-magenta));
	color: var(--text-primary);
	padding: 4px 14px;
	border-radius: var(--radius-md);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1px;
	box-shadow: 0 3px 12px var(--neon-red-rgba-70);
	border: 1.5px solid var(--text-primary-rgba-40);
	animation: live-badge-glow 2s ease-in-out infinite;
}

@keyframes live-badge-glow {
	0%, 100% {
		box-shadow: 0 3px 12px var(--neon-red-rgba-70);
	}
	50% {
		box-shadow: 0 3px 20px var(--neon-red-rgba-100);
	}
}

.idol-viewer-count {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: var(--text-primary);
	padding: 4px 12px;
	border-radius: var(--radius-md);
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(10px);
	border: 1px solid var(--text-primary-rgba-20);
	display: flex;
	align-items: center;
	gap: 4px;
}

.idol-viewer-count::before {
	content: '👁️';
	font-size: 14px;
}

.idol-name {
	text-align: center;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
}

/* Carousel navigation arrows */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--neon-pink-rgba-30);
	border: 2px solid var(--neon-pink);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	z-index: 10;
}

.carousel-nav:hover {
	background: var(--neon-pink-rgba-60);
	box-shadow: 0 0 30px var(--neon-pink);
	transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
	left: 10px;
}

.carousel-nav-next {
	right: 10px;
}

.carousel-nav svg {
	width: 24px;
	height: 24px;
	color: var(--text-primary);
}

/* ========================================
   6. INCOME SIMULATOR
======================================== */

.income-simulator-section {
	padding: 80px 0;
	background: linear-gradient(135deg, 
		rgba(255, 47, 212, 0.08) 0%, 
		rgba(0, 255, 255, 0.08) 100%
	);
	position: relative;
	overflow: hidden;
}

.income-simulator {
	max-width: 700px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: 48px;
	backdrop-filter: blur(20px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.simulator-title {
	text-align: center;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 800;
	margin: 0 0 40px;
	background: var(--gradient-primary); /* Using CSS variable */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.simulator-inputs {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-bottom: 48px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.input-group label {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-secondary); /* Using CSS variable */
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.input-value {
	font-size: 18px;
	font-weight: 800;
	color: var(--neon-pink); /* Using CSS variable */
	text-shadow: 0 0 10px rgba(255, 47, 212, 0.5);
}

.input-group input[type="range"] {
	width: 100%;
	height: 8px;
	background: linear-gradient(90deg, 
		rgba(255, 47, 212, 0.2) 0%, 
		rgba(0, 255, 255, 0.2) 100%
	);
	border-radius: 10px;
	outline: none;
	-webkit-appearance: none;
	border: 1px solid rgba(255, 47, 212, 0.3);
}

.input-group input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	background: var(--gradient-primary); /* Using CSS variable */
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 20px var(--neon-pink); /* Using CSS variable */
	border: 2px solid var(--text-primary); /* Using CSS variable */
	transition: all 0.3s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 0 30px var(--neon-pink); /* Using CSS variable */
}

.input-group input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: var(--gradient-primary); /* Using CSS variable */
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 20px var(--neon-pink); /* Using CSS variable */
	border: 2px solid var(--text-primary); /* Using CSS variable */
}

.simulator-result {
	text-align: center;
	padding: 40px;
	background: rgba(255, 47, 212, 0.1);
	border: 2px solid var(--neon-pink); /* Using CSS variable */
	border-radius: 20px;
	margin-bottom: 32px;
	position: relative;
	overflow: hidden;
}

.simulator-result::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, 
		rgba(255, 47, 212, 0.1), 
		rgba(0, 255, 255, 0.1)
	);
	animation: gradient-shift 3s ease-in-out infinite;
}

.result-label {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-secondary); /* Using CSS variable */
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.result-value {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.currency {
	font-size: 32px;
	font-weight: 800;
	color: var(--neon-aqua); /* Using CSS variable */
}

.amount {
	font-size: 48px;
	font-weight: 900;
	background: var(--gradient-primary); /* Using CSS variable */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -1px;
	text-shadow: 0 0 40px var(--neon-pink); /* Using CSS variable */
}

.result-note {
	font-size: 13px;
	color: var(--text-muted); /* Using CSS variable */
	font-style: italic;
	position: relative;
	z-index: 1;
}

.simulator-cta {
	width: 100%;
	padding: 18px 32px;
	background: var(--gradient-primary); /* Using CSS variable */
	color: var(--text-primary); /* Using CSS variable */
	border: none;
	border-radius: var(--radius-md); /* Using CSS variable */
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: all var(--transition-base); /* Using CSS variable */
	box-shadow: 0 10px 30px rgba(255, 47, 212, 0.5); /* Consider using a CSS variable for glow */
	text-transform: uppercase;
	letter-spacing: 1px;
}

.simulator-cta:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 40px var(--neon-pink); /* Using CSS variable */
}

/* Mobile responsive */
@media (max-width: 768px) {
	.income-simulator {
		padding: 32px 24px;
	}
	
	.amount {
		font-size: 36px;
	}
}

/* ========================================
   7. URGENCY TIMER BANNER
======================================== */

.urgency-banner {
	background: linear-gradient(135deg, 
		var(--neon-pink), /* Using CSS variable */
		var(--neon-purple) /* Using CSS variable */
	);
	border-bottom: 3px solid rgba(255, 255, 255, 0.3);
	padding: 16px 0;
	box-shadow: 0 4px 20px rgba(255, 59, 48, 0.5); /* Consider using a CSS variable for glow */
	position: sticky;
	top: 0;
	z-index: var(--z-fixed); /* Using CSS variable */
	backdrop-filter: blur(10px);
}

.banner-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.banner-icon {
	font-size: 28px;
	animation: banner-icon-shake 2s ease-in-out infinite;
}

@keyframes banner-icon-shake {
	0%, 100% { transform: rotate(0deg); }
	10%, 30% { transform: rotate(-10deg); }
	20%, 40% { transform: rotate(10deg); }
}

.banner-text {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary); /* Using CSS variable */
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-timer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.timer-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.timer-value {
	display: inline-block;
	min-width: 50px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid rgba(255, 255, 255, 1);
	border-radius: 10px;
	font-size: 24px;
	font-weight: 900;
	color: var(--neon-pink); /* Using CSS variable */
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	animation: timer-blink 1s ease-in-out infinite;
	font-family: 'Courier New', monospace;
}

@keyframes timer-blink {
	0%, 50%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	25%, 75% {
		opacity: 0.9;
		transform: scale(0.98);
	}
}

.timer-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-primary); /* Using CSS variable */
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.timer-separator {
	font-size: 28px;
	font-weight: 900;
	color: var(--text-primary); /* Using CSS variable */
	animation: timer-separator-blink 1s ease-in-out infinite;
}

@keyframes timer-separator-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* Mobile responsive */
@media (max-width: 768px) {
	.banner-content {
		gap: 12px;
		padding: 0 16px;
	}
	
	.banner-text {
		font-size: 14px;
	}
	
	.timer-value {
		min-width: 40px;
		padding: 8px 10px;
		font-size: 20px;
	}
	
	.timer-label {
		font-size: 10px;
	}
}

/* ========================================
   8. BUTTON RIPPLE EFFECT
======================================== */

button, .btn {
	position: relative;
	overflow: hidden;
}

.ripple-effect {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	transform: scale(0);
	animation: ripple-animation 0.6s ease-out;
	pointer-events: none;
}

@keyframes ripple-animation {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

/* ========================================
   9. SCROLL ANIMATIONS
======================================== */

.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ========================================
   10. RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 768px) {
	.live-activity-ticker {
		padding: 10px 0;
	}
	
	.ticker-item {
		font-size: 13px;
	}
	
	.idols-carousel {
		gap: 16px;
	}
	
	.idol-avatar-card {
		flex: 0 0 110px;
	}
	
	.idol-avatar-wrapper {
		width: 110px;
		height: 110px;
	}
	
	.income-simulator-section {
		padding: 60px 0;
	}
}

/* ========================================
   GRADIENT ANIMATIONS
======================================== */

@keyframes gradient-shift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}
