// =============================================================================
// :: Settings
// =============================================================================
$borderWidth: 0.7rem;

// =============================================================================
// :: Guide
// =============================================================================
// .c-guide {}

// =============================================================================
// :: Elements
// =============================================================================
.c-guide__questions {
	@include extend-list-clear();

	@include respond-at(get-breakpoint("tablet")) {
		border-left: $border-width-1x-small solid $border-color-grey;
	}
}

.c-guide__container {
	overflow: hidden;
}

.c-guide__grid {
	@include respond-to(get-breakpoint("tablet")) {
		display: flex;
		flex-direction: row;
		width: calc(200% + 2rem);
		margin: 4.2rem 0 0;

		transform: translateX((0));

		transition: transform 0.3s ease-in-out;
	}

	@include respond-at(get-breakpoint("tablet")) {
		margin-top: 8.5rem;
		margin-bottom: 8.5rem;
	}
}

.c-guide__aside,
.c-guide__content {
	@include respond-to(get-breakpoint("tablet")) {
		width: 50%;
		margin: 0 !important; /* stylelint-disable-line */
	}
}

.c-guide__questions-item {
	position: relative;

	@include respond-to(get-breakpoint("tablet")) {
		padding-right: 2rem;
	}

	@include respond-at(get-breakpoint("tablet")) {
		padding-left: 3rem;
	}

	&:last-child {
		margin-bottom: 0;
	}

	&::before {
		display: none;

		@include respond-at(get-breakpoint("tablet")) {
			content: "";

			position: absolute;
			top: 0;
			left: calc(#{$borderWidth} * -0.5);

			display: block;
			width: $borderWidth;
			height: 100%;

			opacity: 0;

			background-color: $background-color-purple;
			border: none;
			border-radius: $border-radius-base;

			transition: opacity 0.3s ease-in-out;
		}
	}

	&:hover {

		&::before {
			opacity: 1;
		}
	}
}

/**
 * Adjust collapsable within guide component
 */
.c-guide__questions-collapse {
	border-bottom: none;

	.c-collapse__title {
		@include extend-h4-base();

		color: $secondary-color-purple;
	}

	.c-collapse__icon {

		@include respond-to(get-breakpoint("tablet")) {
			display: none;
		}
	}

	.c-collapse__content {

		@include respond-to(get-breakpoint("tablet")) {
			height: auto;
		}
	}
}

.c-guide__content {
	position: relative;
}

.c-guide__content-list {
	@include extend-list-clear();

	position: absolute;
	top: 10.5rem;
	left: 0;

	opacity: 0;

	transition: opacity 0.3s ease-in-out;

	pointer-events: none;

	@include respond-at(get-breakpoint("tablet")) {
		top: 0;
	}
}

.c-guide__item-title {
	margin-bottom: 2rem;

	font-family: $font-family-primary;
	font-size: $font-size-1x-large;

	color: $text-color-highlight;
}

.c-guide__item {
	padding-top: 5rem;
	padding-bottom: 5rem;

	border-bottom: $border-width-base solid $border-color-medium;

	&:first-child {
		padding-top: 0;
	}

	&:last-child {
		border-bottom: 0;
	}
}

.c-guide__content-button {
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 4rem;
	padding: 2rem 1.5rem;

	background-color: $background-color-base;
	border: none;
	border-radius: $border-radius-2x-small;

	box-shadow: 0 1.3rem 4rem -1rem $box-shadow-color-light;
}

.c-guide__content-button-text {
	margin-left: 1.2rem;

	font-family: $font-family-primary;
	font-size: $font-size-2x-small;
	font-weight: $font-weight-medium;

	color: $text-color-base;
}

.c-guide__icon-wrapper,
.c-guide__questions-icon-wrapper {
	display: flex;
	justify-content: center;
	align-content: center;
	width: 2.5rem;
	height: 2.5rem;

	background-color: $background-color-pink;
	border: none;
	border-radius: $border-radius-base;
}

.c-guide__icon,
.c-guide__questions-icon {
	align-self: center;

	font-size: $font-size-2x-small;

	color: $text-color-light;
}

.c-guide__questions-icon-wrapper {
	position: absolute;
	top: 2rem;
	right: 2rem;
}

// =============================================================================
// :: Elements
// =============================================================================
.c-guide__content-list {

	&.is-active {
		opacity: 1;

		pointer-events: auto;

		@include respond-at(get-breakpoint("tablet")) {
			position: relative;
		}
	}
}

.c-guide__questions-item {

	&.is-active {

		&::before {
			opacity: 1;
		}
	}
}

.c-guide__grid {

	&.is-open {

		@include respond-to(get-breakpoint("tablet")) {
			transform: translateX((-50%));
		}

		.c-guide__content-list.is-active {

			@include respond-to(get-breakpoint("tablet")) {
				position: relative;
				top: 0;
			}
		}
	}
}
