/* ── Mobile You page ─────────────────────────────────────────────────
   Full-screen profile view shown when the mobile bottom nav's "You"
   tab is tapped. Layout mirrors `MobileMemberProfileSheet` but without
   the BottomSheet wrapper — the page fills the content area between
   the top of the viewport and the MobileBottomNav at the bottom. */

.root {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: var(--background-primary);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.banner {
	position: relative;
	flex-shrink: 0;
	height: 180px;
	width: 100%;
	background-color: var(--brand-primary);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Row under the banner — avatar lifts up to overlap the banner by
   ~48px, settings gear sits at the right end of the row. */

.headerRow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0 1rem;
	margin-top: -48px;
	flex-shrink: 0;
}

/* Transparent button wrapper around the avatar — lets the whole
   96px circle act as the tap target for opening the status sheet
   without adding any visible chrome of its own. Zeroes out the
   default button padding/background/border so the avatar looks
   identical to the previous static div. */
.avatarButton {
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Avatar wrapper — a bigger `--background-primary` circle sitting
   behind the 96px Avatar. Rendered as a `::before` pseudo so it's
   isolated from the Avatar's own layout and the absolutely-
   positioned status badge doesn't end up repositioned by a parent
   border / padding. The pseudo is 12px wider than the Avatar
   (6px on each side) and is visually the stroke the Fluxer
   reference shows around the profile picture. */
.avatarWrap {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	/* Match the Avatar status dot's cut-out ring to the page's
	   `--background-primary` surface instead of the default
	   `--background-secondary`, so the dot looks at home on the
	   You page. */
	--avatar-status-border: var(--background-primary);
}

.avatarWrap::before {
	content: '';
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: -6px;
	border-radius: 50%;
	background-color: var(--background-primary);
	z-index: 0;
	pointer-events: none;
}

.avatarWrap > * {
	position: relative;
	z-index: 1;
}

.settingsButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
	cursor: pointer;
	transition: background-color 0.15s;
	-webkit-tap-highlight-color: transparent;
	margin-bottom: 6px;
}

.settingsButton:hover {
	background-color: var(--background-modifier-hover);
}

.settingsButton:active {
	background-color: var(--background-modifier-hover);
}

/* ── Name block ─────────────────────────────────────────────────────*/

.nameBlock {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 1rem 0;
	flex-shrink: 0;
}

.displayName {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.handle {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary-muted, #a0a3a8);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Edit Profile button ────────────────────────────────────────────*/

.editProfileButton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 16px 1rem 0;
	padding: 14px 16px;
	background-color: var(--brand-primary);
	color: #fff;
	border: none;
	border-radius: 0.75rem;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s;
	-webkit-tap-highlight-color: transparent;
	flex-shrink: 0;
}

.editProfileButton:active {
	filter: brightness(0.92);
}

/* ── Card stack ─────────────────────────────────────────────────────*/

.cardStack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 1rem 32px;
}

.card {
	background-color: var(--background-secondary);
	border-radius: 0.75rem;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cardTitleRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cardTitle {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.cardValue {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
}

.cardAction {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.06));
	color: var(--text-primary-muted);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.cardAction:active {
	background-color: var(--background-modifier-accent, rgba(255, 255, 255, 0.1));
	color: var(--text-primary);
}

.cardSubtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary-muted);
	font-style: italic;
}
