/**
 * @package     MokoSuiteCommunity
 * @author      Moko Consulting <hello@mokoconsulting.tech>
 * @copyright   Copyright (C) 2026 Moko Consulting. All rights reserved.
 * @license     GNU General Public License version 3 or later; see LICENSE
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

/* Profile */
.com-mokosuitecommunity-profile .profile-header {
	text-align: center;
	margin-bottom: 2rem;
}

.com-mokosuitecommunity-profile .profile-avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
}

.com-mokosuitecommunity-profile .profile-bio {
	max-width: 600px;
	margin: 0 auto;
	color: #666;
}

/* User Lists */
.com-mokosuitecommunity-profiles .profile-card {
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	padding: 1.5rem;
	text-align: center;
	transition: box-shadow 0.2s;
}

.com-mokosuitecommunity-profiles .profile-card:hover {
	box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.com-mokosuitecommunity-profiles .profile-card img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0.75rem;
}

/* Gallery list thumbnails — cover image, image mosaic, or placeholder. */
.com-mokosuitecommunity-gallery .msc-gallery-thumb-link {
	display: block;
	text-decoration: none;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb,
.com-mokosuitecommunity-profile .msc-gallery-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #e9ecef;
	background-size: cover;
	background-position: center;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
	overflow: hidden;
	border-radius: 0.375rem;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb--mosaic {
	display: grid;
	gap: 2px;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb--count-1 { grid-template-columns: 1fr; }
.com-mokosuitecommunity-gallery .msc-gallery-thumb--count-2 { grid-template-columns: 1fr 1fr; }
.com-mokosuitecommunity-gallery .msc-gallery-thumb--count-3,
.com-mokosuitecommunity-gallery .msc-gallery-thumb--count-4 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

/* 3-image mosaic: one tall image on the left, two stacked on the right. */
.com-mokosuitecommunity-gallery .msc-gallery-thumb--count-3 .msc-gallery-thumb__cell:first-child {
	grid-row: span 2;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb__cell {
	background-size: cover;
	background-position: center;
	background-color: #dee2e6;
	min-height: 0;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb--empty,
.com-mokosuitecommunity-profile .msc-gallery-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.com-mokosuitecommunity-gallery .msc-gallery-thumb__placeholder,
.com-mokosuitecommunity-profile .msc-gallery-thumb__placeholder {
	font-size: 2.5rem;
	opacity: 0.35;
}
