/**
 * Profile (BuddyPress Member) Page Styles - momsides_dev
 */

 /* ========================================
   Profile Banner
   ======================================== */
.msp-profile-banner {
    position: relative;
    max-width: 1216px;
    height: 340px;
    margin: 40px auto 0;
    border-radius: 12px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #E0E0E0;
    overflow: hidden;
}

.msp-profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 19.28%, rgba(0, 0, 0, 0.55) 100%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.msp-profile-banner__user {
    position: absolute;
    bottom: 114px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.msp-profile-banner__avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.msp-profile-banner__avatar--placeholder {
    background-color: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
	border-radius: 64px !important;
}

.msp-profile-banner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 64px;
}

.msp-profile-banner__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msp-profile-banner__name {
    color: #FFFFFF;
	font-family: 'Source Sans 3';
	font-weight: 400;
	font-size: 26px;
	line-height: 32px;
	letter-spacing: 0%;
	margin: 0 !important;
}

.msp-profile-banner__location {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #FFFFFF;
}

.msp-profile-banner__stats {
    position: absolute;
    right: 40px;
    bottom: 74px;
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.msp-profile-banner__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 16px;
    color: #FFFFFF;
}

.msp-profile-banner__stat-label {
    font-weight: 400;
}

.msp-profile-banner__stat-value {
    font-weight: 600;
}

/* Layout wrapper */
.msp-member-home {
	padding-bottom: var(--spacing-10);
}

.msp-member-inner {
	max-width: var(--container-2xl);
	margin: 0 auto;
  padding: 40px 0;
}

.msp-member-layout {
	margin-top: var(--spacing-6);
}

/* Top nav tabs: About / Friends / Groups / Photos / Videos */
.msp-member-nav__tabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	border-bottom: 2px solid var(--color-border);
	background-color: var(--color-white);
}

.msp-member-nav__item {
	list-style: none;
}

.msp-member-nav__item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 0;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
	color: #A6A6A6;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.msp-member-nav__item.current > a,
.msp-member-nav__item--active > a {
	color: #303030;
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: var(--color-accent);
}

.msp-member-nav__item > a:hover {
	color: #303030;
}

/* Generic tab panels */
.msp-tab-panel {
  display: none;
  margin-top: var(--spacing-6);
}

.msp-tab-panel--active {
  display: block;
}

/* About inner tabs (Viewing / Editing / Change picture / Change cover) */
.msp-about-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid var(--color-border);
	background-color: var(--color-white);
}

.msp-about-tabs__item {
	padding: 12px 24px;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
	color: #A6A6A6;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.msp-about-tabs__item--active {
	color: #303030;
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: var(--color-accent);
}

.msp-about-panels {
  margin-top: var(--spacing-4);
}

.msp-about-panel {
  display: none;
}

.msp-about-panel--active {
  display: block;
}

/* Cards used for Viewing blocks */
.msp-card {
	background-color: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 24px 32px;
	margin-bottom: var(--spacing-4);
}

.msp-card__title {
	margin: 0 0 16px 0;
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	color: var(--color-text);
}

/* Key:Value rows in Viewing */
.msp-key-value {
	border-top: 1px solid var(--color-border-light);
}

.msp-key-value__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border-light);
	font-family: var(--font-primary);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-sm);
}

.msp-key-value__key {
	color: var(--color-text-secondary);
}

.msp-key-value__value {
	color: var(--color-text);
}

.msp-key-value__value a {
	color: var(--color-accent);
	text-decoration: none;
}

.msp-key-value__value a:hover {
	text-decoration: underline;
}

/* About -> Editing: tab strip (Contact / Education / Hobbies) */
.msp-about-edit-tabs {
	margin-top: 16px;
}

.msp-about-edit-tabs__nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.msp-about-edit-tabs__item {
	padding: 8px 16px;
	border-radius: 12px !important;
	background-color: #FFFFFF;
	border: 1px solid #DBDBDB;
	font-family: 'Source Sans 3', var(--font-primary);
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: 0;
	color: #303030;
	cursor: pointer;
}

.msp-about-edit-tabs__item--active {
	background-color: #DBDBDB;
}

.msp-about-edit-panels {
  margin-top: 24px;
}

.msp-about-edit-panel {
  display: none;
}

.msp-about-edit-panel--active {
  display: block;
}

/* Editing forms */
.msp-form {
	background-color: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 24px 32px 32px;
}

