/**
 * User Profiles Styles - Udemy/Coursera Professional Design
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   PROFILE CONTAINER - UDEMY STYLE
   ============================================ */

.coursee-user-profile {
	background: #ffffff;
	border: 2px solid #000000;
	border-radius: 0;
	overflow: hidden;
	margin-bottom: 2rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PROFILE HEADER
   ============================================ */

.profile-header {
	position: relative;
	background: #ffffff;
}

.profile-cover {
	height: 200px;
	width: 100%;
	background: #000000;
	position: relative;
}

.profile-content {
	position: relative;
	padding: 2rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 2rem;
	align-items: start;
	margin-top: -80px;
	z-index: 1;
}

/* ============================================
   PROFILE AVATAR
   ============================================ */

.profile-avatar {
	position: relative;
}

.avatar-circle {
	width: 150px;
	height: 150px;
	border-radius: 0;
	border: 4px solid #000000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	object-fit: cover;
	background: #ffffff;
}

.profile-badge {
	position: absolute;
	bottom: -10px;
	right: -10px;
	padding: 0.5rem 1rem;
	border-radius: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border: 2px solid #000000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instructor-badge {
	background: #000000;
	color: #ffffff;
}

.student-badge {
	background: #000000;
	color: #ffffff;
}

.manager-badge {
	background: #000000;
	color: #ffffff;
}

.tutor-badge {
	background: #000000;
	color: #ffffff;
}

.admin-badge {
	background: #000000;
	color: #ffffff;
}

/* ============================================
   PROFILE INFO
   ============================================ */

.profile-info {
	flex: 1;
	min-width: 0;
}

.profile-name {
	font-size: 2rem;
	font-weight: 700;
	color: #000000;
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.profile-title {
	font-size: 1.125rem;
	color: #6b7280;
	margin: 0 0 1rem 0;
	font-weight: 400;
}

.profile-location {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0 0 1rem 0;
}

.profile-email {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0;
}

.profile-bio {
	font-size: 1rem;
	line-height: 1.8;
	color: #374151;
	margin: 0;
}

.profile-social {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.social-link {
	padding: 0.5rem 1rem;
	border: 2px solid #000000;
	color: #000000;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	display: inline-block;
}

.social-link:hover {
	background: #000000;
	color: #ffffff;
	text-decoration: none;
}

.profile-interests {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.interest-tag {
	padding: 0.375rem 0.75rem;
	background: #ffffff;
	border: 1px solid #000000;
	color: #000000;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ============================================
   PROFILE STATS
   ============================================ */

.profile-stats {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.stat-item {
	text-align: center;
	padding: 1rem;
	border: 2px solid #000000;
	min-width: 100px;
	background: #ffffff;
}

.stat-value {
	font-size: 2rem;
	font-weight: 900;
	color: #000000;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ============================================
   PROFILE BODY
   ============================================ */

.profile-body {
	padding: 2rem;
	border-top: 2px solid #000000;
}

.profile-section {
	margin-bottom: 3rem;
}

.profile-section:last-child {
	margin-bottom: 0;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #000000;
	margin: 0 0 1.5rem 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #000000;
}

/* ============================================
   COURSES GRID IN PROFILE
   ============================================ */

.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.course-card {
	border: 2px solid #000000;
	overflow: hidden;
	background: #ffffff;
	transition: all 0.2s ease;
}

.course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.course-thumbnail {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f3f4f6;
}

.course-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-content {
	padding: 1.5rem;
}

.course-title {
	margin: 0 0 1rem 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #000000;
	line-height: 1.4;
}

.course-title a {
	color: #000000;
	text-decoration: none;
	transition: color 0.2s ease;
}

.course-title a:hover {
	color: #6b7280;
	text-decoration: underline;
}

.course-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.course-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #000000;
}

.course-price.free {
	color: #10b981;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
	.profile-content {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-top: -60px;
	}
	
	.profile-stats {
		justify-content: center;
		width: 100%;
	}
	
	.courses-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

@media (max-width: 768px) {
	.profile-cover {
		height: 150px;
	}
	
	.profile-content {
		padding: 1.5rem;
		margin-top: -50px;
	}
	
	.avatar-circle {
		width: 120px;
		height: 120px;
	}
	
	.profile-name {
		font-size: 1.5rem;
	}
	
	.profile-stats {
		flex-direction: column;
		gap: 1rem;
	}
	
	.stat-item {
		width: 100%;
	}
	
	.courses-grid {
		grid-template-columns: 1fr;
	}
	
	.profile-body {
		padding: 1.5rem;
	}
}
