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

.sectionContent {
	margin-top: 0.5rem;
}

.radioSections {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.radioSection {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.radioLabelContainer {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.radioLabel {
	display: block;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--text-primary);
}

.previewContainer {
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.previewWrapper {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	max-width: 28rem;
	width: 20rem;
}

.previewBox {
	position: relative;
	display: flex;
	aspect-ratio: 16 / 9;
	width: 100%;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 0.25rem;
	background-color: var(--background-tertiary);
}

.previewIcon {
	height: 4rem;
	width: 4rem;
	color: var(--text-tertiary);
}

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

.actionButtons {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 10;
	display: flex;
	gap: 0.25rem;
}

.actionButton {
	display: flex;
	height: 2rem;
	width: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	border: 1px solid var(--background-modifier-accent);
	background-color: var(--background-primary);
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	cursor: pointer;
}

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

.suppressButton {
	position: absolute;
	top: 0.25rem;
	right: -2rem;
	display: flex;
	height: 1.5rem;
	width: 1.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	background: transparent;
	border: none;
	color: var(--text-tertiary);
	transition:
		background-color 0.15s,
		color 0.15s;
	cursor: pointer;
	padding: 0;
}

.suppressButton:hover {
	color: var(--status-danger);
}

.expiryFootnotePreview {
	width: 100%;
}
