/*
 * Custom styling for the LearnPress "Мій кабінет" (profile) area.
 * Enqueued from functions-profile-course-card.php — only loads on the profile page.
 *
 * Scope: #learn-press-profile only. Nothing here touches the course archive,
 * single course page, or other LearnPress screens.
 */

#learn-press-profile {
	--lptc-bg: #f6f2ea;
	--lptc-card: #ffffff;
	--lptc-border: #e8e2d5;
	--lptc-green: #1c3829;
	--lptc-green-dark: #142920;
	--lptc-text: #2a2a24;
	--lptc-text-muted: #767267;
	--lptc-radius: 14px;
	--lptc-font-serif: Georgia, 'Times New Roman', serif;

	background: var(--lptc-bg);
	padding: 32px 0 48px;
	color: var(--lptc-text);
}

/* ---------- two-column layout ---------- */
#learn-press-profile .lp-content-area {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

@media ( max-width: 782px ) {
	#learn-press-profile .lp-content-area {
		flex-direction: column;
	}
}

/* ---------- sidebar card ---------- */
#learn-press-profile .lp-profile-sidebar-card {
	flex: 0 0 260px;
	max-width: 260px;
	background: var(--lptc-card);
	border: 1px solid var(--lptc-border);
	border-radius: var(--lptc-radius);
	padding: 24px 20px;
	box-sizing: border-box;
}

@media ( max-width: 782px ) {
	#learn-press-profile .lp-profile-sidebar-card {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}
}

.lp-profile-sidebar-card__header {
	text-align: center;
	margin-bottom: 20px;
}

.lp-profile-sidebar-card__avatar {
	width: 84px;
	height: 84px;
	margin: 0 auto 12px;
	border-radius: 50%;
	overflow: hidden;
}

.lp-profile-sidebar-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.lp-profile-sidebar-card__name {
	font-family: var(--lptc-font-serif);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--lptc-text);
}

.lp-profile-sidebar-card__subtitle {
	font-size: 13px;
	color: var(--lptc-text-muted);
	margin: 0;
}

/* nav tabs reused from templates/profile/tabs.php */
#learn-press-profile #profile-nav {
	border-top: 1px solid var(--lptc-border);
	padding-top: 12px;
}

#learn-press-profile .lp-profile-nav-tabs {
	list-style: none;
	margin: 0;
	padding: 0;
}

#learn-press-profile .lp-profile-nav-tabs > li {
	margin-bottom: 4px;
}

#learn-press-profile .lp-profile-nav-tabs > li.logout {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--lptc-border);
}

#learn-press-profile .lp-profile-nav-tabs a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--lptc-text);
	text-decoration: none;
	font-size: 14px;
	transition: background-color .15s ease, color .15s ease;
}

#learn-press-profile .lp-profile-nav-tabs a:hover {
	background: var(--lptc-bg);
}

#learn-press-profile .lp-profile-nav-tabs > li.active > a {
	background: var(--lptc-green);
	color: #fff;
}

#learn-press-profile .lp-profile-nav-tabs .profile-tab-sections {
	list-style: none;
	margin: 2px 0 6px 34px;
	padding: 0;
}

/* ---------- main content ---------- */
#learn-press-profile #profile-content {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- statistic boxes ---------- */
#learn-press-profile .dashboard-statistic__row,
#learn-press-profile #dashboard-statistic {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

#learn-press-profile .statistic-box {
	flex: 1 1 200px;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--lptc-card);
	border: 1px solid var(--lptc-border);
	border-radius: var(--lptc-radius);
	padding: 18px 20px;
}

#learn-press-profile .statistic-box__icon {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	background: var(--lptc-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--lptc-green);
}

#learn-press-profile .statistic-box__text {
	display: flex;
	flex-direction: column;
}

#learn-press-profile .statistic-box__text label {
	font-size: 13px;
	color: var(--lptc-text-muted);
	margin-bottom: 2px;
}

