/**
 * ULTIMATE USER PROFILES DESIGN
 * Ultra-professional, modern design for user profiles
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   USER PROFILES - ULTIMATE DESIGN
   ============================================ */

.coursee-user-profile {
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	border-radius: 24px !important;
	overflow: hidden !important;
	margin-bottom: 3rem !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1),
	            0 4px 12px rgba(0, 0, 0, 0.06),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
	border: 1px solid rgba(229, 231, 235, 0.5) !important;
	transition: all 0.3s ease !important;
}

.coursee-user-profile:hover {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
	            0 6px 16px rgba(0, 0, 0, 0.08),
	            inset 0 1px 0 rgba(255, 255, 255, 1) !important;
	transform: translateY(-2px) !important;
}

/* Profile Header */
.profile-header {
	position: relative !important;
	background: linear-gradient(135deg, 
		#1c1d1f 0%,
		#2d2e30 25%,
		#1c1d1f 50%,
		#2d2e30 75%,
		#1c1d1f 100%) !important;
	background-size: 400% 400% !important;
	animation: profile-header-gradient 15s ease infinite !important;
}

@keyframes profile-header-gradient {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.profile-header::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: 
		radial-gradient(circle at 20% 30%, rgba(86, 36, 208, 0.2) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%) !important;
	pointer-events: none !important;
	z-index: 0 !important;
}

.profile-cover {
	height: 280px !important;
	width: 100% !important;
	background: linear-gradient(135deg, #1c1d1f 0%, #2d2e30 100%) !important;
	position: relative !important;
	overflow: hidden !important;
}

.profile-cover::after {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background-image: 
		linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent),
		linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 76%, transparent 77%, transparent) !important;
	background-size: 50px 50px !important;
	opacity: 0.3 !important;
	pointer-events: none !important;
	z-index: 0 !important;
}

.profile-content {
	position: relative !important;
	padding: 3rem 2rem 2rem 2rem !important;
	display: grid !important;
	grid-template-columns: auto 1fr auto !important;
	gap: 3rem !important;
	align-items: start !important;
	margin-top: -100px !important;
	z-index: 1 !important;
	background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.95) 100%) !important;
}

/* Profile Avatar */
.profile-avatar {
	position: relative !important;
	flex-shrink: 0 !important;
}

.avatar-circle {
	width: 180px !important;
	height: 180px !important;
	border-radius: 50% !important;
	border: 6px solid #ffffff !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
	            0 4px 12px rgba(0, 0, 0, 0.1) !important;
	object-fit: cover !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	transition: transform 0.3s ease !important;
	position: relative !important;
	z-index: 2 !important;
}

.avatar-circle::before {
	content: '' !important;
	position: absolute !important;
	top: -6px !important;
	left: -6px !important;
	right: -6px !important;
	bottom: -6px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%) !important;
	background-size: 200% 200% !important;
	animation: avatar-border-glow 3s ease infinite !important;
	z-index: -1 !important;
}

@keyframes avatar-border-glow {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.profile-avatar:hover .avatar-circle {
	transform: scale(1.05) rotate(5deg) !important;
}

.profile-badge {
	position: absolute !important;
	bottom: 10px !important;
	right: 10px !important;
	padding: 0.625rem 1.25rem !important;
	border-radius: 12px !important;
	font-size: 0.75rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	border: 2px solid #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	transition: all 0.3s ease !important;
	z-index: 3 !important;
}

.profile-badge:hover {
	transform: scale(1.05) translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.instructor-badge {
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%) !important;
}

.student-badge {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
}

.manager-badge {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%) !important;
}

.tutor-badge {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%) !important;
}

/* Profile Info */
.profile-info {
	flex: 1 !important;
}

.profile-name {
	font-size: 2.5rem !important;
	font-weight: 900 !important;
	color: #1a1a1a !important;
	margin: 0 0 0.5rem 0 !important;
	letter-spacing: -0.02em !important;
	background: linear-gradient(135deg, #1a1a1a 0%, #5624d0 100%) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	background-clip: text !important;
}

.profile-title {
	font-size: 1.25rem !important;
	color: #6b7280 !important;
	margin: 0 0 1rem 0 !important;
	font-weight: 500 !important;
}

.profile-bio {
	font-size: 1.0625rem !important;
	line-height: 1.7 !important;
	color: #3e4143 !important;
	margin: 0 0 1.5rem 0 !important;
}

.profile-stats {
	display: flex !important;
	gap: 2rem !important;
	flex-wrap: wrap !important;
	margin-top: 1.5rem !important;
	padding-top: 1.5rem !important;
	border-top: 1px solid rgba(229, 231, 235, 0.5) !important;
}

.profile-stat-item {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.25rem !important;
}

.profile-stat-value {
	font-size: 1.75rem !important;
	font-weight: 900 !important;
	color: #1a1a1a !important;
	line-height: 1 !important;
}

.profile-stat-label {
	font-size: 0.875rem !important;
	color: #6b7280 !important;
	font-weight: 600 !important;
}

/* Profile Actions */
.profile-actions {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
	align-items: flex-end !important;
}

.profile-action-button {
	padding: 0.875rem 1.75rem !important;
	font-weight: 700 !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	border: 2px solid transparent !important;
	font-size: 0.9375rem !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	position: relative !important;
	overflow: hidden !important;
}

.profile-action-button::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, 
		transparent 0%,
		rgba(255, 255, 255, 0.2) 50%,
		transparent 100%) !important;
	transition: left 0.5s ease !important;
}

.profile-action-button:hover::before {
	left: 100% !important;
}

.profile-action-button-primary {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2e30 100%) !important;
	color: #ffffff !important;
}

.profile-action-button-primary:hover {
	background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.profile-action-button-outline {
	background: transparent !important;
	color: #1a1a1a !important;
	border-color: #d1d5db !important;
}

.profile-action-button-outline:hover {
	background: #1a1a1a !important;
	color: #ffffff !important;
	border-color: #1a1a1a !important;
	transform: translateY(-2px) !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.profile-content {
		grid-template-columns: auto 1fr !important;
		gap: 2rem !important;
	}
	
	.profile-actions {
		grid-column: 1 / -1 !important;
		flex-direction: row !important;
		justify-content: flex-start !important;
	}
}

@media (max-width: 768px) {
	.profile-content {
		grid-template-columns: 1fr !important;
		text-align: center !important;
		padding: 2rem 1.5rem !important;
		margin-top: -80px !important;
	}
	
	.profile-avatar {
		margin: 0 auto !important;
	}
	
	.avatar-circle {
		width: 140px !important;
		height: 140px !important;
	}
	
	.profile-name {
		font-size: 2rem !important;
	}
	
	.profile-stats {
		justify-content: center !important;
	}
	
	.profile-actions {
		width: 100% !important;
		justify-content: center !important;
	}
}

