/**
 * SubmitMyShit - Statistics Page Styles (Simple Approach)
 * Using the same clean approach as invitations.css
 * File: /assets/css/stats.css
 * Version: 2.0.0
 * Date: 2025-08-06
 */

/* ===================================================================
   NAVIGATION STYLING - Same as invitations.css
   =================================================================== */
/* Navigation gets solid white background - just like invitations.php */
nav.glass-effect {
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(200, 195, 188, 0.3);
}

.glass-effect {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

#trendingJobsList i.fa-briefcase,
#skillsList i.fa-code {
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
}

/* Ensure containers properly contain their content */
#trendingJobsList,
#skillsList,
#activityFeed {
	position: relative !important;
	overflow: hidden !important;
	min-height: 200px; /* Prevent collapse during loading */
}

/* Fix any gradient backgrounds with icons */
.bg-gradient-to-r {
	position: relative !important;
	overflow: hidden !important;
}

/* Ensure the loading placeholders don't escape */
.animate-pulse {
	position: relative !important;
	contain: layout !important;
}


/* ===================================================================
   BASIC ANIMATIONS
   =================================================================== */

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.animate-pulse {
	animation: pulse 2s infinite;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 768px) {
	.glass-effect {
		backdrop-filter: blur(12px);
	}
	
	h1 {
		font-weight: 800;
	}
	
	/* Hide navigation links on mobile */
	nav .hidden {
		display: none !important;
	}
}

/* ===================================================================
   HIGH CONTRAST SUPPORT
   =================================================================== */

@media (prefers-contrast: high) {
	.glass-effect {
		background: rgba(255, 255, 255, 0.95);
		border: 2px solid #000;
	}
	
	nav.glass-effect {
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 2px solid #000;
	}
}

/* ===================================================================
   REDUCED MOTION SUPPORT  
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
	.animate-pulse {
		animation: none;
	}
	
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* Activity feed enhancements */
.activity-item {
	transition: all 0.3s ease;
	position: relative;
}

.activity-item.celebration {
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
	border: 1px solid rgba(251, 191, 36, 0.2);
}

.activity-item.highlight {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
	border: 1px solid rgba(139, 92, 246, 0.2);
}

.activity-indicator {
	position: relative;
}

.activity-item:hover {
	transform: translateX(5px);
	background: rgba(55, 65, 81, 0.8);
}

/* Active event banner */
#activeEventBanner {
	animation: slideDown 0.5s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Success celebration animation */
.activity-item.celebration::before {
	content: '🎉';
	position: absolute;
	top: -10px;
	right: 10px;
	font-size: 20px;
	animation: bounce 2s infinite;
}

/* Smooth fade transitions */
.activity-item.animated {
	animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}