@use '../utils' as *;

/*----------------------------------------*/
/*  2.2 Buttons
/*----------------------------------------*/

.#{$theme-prifix}-theme {
	&-btn {
		display: inline-block;
		font-weight: 700;
		font-size: 16px;
		padding: 17px 41px;
		border-radius: 50px;
		color: var(--tp-common-white);
		background-color: var(--tp-theme-1);
		@include tp-transition();

		@media #{$lg} {
			padding: 17px 35px;
		}

		&.btn-black {
			padding: 11px 41px;
			color: var(--tp-common-white);
			background-color: var(--tp-common-black);

			&:hover {
				color: var(--tp-common-white);
				background-color: var(--tp-theme-1);
			}
		}

		&.btn-white {
			&:hover {
				color: var(--tp-common-black);
				background-color: var(--tp-common-white);
			}
		}

		&.black {
			color: var(--tp-common-white);
			background: var(--tp-common-black);

			&:hover {
				color: var(--tp-common-black);
				background: var(--tp-common-white);
			}
		}

		&.transparent {
			&-btn {
				color: var(--tp-theme-1);
				background: none;
				border: 1px solid var(--tp-border-1);

				&:hover {
					border: 1px solid var(--tp-common-black);
				}

				&-2 {
					padding: 10px 40px;
					border: 1px solid #56646f;
					background: none;
					@include tp-transition();

					&:hover {
						border: 1px solid var(--tp-common-white);
						background-color: var(--tp-theme-1);
					}
				}
			}
		}

		&:hover {
			color: var(--tp-common-white);
			background-color: var(--tp-common-black);
		}
	}
}

.#{$theme-prifix}-menu {
	&-btn {
		position: relative;
		z-index: 1;
		line-height: 1;
		font-size: 15px;
		font-weight: 700;
		overflow: hidden;
		width: 128px;
		padding: 14px 20px;
		letter-spacing: 0px;
		display: inline-block;
		transition: all .3s linear;
		background: var(--tp-theme-1);
		color: var(--tp-common-white);

		&:hover {
			color: var(--tp-common-white);
		}

		&::after {
			position: absolute;
			content: "";
			background-color: var(--tp-common-black);
			width: 100%;
			height: 0%;
			left: 50%;
			top: 50%;
			border-radius: 0px;
			transform: translate(-50%, -50%) rotate(-45deg);
			z-index: -1;
			transition: all 500ms ease;
		}

		&:hover {
			&:after {
				height: 380%;
			}
		}

		&-green {
			background: var(--tp-theme-2);
		}

		&-black {
			background: var(--tp-common-black);

			&::after {
				background: var(--tp-theme-primary);
			}
		}

	}
}