/* ── Channel details drawer — header ─────────────────────────────────── */

.header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 12px;
	border-bottom: 1px solid var(--user-area-divider-color, rgba(255, 255, 255, 0.06));
}

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

.headerIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--background-tertiary, rgba(255, 255, 255, 0.05));
	color: var(--text-secondary);
	flex-shrink: 0;
}

.headerTextBlock {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.headerTitleRow {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.headerTitleIcon {
	color: var(--text-secondary);
	flex-shrink: 0;
}

.headerTitle {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.headerSubtitle {
	font-size: 0.8125rem;
	color: var(--text-tertiary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 2px;
}

.headerCloseButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.headerCloseButton:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.04));
	color: var(--text-primary);
}

/* ── Quick actions row (Mute / Search / More) ────────────────────────── */

.quickActions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 16px 20px;
}

.quickAction {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 8px;
	background-color: var(--background-tertiary, rgba(255, 255, 255, 0.04));
	border: none;
	border-radius: 12px;
	color: var(--text-primary);
	cursor: pointer;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	transition: background-color 0.15s;
}

.quickAction:hover:not(:disabled) {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.08));
}

.quickAction:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.quickActionIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--text-secondary);
}

.quickActionLabel {
	line-height: 1;
}

/* ── Tab bar (Members / Pins) ────────────────────────────────────────
   Flex row of two equal-width tab buttons. Each button is a column
   layout: icon + label side by side, padded to ~12px tall. The
   active tab swaps the text + icon colour to --brand-primary-light
   and draws a 2px underline via an absolutely-positioned ::after
   that hangs off the bottom edge of the button and overlaps the
   row's 1px divider. Inactive tabs stay muted. */

.tabBar {
	position: relative;
	display: flex;
	align-items: stretch;
	padding: 0;
	border-bottom: 1px solid var(--user-area-divider-color, rgba(255, 255, 255, 0.06));
}

.tabButton {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 8px;
	background: none;
	border: none;
	color: var(--text-secondary, var(--text-primary-muted));
	cursor: pointer;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	transition: color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.tabButton svg {
	flex-shrink: 0;
	color: var(--text-secondary, var(--text-primary-muted));
	transition: color 0.15s;
}

.tabButtonActive {
	color: var(--brand-primary-light);
}

.tabButtonActive svg {
	color: var(--brand-primary-light);
}

/* Active tab underline — a 2px bar drawn at the bottom of the button,
   translated down 1px so it overlaps and visually replaces the tab
   row's divider underneath that tab. */
.tabButtonActive::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background-color: var(--brand-primary-light);
	border-radius: 2px 2px 0 0;
}

.membersWrapper {
	padding: 1rem;
}

.emptyState {
	padding: 16px 20px;
	font-size: 0.875rem;
	color: var(--text-tertiary);
	text-align: center;
}

/* ── Pins tab ───────────────────────────────────────────────────────*/

.pinsList {
	display: flex;
	flex-direction: column;
	padding: 4px 0 16px;
}

.pinsLoading {
	padding: 16px 20px;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--text-primary-muted);
}

/* Fluxer-style empty state: flag icon + "You've reached the end"
   title + explanatory body. Matches the reference screenshot. */
.pinsEmpty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 48px 32px 32px;
	text-align: center;
}

.pinsEmptyIcon {
	color: var(--text-primary-muted);
	margin-bottom: 4px;
}

.pinsEmptyTitle {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--text-primary);
}

.pinsEmptyBody {
	font-size: 0.875rem;
	color: var(--text-primary-muted);
	line-height: 1.4;
	max-width: 280px;
}
