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

.card {
	background-color: var(--background-floating);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: var(--text-primary);
}

.variantCompact {
	width: 100%;
	height: 100%;
	background-color: transparent;
	box-shadow: none;
}

.variantList {
	width: 240px;
}

.preview {
	position: relative;
	background-color: var(--voice-surface-2);
}

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

.previewList {
	width: 100%;
	height: 120px;
}

.previewImage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.6);
}

.previewFallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary-muted);
	font-size: 0.85rem;
	text-align: center;
	padding: 0.75rem;
}

.compactButtonWrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.compactButton {
	pointer-events: auto;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
}

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

.actionRow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 0.85rem;
	background-color: var(--voice-surface-3);
}

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

.listButton {
	width: 100%;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
}

.previewClickable {
	cursor: pointer;
}

.previewHoverOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	opacity: 0;
	transition:
		opacity 0.15s ease,
		background-color 0.15s ease;
	pointer-events: none;
	z-index: 1;
}

.previewClickable:hover .previewHoverOverlay {
	background-color: var(--voice-overlay);
	opacity: 1;
}

.previewHoverText {
	color: var(--voice-text-strong);
	font-size: 0.85rem;
	font-weight: 600;
	text-shadow: 0 1px 3px var(--voice-shadow-strong);
}

.protipRow {
	width: 100%;
	margin-top: 0.4rem;
}

.protipText {
	color: var(--text-primary-muted);
	font-size: 0.7rem;
	line-height: 1.3;
	text-align: center;
	display: block;
}
