@import '../../../style/mixins.scss';

.header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	padding: 0 20px;
	height: 60px;
	background-color: #ffffff;
	box-shadow: 0 5px 5px #00000010;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;

	@include mobile {
		flex-direction: column;
		align-items: stretch;
		padding: 20px 0;
		height: 100vh;
		box-shadow: none;
		overflow: hidden;
		width: 0;
		transition: width 0.3s ease-out;

		&_open {
			width: 100vw;
		}
	}

	&_mobile {
		display: none;

		@include mobile {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: flex-start;
			padding: 0 20px;
			height: 60px;
			background-color: #ffffff;
			box-shadow: 0 5px 5px #00000010;
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			z-index: 999;

			&_hamburger {
				display: block;
				cursor: pointer;
				background: url('../../../res/hamburger_dark.png') center center;
				background-size: contain;
				width: 40px;
				height: 40px;
				margin-right: 30px;
			}

			&_icon {
				height: 80%;
			}
		}

		&_close {
			display: none;

			@include mobile {
				display: block;
				cursor: pointer;
				background: url('../../../res/back.png') center center;
				background-size: contain;
				width: 40px;
				height: 40px;
				margin-bottom: 20px;
				margin-left: 20px;
			}
		}

		&_submenu {
			display: none;

			@include mobile {
				margin-left: 50px;
				display: block;
				height: 0;
				overflow: hidden;
				transition: height 0.3s ease-out;

				&_open {
					height: 290px;
				}
			}
		}
	}

	&_icon {
		height: 80%;
		margin-right: 30px;
		cursor: pointer;

		@include mobile {
			height: 80px;
			margin: 0 auto;
		}
	}

	&_item {
		box-sizing: border-box;
		font-size: 26px;
		font-weight: bold;
		line-height: 35px;
		padding: 0 30px;
		text-align: center;
		color: #0072bc;
		cursor: pointer;
		height: 100%;
		display: flex;
		align-items: center;
		border-bottom: 5px solid transparent;
		padding-top: 5px;

		@include mobile {
			height: 80px;
			border-bottom: none;
			border-left: 5px solid transparent;
		}

		&:hover {
			background-color: #0072bc10;
		}

		&_active {
			border-bottom: 5px solid #0072bc;

			@include mobile {
				border-bottom: none;
				border-left: 5px solid #0072bc;
			}
		}
	}
}