#learn-press-profile .statistic-box__text__number {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--lptc-text);
}

/* ---------- hide the All / In-progress / Finished filter pills ----------
   Remove this block if you want to keep the filter row visible. */
#learn-press-profile .learn-press-course-tab-filters .learn-press-tabs {
	display: none;
}

/* ---------- course cards grid ---------- */
#learn-press-profile .learn-press-courses {
	display: grid !important;
	grid-template-columns: repeat( 2, 1fr );
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media ( max-width: 900px ) {
	#learn-press-profile .learn-press-courses {
		grid-template-columns: 1fr;
	}
}

#learn-press-profile .learn-press-courses .course {
	list-style: none;
}

#learn-press-profile .course-item {
	background: var(--lptc-card);
	border: 1px solid var(--lptc-border);
	border-radius: var(--lptc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

#learn-press-profile .course-thumbnail {
	position: relative;
	line-height: 0;
}

#learn-press-profile .course-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

/* status badge, injected by functions-profile-course-card.php */
.lptc-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(0,0,0,.65);
}

.lptc-badge--progress {
	background: var(--lptc-green);
}

.lptc-badge--finished {
	background: #4a4a42;
}

.lptc-badge--available {
	background: #fff;
	color: var(--lptc-text);
}

#learn-press-profile .course-content {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

#learn-press-profile .wap-course-title {
	font-family: var(--lptc-font-serif);
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}

#learn-press-profile .wap-course-title a {
	color: var(--lptc-text);
	text-decoration: none;
}

#learn-press-profile .course-instructor-category {
	font-size: 13px;
	color: var(--lptc-text-muted);
	display: flex;
	gap: 10px;
	margin-top: -6px;
}

/* hide the "by"/"in" prefix labels to match the flat "Author name" look */
#learn-press-profile .course-instructor-category label {
	display: none;
}

/* progress bar, injected by functions-profile-course-card.php */
.lptc-progress__label {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--lptc-text-muted);
	margin-bottom: 6px;
}

.lptc-progress__percent {
	font-weight: 700;
	color: var(--lptc-text);
}

.lptc-progress__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--lptc-bg);
	overflow: hidden;
}

.lptc-progress__bar-fill {
	height: 100%;
	background: var(--lptc-green);
	border-radius: 999px;
}

/* meta row: lessons / recordings access / date */
#learn-press-profile .course-wrap-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 13px;
	color: var(--lptc-text-muted);
	border-top: 1px solid var(--lptc-border);
	border-bottom: 1px solid var(--lptc-border);
	padding: 10px 0;
}

#learn-press-profile .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* buttons */
.lptc-btn {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .15s ease;
}

.lptc-btn:hover {
	opacity: .85;
}

.lptc-btn--primary {
	background: var(--lptc-green);
	color: #fff;
}

.lptc-btn--outline {
	background: transparent;
	color: var(--lptc-text);
	border: 1px solid var(--lptc-border);
}

/* ---------- need-help block ---------- */
.lptc-need-help {
	margin-top: 24px;
	background: var(--lptc-card);
	border: 1px solid var(--lptc-border);
	border-radius: var(--lptc-radius);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.lptc-need-help__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lptc-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--lptc-green);
	flex: 0 0 44px;
}

.lptc-need-help__text {
	flex: 1 1 320px;
}

.lptc-need-help__text h4 {
	margin: 0 0 4px;
	font-family: var(--lptc-font-serif);
	font-size: 17px;
}

.lptc-need-help__text p {
	margin: 0;
	font-size: 13px;
	color: var(--lptc-text-muted);
}

.lptc-need-help__btn {
	width: auto;
	flex: 0 0 auto;
	padding: 12px 20px;
}
.learn-press-courses[data-size="3"] .course,
#learn-press-profile .dashboard-statistic__row, #learn-press-profile #dashboard-statistic {
    width: 100% !important;
}