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

.headerContainer {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.scroller {
	padding-top: var(--spacing-2);
}

.filterList {
	display: flex;
	gap: var(--spacing-2);
	flex-wrap: wrap;
}

.filterPill {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
	border-radius: var(--radius-md);
	padding: var(--spacing-1) var(--spacing-2);
	font-weight: 600;
	font-size: 0.75rem;
	line-height: 1.25rem;
	background-color: transparent;
	color: var(--text-primary-muted);
	cursor: pointer;
	transition-property: color, background-color;
	transition-duration: 200ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.filterPill:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.filterPillActive {
	background-color: var(--background-modifier-selected);
	color: var(--text-primary);
}

.filterPillIcon {
	width: 14px;
	height: 14px;
}

.mobileHeaderContainer {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.mobileHeaderContainerStandalone {
	composes: mobileHeaderContainer;
	padding-block: var(--spacing-2);
	padding-inline: var(--spacing-4);
}

.columnContainerOverflow .grid {
	padding: 0;
}

.fullHeightRelative {
	position: relative;
	height: 100%;
}

.columnContainer {
	display: flex;
	height: 100%;
	flex-direction: column;
}

.columnContainerOverflow {
	composes: columnContainer;
	overflow: hidden;
}

.bodyWrapper {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

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

@media (max-width: 768px) {
	.scrollerFull {
		scrollbar-width: none;
	}

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

.centeredContent {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

.slate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.slateIcon {
	height: 3.5rem;
	width: 3.5rem;
	color: var(--text-primary-muted);
}

.slateTitle {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
}

.slateDescription {
	font-size: 1rem;
	color: var(--text-primary-muted);
}

.gifBadge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 10;
	padding: 0.125rem 0.25rem;
	border-radius: 0.375rem;
	background-color: rgba(0, 0, 0, 0.6);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	color: white;
}

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

.audioCard {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 100%;
	width: 100%;
	padding: 1rem;
	border-radius: 0.5rem;
	background-color: var(--brand-primary);
}

.audioIcon {
	height: 3rem;
	width: 3rem;
	color: white;
	flex-shrink: 0;
}

.audioMeta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

.audioDuration {
	font-family: var(--font-mono);
	font-size: 1.125rem;
	color: white;
}

.audioFilename {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	font-weight: 600;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.audioBadge {
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
	background-color: rgba(0, 0, 0, 0.2);
	font-weight: 700;
	font-size: 0.75rem;
	color: white;
}

.actionBar {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: flex;
	gap: 0.5rem;
	z-index: 10;
	opacity: 0;
	transform: translateY(-0.25rem);
	pointer-events: none;
}

.actionButton {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.25rem;
	width: 2.25rem;
	border: none;
	border-radius: 9999px;
	background-color: var(--background-primary);
	color: var(--text-primary);
	backdrop-filter: blur(6px);
	opacity: 0.8;
	transition:
		opacity 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
	cursor: pointer;
}

.actionButton:hover {
	opacity: 1;
}

.actionButtonDanger {
	composes: actionButton;
}

.actionButtonDanger:hover {
	background-color: var(--status-danger);
	color: white;
}

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