/*
 * 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 {
	display: flex;
	flex-direction: column;
	background: var(--background-secondary);
	border: 1px solid var(--background-modifier-accent);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: box-shadow 0.15s ease-out;
}

@media (hover: hover) and (pointer: fine) {
	.card:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}
}

.cardBody {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
	padding: var(--spacing-4);
	flex: 1;
}

.header {
	display: flex;
	align-items: center;
	gap: var(--spacing-3);
}

.icon {
	height: 3rem;
	width: 3rem;
	flex-shrink: 0;
	border-radius: var(--radius-lg);
}

.titleRow {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	flex: 1;
}

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

.category {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.description {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	flex: 1;
}

.footer {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
	padding: var(--spacing-3) var(--spacing-4);
	border-top: 1px solid var(--background-modifier-accent);
}

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

.stat {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.joinButton {
	width: 100%;
}

.statDot {
	margin-right: 0.3rem;
	height: 0.5rem;
	width: 0.5rem;
	border-radius: var(--radius-full);
	flex: 0 0 auto;
}

.statDotOnline {
	composes: statDot;
	background-color: var(--status-online);
}

.statDotMembers {
	composes: statDot;
	background-color: var(--text-tertiary-secondary);
}

.statText {
	color: var(--text-tertiary);
	font-size: 0.75rem;
	line-height: 1.2;
	white-space: nowrap;
}
