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

.container {
	position: relative;
	display: block;
	width: auto;
	max-width: 100%;
}

.inline {
	display: inline-block;
	width: auto;
}

.content {
	position: relative;
	width: 100%;
	height: 100%;
}

.hidden .content {
	filter: blur(10px);
	opacity: 0.2;
	user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
	transition:
		opacity var(--transition-normal),
		filter var(--transition-normal);
}

.overlayButton {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: var(--radius-md);
	background-color: var(--spoiler-overlay-color);
	color: var(--text-primary);
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	z-index: 2;
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast);
}

.overlayButton:focus-visible {
	outline: 2px solid var(--text-link);
	outline-offset: 2px;
}

.overlayButton:hover {
	background-color: var(--spoiler-overlay-hover-color);
}

.overlayLabel {
	padding: 0.25rem 0.5rem;
	background-color: color-mix(in srgb, var(--background-secondary) 30%, transparent);
	border-radius: var(--radius-sm);
}