.msp-form--stacked {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.msp-form__title {
	margin: 0 0 8px 0;
	font-family: 'Source Sans 3', var(--font-primary);
	font-weight: 500;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--color-text);
}

.msp-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.msp-form__field label {
	font-family: var(--font-primary);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
}

.msp-form__field input,
.msp-form__field textarea {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--color-border-light);
	padding: 10px 14px;
	font-family: var(--font-primary);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-sm);
	color: var(--color-text);
	background-color: #FAFAFA;
}

.msp-form__field input:focus,
.msp-form__field textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	background-color: var(--color-white);
	box-shadow: 0 0 0 1px rgba(143, 181, 108, 0.35);
}

.msp-form__field textarea {
	resize: vertical;
	min-height: 72px;
}

/* Save button */
.msp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px !important;
	border-radius: 10px !important;
	border: none;
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	max-width: 140px;
	margin-top: 32px;
}

.msp-btn--primary {
	background-color: var(--color-accent) !important;
	color: var(--color-white) !important;
}

.msp-btn--primary:hover {
	background-color: var(--color-accent-hover) !important;
}

.msp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form actions and status */
.msp-form__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

.msp-form__status {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 500;
}

.msp-form__status--success {
	color: #22c55e;
}

.msp-form__status--error {
	color: #ef4444;
}

/* About two-column layout */
.msp-about-layout {
	display: grid;
	grid-template-columns: 800px 384px;
	gap: 32px;
}

.msp-about-layout__main {
	display: flex;
	flex-direction: column;
}

.msp-about-layout__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-4);
}

.msp-card--sidebar {
	padding: 20px 24px;
}

.msp-members-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.msp-member-card {
	display: flex;
	align-items: center;
	gap: 12px;
}

.msp-member-card--placeholder {
	height: 48px;
	border-radius: 12px;
	background-color: var(--color-background-alt);
}

.msp-text-muted {
	font-family: var(--font-primary);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
}

/* Sidebar cards */
.msp-sidebar-card {
	background-color: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 20px 24px;
	margin-bottom: var(--spacing-4);
}

.msp-sidebar-placeholder {
	font-family: var(--font-primary);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	margin: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  	.msp-card,
	.msp-form {
		padding: 20px 16px;
	}

	.msp-member-inner {
		padding: 24px 16px;
	}

	.msp-about-layout {
		grid-template-columns: 1fr;
	}

  .msp-key-value__row {
    grid-template-columns: 140px 1fr;
  }

  .msp-member-nav__item > a {
    padding: 12px 16px;
  }
}

/* ===========================================
   Avatar Upload Zone
   =========================================== */

.msp-avatar-upload {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.msp-upload-zone {
	border: 2px dashed #DBDBDB;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	margin-top: 16px;
}

.msp-upload-zone:hover,
.msp-upload-zone.msp-upload-zone--dragover {
	border-color: #9DC41A;
	background-color: rgba(157, 196, 26, 0.02);
}

.msp-upload-zone__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.msp-upload-zone__text {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	color: #303030;
	margin: 0;
}

.msp-upload-zone__text--success {
	color: #9DC41A;
}

.msp-upload-zone__text--error {
	color: #EF4444;
}

.msp-upload-zone__btn {
	cursor: pointer;
	min-width: 120px;
	margin-top: 0;
}

.msp-upload-zone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

/* Progress Ring */
.msp-upload-zone__progress {
	position: relative;
	width: 80px;
	height: 80px;
}

.msp-progress-ring {
	transform: rotate(-90deg);
}

.msp-progress-ring__fill {
	transition: stroke-dashoffset 0.3s ease;
}

.msp-upload-zone__percent {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 600;
	color: #9DC41A;
}

/* Info section */
.msp-avatar-upload__info {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #EBEBEB;
}

.msp-avatar-upload__info p {
	font-family: var(--font-primary);
	font-size: 14px;
	color: #666;
	margin: 0 0 8px 0;
	line-height: 1.5;
}

.msp-link--danger {
	color: #9DC41A;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.msp-link--danger:hover {
	color: #7BA315;
	text-decoration: underline;
}

/* Cover Upload */
.msp-cover-upload {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.msp-cover-upload__desc {
	font-family: var(--font-primary);
	font-size: 14px;
	color: #666;
	margin: 0 0 20px 0;
}

.msp-cover-upload__info {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #EBEBEB;
}

.msp-cover-upload__info p {
	font-family: var(--font-primary);
	font-size: 14px;
	color: #666;
	margin: 0 0 8px 0;
	line-height: 1.5;
}
