/*
 * 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/>.
 */

.bioContainer {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bioClamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.viewFullButton {
	text-align: left;
	color: var(--text-link);
	font-size: 12px;
	line-height: 16px;
	cursor: pointer;
}

.viewFullButton:hover {
	color: var(--text-link);
	text-decoration: underline;
}

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

.membershipTitle {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-primary);
}

.membershipDates {
	display: flex;
	align-items: center;
	gap: 8px;
}

.membershipDate {
	display: flex;
	align-items: center;
	gap: 4px;
}

.membershipIcon {
	display: flex;
	cursor: pointer;
}

.membershipDateText {
	font-size: 14px;
	line-height: 20px;
	color: var(--text-chat);
}

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

.rolesHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rolesTitle {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-primary);
}

.rolesEmpty {
	color: var(--text-tertiary);
	font-size: 12px;
	font-style: italic;
	font-weight: 300;
	line-height: 16px;
}

.iconSmall {
	height: 16px;
	width: 16px;
}

.membershipGuildIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	--guild-icon-size: 16px;
}

.textChat {
	color: var(--text-chat);
}

.textXs {
	font-size: 8px;
}

.connectionsContainer {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 0.75rem;
}

.connectionsTitle {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-primary);
}

.connectionsCompactWrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.connectionsCompactSeparator {
	background: var(--background-modifier-hover);
	height: 1px;
	margin-bottom: 4px;
	margin-top: 4px;
}

.connectionsCompact {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.connectionCompactIcon {
	align-items: center;
	background: white;
	border-radius: 6px;
	color: var(--text-secondary);
	cursor: pointer;
	display: flex;
	justify-content: center;
	padding: 4px;
	text-decoration: none;
}

.connectionDomainIcon {
	color: #000;
}

.connectionTooltipContent {
	align-items: center;
	display: flex;
	gap: 4px;
}

.connectionsGrid {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.connectionsListMobile {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.connectionCard {
	align-items: center;
	background: var(--background-secondary);
	border: 1px solid var(--background-modifier-accent);
	border-radius: 10px;
	color: var(--text-primary);
	display: flex;
	gap: 6px;
	padding: 12px;
	text-decoration: none;
	user-select: text;
}

.connectionExternalLink {
	align-items: center;
	color: var(--text-tertiary);
	display: flex;
	text-decoration: none;
}

.connectionExternalLink:hover {
	color: var(--text-primary);
}

.connectionIcon {
	align-items: center;
	background: white;
	border-radius: 6px;
	color: var(--text-secondary);
	display: flex;
	flex-shrink: 0;
	justify-content: center;
	padding: 4px;
}

.connectionCardNameRow {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 3px;
	min-width: 0;
}

.connectionCardName {
	color: var(--text-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.connectionBadge {
	align-items: center;
	cursor: default;
	display: flex;
	flex-shrink: 0;
}

.connectionExternalArrow {
	color: var(--text-tertiary);
	flex-shrink: 0;
}
