/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.noteTextarea {
	scrollbar-width: none;
}

.noteTextarea::-webkit-scrollbar {
	display: none;
}

.modalRoot {
	border: none;
}

.userInfo {
	user-select: text;
	-webkit-user-select: text;
	padding-left: 12px;
	flex-shrink: 0;
}

.userInfoHeader {
	gap: 8px;
}

.userInfoHeaderMobile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.userInfoHeaderDesktop {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: flex-start;
}

.userInfoContent {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.nameRow {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.userName {
	display: inline;
	white-space: normal;
	word-break: break-all;
	vertical-align: middle;
	font-weight: 600;
	font-size: 24px;
	color: var(--text-primary);
	line-height: 1.25;
}

.userTag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.usernameRow {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: var(--text-tertiary);
	line-height: 18px;
}

.pronouns {
	margin: 0;
	font-size: 14px;
	color: var(--text-tertiary);
	line-height: 18px;
}

.customStatusText {
	font-size: 0.75rem;
	color: var(--text-primary-muted);
	line-height: 1rem;
}

.customStatusRow {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.customStatusRow:hover .customStatusText {
	--emoji-show-animated: 1;
}

.tagBadgeRow {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.badgesWrapper {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

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

.noteTextareaBase {
	position: relative;
	display: flex;
	max-height: 88px;
	min-height: 44px;
	width: 100%;
	resize: none;
	overflow-x: hidden;
	overflow-y: scroll;
	white-space: pre-wrap;
	word-break: break-word;
	border-radius: 6px;
	padding: 4px;
	font-size: 14px;
	line-height: 16px;
}

.noteTextareaEditing {
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
}

.noteTextareaNotEditing {
	border: 1px solid transparent;
	background-color: transparent;
}

.profileContent {
	display: flex;
	height: 100%;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
	padding-top: 0;
}

.profileContentHeader {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	gap: 12px;
}

.bannerContainer {
	height: 210px;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.bannerMask {
	contain: layout paint;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.bannerImage {
	height: 100%;
	width: 100%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.bannerColor {
	height: 100%;
	width: 100%;
}

.headerContainer {
	position: relative;
	min-height: 38px;
	padding: 0 16px;
	padding-top: 16px;
}

.avatarContainer {
	position: absolute;
	top: -66px;
	left: 16px;
	z-index: 0;
	border: 6px solid var(--background-primary);
	background-color: var(--background-primary);
}

.actionButtonsContainer {
	display: flex;
	height: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.contentContainer {
	z-index: 1;
	margin: 16px;
	display: flex;
	height: 100%;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
}

.profileContentWrapper {
	flex: 1;
	min-height: 0;
	overflow: auto;
	border-radius: 6px;
	background-color: var(--background-primary);
}

.scrollerFullHeight {
	height: 100%;
}

.modalContainer {
	display: flex;
	height: 780px;
	width: 600px;
	flex-direction: column;
	overflow: hidden;
	border-radius: 6px;
	border-width: 4px;
	border-style: solid;
	background-color: var(--background-primary);
	position: relative;
}

.actionButtons {
	display: flex;
	gap: 8px;
}

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

.buttonIcon {
	height: 1rem;
	width: 1rem;
}

.menuIcon {
	height: 1rem;
	width: 1rem;
}

.avatarContainer {
	border-radius: 9999px;
}

.tabsWrapper {
	margin-bottom: 8px;
	flex-shrink: 0;
}

.tabsRow {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mutualTabLabel {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mutualMenuButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	padding: 0;
	border-radius: 9999px;
	color: var(--text-primary-muted);
	line-height: 1;
	flex-shrink: 0;
	cursor: pointer;
}

.mutualMenuButton:hover {
	background-color: transparent;
	color: var(--text-primary);
}

.mutualMenuButtonActive {
	background-color: transparent;
	color: var(--text-primary);
}

.mutualMenuIcon {
	width: 16px;
	height: 16px;
	transition:
		transform 150ms ease,
		color 150ms ease;
}

.mutualMenuIconOpen {
	transform: rotate(180deg);
}

.mutualMenuButton:hover .mutualMenuIcon,
.mutualMenuButton:focus-visible .mutualMenuIcon,
.mutualMenuButtonActive .mutualMenuIcon {
	color: var(--text-primary);
}

.mutualFriendsList {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mutualFriendItem {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
}

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

.mutualFriendInfo {
	display: flex;
	flex-direction: column;
}

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

.mutualFriendUsername {
	font-size: 12px;
	color: var(--text-tertiary);
}

.emptyState {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 32px;
	color: var(--text-tertiary);
	font-size: 14px;
	gap: 8px;
}

.mutualGuildIcon {
	border-radius: 50%;
}

.separator {
	margin-bottom: 8px;
	width: 100%;
	border-bottom: 1px solid var(--background-modifier-accent);
	flex-shrink: 0;
}

.emptyStateIcon {
	width: 48px;
	height: 48px;
	color: var(--text-tertiary);
	opacity: 0.5;
}

.loadingScreen {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}
