/* TOP NAVIGATION */
shy-header {
	flex-direction: column;
}

.header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	background-color: var(--color-header-background);
	z-index: 9999;
	
	&.mobile {
		flex: 1;
	}
	
	&.desktop {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		box-sizing: border-box;
	}
	
	.ticon-wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 0;
		position: absolute;
		bottom: 0;
		left: 1.25rem;
	}
	
	.buttons-left {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 0.25rem;
		margin-left: 6.5rem;
	}
	
	.buttons-right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 0.25rem;
	}

	.welcome-msg {
		flex: 1;
		text-align: left;
	}
}

.header-button {
	margin: 0.25rem;

	&.button {
		color: var(--color-header-button);
		background-color: var(--color-header-button-background);
		border: none;

		&:hover,
		&:active {
		color: var(--color-header-button--hover);
		background-color: var(--color-header-button-background--hover);
		}
	}

	&.icon-button {
		color: var(--color-header-button);

		&:hover,
		&:active {
			color: var(--color-header-button--hover);
		}
	}
}

/* prevents ticon from sticking out when shy header is closed */
.header-mobile-spacer {
	/* calculates half of tiny ticon height (= its diagonal) + some extra pixels*/
	height: calc((sqrt(48 * 48 * 2) * 0.5px) + 3px );
}

.header-menu {
	position: fixed;
	top: 2.75rem; /* height of mobile header */
	right: 0;
	transform: translateX(100%);
	transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.5rem;
	min-width: 10rem;
	max-width: 100%;
	background-color: var(--color-header-background);
	border-radius: 1rem 0 0 1rem;
	box-shadow: 0 0 0 0 transparent;
	box-sizing: border-box;
	z-index: 9999;

	&.show {
		transform: translateX(0);
		box-shadow: var(--box-shadow-medium);
	}
}

/* FORUM TITLE */
.forum-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 14rem;
	padding-bottom: 10rem;
	width: 75rem;
	max-width: 100%;
	
	
	.content {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		box-sizing: border-box;
		padding: 1rem;
	
		.forum-name {
			font-family: var(--font-secondary);
			color: var(--color-forum-title-name);
			font-size: 5rem;
			line-height: 0.9;
			letter-spacing: 1.5rem;
			text-shadow: 1px 1px 0px currentColor;
		}

		.forum-shortfacts {
			font-family: var(--font-primary);
			color: var(--color-forum-title-shortfacts);
			font-size: 0.875rem;
			letter-spacing: 0.5rem;
		}
	}
	
	@media (width >= 1920px) {
		width: 90rem;
	}
	
	@media (width <= 991px) {
		padding-top: 4rem;
		padding-bottom: 5rem;
		
		.content {
			background-color: var(--color-forum-title-mobile-background);
			
			.forum-name {
				font-size: 3rem;
				letter-spacing: 0.9rem;
			}
			
			.forum-shortfacts {
				font-size: 0.75rem;
				letter-spacing: 0.425rem;
			}
		}
	}
	
	@media (width <= 576px) {
		.content {
			.forum-name {
				font-size: 2.25rem;
				letter-spacing: 0.675rem;
			}
			
			.forum-shortfacts {
				letter-spacing: 0.25rem;
			}
		}
	}
}

/* LEFT SIDEBAR */
.info-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 2.75rem;
	background: var(--color-header-background);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 7.25rem 0.25rem;
	box-sizing: border-box;
	
	.icon-button.circle {
		&:nth-child(1) { --i: 0; }
		&:nth-child(2) { --i: 1; }
		&:nth-child(3) { --i: 2; }
		&:nth-child(4) { --i: 3; }
		&:nth-child(5) { --i: 4; }
		&:nth-child(6) { --i: 5; }
		&:nth-child(7) { --i: 6; }
		&:nth-child(8) { --i: 7; }
		
		--percent: calc(100% / 7 * var(--i));
	 	--inline-color: color-mix(in srgb, var(--color-accent), var(--color-text-accent) var(--percent)); 
		
		background-color: var(--inline-color);
		
		&:hover,
		&:active {
			background-color:  color-mix(in srgb, var(--inline-color), white 20%);
		}
	}
}

.forum-info {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	
	.info-box {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding: 1rem 0 1rem 1rem;
		background: var(--color-forum-info-box-background);
		border: 1px solid var(--color-forum-info-box-border);
		font-size: 0.875rem;
		box-sizing: border-box;
		height: 15rem;
		min-width: min(22rem, 100%);
		overflow: auto;
		
		.title-select {
			display: flex;
			justify-content: space-between;
			gap: 1rem;
			padding-right: 1rem;
		}
		
		.title {
			font-weight: 500;
			text-transform: uppercase;
			
			&.button {
				border: none;
				flex: 1;
				justify-content: center;
				
				&:first-child {
					justify-content: flex-start;
				}
				
				&:last-child {
					justify-content: flex-end;
				}
			}
		}
		
		.content {
			overflow: auto;
			padding-right: 1rem;
			
			&.team {
				display: flex;
				gap: 1rem;
				height: 100%;
				
				.team-member {
					height: 100%;
					flex: 1;
					display: flex;
					align-items: center;
					justify-content: center;
					background: var(--forum-background-image) bottom -3rem right / 45rem;
					border: 1px solid var(--color-forum-info-box-border);
					box-sizing: border-box;
					cursor: pointer;
					
					.username {
						font-family: var(--font-secondary);
						color: var(--color-secondary);
						font-size: 2rem;
						transform: rotate(-45deg);
						text-shadow: 0.5px 0.5px 0px currentColor;
					}
				}
			}
		}
	}
}

.forum-info-accordion {
	display: flex;
	flex-direction: column;
	background-color: var(--color-panel-background);
	border: 1px solid var(--color-panel-border);
	box-sizing: border-box;
	
	.accordion-title {
		padding: 0.5rem 1rem;
		text-align: center;
		font-family: var(--font-secondary);
		font-size: 2rem;
		letter-spacing: 0.5rem;
		line-height: 0.8;
		text-transform: lowercase;
	}
	
	.accordion-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-color: transparent;
		font-family: var(--font-primary);
		color: var(--color-text);
		font-weight: 500;
		text-transform: uppercase;
		padding: 0.5rem 1rem;
		border: none;
		cursor: pointer;
		
		&:hover {
			background-color: var(--color-primary-80);
		}
	}
	
	.accordion-content {
		max-height: 0;
		overflow: auto;
		transition: max-height 250ms ease-in-out;
		
		&.active {
			max-height: 10rem;
		}
		
		& > div {
			padding: 1rem;
			
			br:first-child {
				display: none;
			}
		}
		
		.team-member {
			height: 3.5rem;
			min-width: 5rem;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: center;
			background: var(--forum-background-image) bottom -3rem right / 45rem;
			border: 1px solid var(--color-forum-info-box-border);
			box-sizing: border-box;
			cursor: pointer;

			.username {
				font-family: var(--font-secondary);
				color: var(--color-secondary);
				font-size: 2rem;
				text-shadow: 0.5px 0.5px 0px currentColor;
			}	
		}
		
		.team {
			display: flex;
			flex-wrap: wrap;
			gap: 1rem;
			
			.member-wrapper {
				display: flex;
				flex: 1;
				gap: 1rem;
			}
			
		
		}
	}
}