
/**
 * @package Team Page
 * @version 5.4
 * @author Diego Andrés <diegoandres_cortes@outlook.com>
 * @copyright Copyright (c) 2023, SMF Tricks
 * @license https://www.mozilla.org/en-US/MPL/2.0/
 */

/* Styles for the general looks of the Team Page mod.
------------------------------------------------------- */

/* Sortable */
.tp_placeholder_sort {
	height: 35px;
	width: 100%;
	background-color: rgba(255, 235, 205, 0.5);
	border-radius: 5px;
	margin: 5px 0 10px;
}
#tp_group_sort_all a, #tp_group_sort_left a, #tp_group_sort_right a, #tp_group_sort_bottom a {
	font-weight: normal;
}

/* Grid */
#tp_main_box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"left right"
		"bottom bottom";
	gap: 1.25em;
}
/* Group Container */
.team_group_container {
	margin-bottom: 0.75em;
}
.team_group_container .information {
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25em;
}
.team_group_container div.title_bar + div.team_members {
	padding-top: 0.75em;
}
.team_group_description {

	flex-grow: 1;
}
#team_block_left {
	grid-area: left;
}
#team_block_right {
	grid-area: right;
}
#team_block_bottom {
	grid-area: bottom;
}

/* Members */
.team_members {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1em;
}
#tp_main_boards .team_members {
	grid-template-columns: 1fr 1fr;
}
#team_block_bottom .team_members {
	grid-template-columns: 1fr 1fr 1fr;
}
.team_members .windowbg {
	margin: 0;
}

/* Member */
.team_members img.teamuser_avatar {
	float: right;
	width: 64px;
	height: 64px;
	border-radius: 50%;
}
.team_members h4 {
	font-size: 1.15em;
}
.team_members h4 strong {
	font-size: 0.85em;
}
.team_members div.teamuser_info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.team_members div.teamuser_info span {
	display: flex;
	align-items: center;
	column-gap: 0.25em;
	flex-wrap: wrap;
}
.team_members div.teamuser_info span a {
	display: inline-flex;
	align-items: center;
}
div:where(#team_block_bottom) .team_members img.teamuser_avatar {
	width: 35px !important;
	height: 35px !important;
}

/* Responsive ez */
@media (max-width: 1200px) {
	#team_block_bottom .team_members {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 991px) {
	div:where(#team_block_left, #team_block_right, #team_block_bottom) .team_group_container .team_members,
	#tp_main_boards .team_members  {
		grid-template-columns: 1fr;
	}
	#tp_main_box {
		grid-template-columns: 1fr;
		grid-template-areas:
			"left"
			"right"
			"bottom";
	}
	#team_block_bottom .team_members {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 480px)
{
	.team_members img.teamuser_avatar  {
		display: none;
	}
}
