// =================================================================
// Sample Styles - Configurable
// =================================================================
//
//
// Styles in this file should mainly be for layout, width, etc that are
// not able to be overwritten by the variables in the global sass array
//
//

//stat layout styles
.wp-block-bu-stats {
	margin-bottom: 2em;
	clear: both;
}

.wp-block-bu-stats-caption {
	text-align: center;
	font-size: 0.8em;
}

.wp-block-bu-stats-row {
	@extend %row-styles;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	// width: 100%;
}

.has-1-stats,
.has-2-stats,
.has-3-stats,
.has-4-stats {
	.wp-block-bu-stat {
		@extend %row-child-styles;
		@extend %col-8;

		float: none;
	}
}

.has-1-stats {
	.wp-block-bu-stat {
		@extend %col-xs-6;
	}
}

.has-2-stats {
	.wp-block-bu-stat {
		@extend %col-xs-6;
	}
}

.has-3-stats {
	.wp-block-bu-stat {
		@extend %col-xs-6;
		@extend %col-sm-4;
	}
}

.has-4-stats {
	.wp-block-bu-stat {
		@extend %col-xs-6;
		@extend %col-lg-3;
	}
}

.wp-block-bu-stat {
	margin-bottom: 1.5em;
	text-align: center;
}

.wp-block-bu-stats.has-1-stats.alignleft,
.wp-block-bu-stats.has-1-stats.alignright {
	@include breakpoint( $xs ) {
		width: 300px;
	}

	@include breakpoint( $sm ) {
		width: 350px;
	}

	// @include breakpoint( $md ) {
	// 	width: 400px;
	// }

	.wp-block-bu-stats-caption {
		text-align: left;
	}

	.wp-block-bu-stats-row {
		width: auto;
	}

	.wp-block-bu-stat {
		@include breakpoint( $xs ) {
			width: 100%;
		}
	}
}

/////////////////////////
// circle specific styles
/////////////////////////

.wp-block-bu-stat-container-outer {
	position: relative;

	&::before {
		content: "";
		display: block;
		position: relative;
		padding-top: 100%;

	}
}

.wp-block-bu-stat-container-inner {
	align-items: center;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	left: 0;
	position:absolute;
	right: 0;
	top: 0;
}

.wp-block-bu-stat-text-pre,
.wp-block-bu-stat-text-post,
.wp-block-bu-stat-number {
	line-height: 1em;
	transform: translatey(7.5%);
	z-index: 1;
}

.wp-block-bu-stat-text-pre,
.wp-block-bu-stat-text-post {
	font-size: 0.8em
}

.wp-block-bu-stat-text-pre {
	width: 66%;
}

.wp-block-bu-stat-text-post {
	width: 50%;
}

.wp-block-bu-stat-number {
	font-size: 2.5em;
	font-weight: 700;
}

svg.wp-block-bu-stat-svg {
	height: 100%;
	left: 0;
	overflow: visible;
	position: absolute;
	top: 0;
	transform: rotate(-90deg);
	width: 100%;
}

.wp-block-bu-stat-circle1,
.wp-block-bu-stat-circle2 {
	cx: 50;
	cy: 50;
	fill: transparent;
	stroke-linecap: round;
	r: 47;
	stroke: #000;
	stroke-dasharray: 302;
	stroke-width: 4;
}

.wp-block-bu-stat-circle1 {
	stroke-width: 4;
}

.wp-block-bu-stat-circle2 {
	stroke-width: 5;
}

.wp-block-bu-stat-number {
	font-size: 3em;

	@include breakpoint( $xs ) {
		font-size: 3em;
	}

	@include breakpoint( $sm ) {
		font-size: 3.75em;
	}

	@include breakpoint( $md ) {
		font-size: 5em;
	}

	@include breakpoint( $lg ) {
		font-size: 4.5em;
	}
}

.has-number-size-1 {
	.wp-block-bu-stat-number {
		font-size: 4.25em;

		@include breakpoint( $xs ) {
			font-size: 4em;
		}

		@include breakpoint( $sm ) {
			font-size: 5em;
		}

		@include breakpoint( $md ) {
			font-size: 6em;
		}

		@include breakpoint( $lg ) {
			font-size: 5.5em;
		}
	}
}

.has-number-size-3 {
	.wp-block-bu-stat-number {
		font-size: 2.75em;

		@include breakpoint( $xs ) {
			font-size: 2.5em;
		}

		@include breakpoint( $sm ) {
			font-size: 3.25em;
		}

		@include breakpoint( $md ) {
			font-size: 4em;
		}

		@include breakpoint( $lg ) {
			font-size: 3.75em;
		}
	}
}

.has-number-size-4 {
	.wp-block-bu-stat-number {
		font-size: 1.75em;

		@include breakpoint( $xs ) {
			font-size: 2em;
		}

		@include breakpoint( $sm ) {
			font-size: 2.5em;
		}

		@include breakpoint( $md ) {
			font-size: 3.25em;
		}

		@include breakpoint( $lg ) {
			font-size: 3em;
		}
	}
}


.has-3-stats {
	// .is-style-circle {
		.wp-block-bu-stat-number {
			font-size: 2.5em;

			@include breakpoint( $xs ) {
				font-size: 3em;
			}

			@include breakpoint( $sm ) {
				font-size: 2.25em;
			}

			@include breakpoint( $md ) {
				font-size: 3em;
			}

			@include breakpoint( $lg ) {
				font-size: 2.5em;
			}
		}

		&.has-number-size-1 {
			.wp-block-bu-stat-number {
				font-size: 4em;

				@include breakpoint( $xs ) {
					font-size: 4em;
				}

				@include breakpoint( $sm ) {
					font-size: 3.5em;
				}

				@include breakpoint( $md ) {
					font-size: 4em;
				}

				@include breakpoint( $lg ) {
					font-size: 3.5em;
				}
			}
		}

		&.has-number-size-2 {
		}

		&.has-number-size-3 {
			.wp-block-bu-stat-number {
				font-size: 2em;

				@include breakpoint( $xs ) {
					font-size: 2.5em;
				}

				@include breakpoint( $sm ) {
					font-size: 2em;
				}

				@include breakpoint( $md ) {
					font-size: 2.5em;
				}

				@include breakpoint( $lg ) {
					font-size: 2.25em;
				}
			}
		}

		&.has-number-size-4 {
			.wp-block-bu-stat-number {
				font-size: 1.5em;

				@include breakpoint( $xs ) {
					font-size: 1.75em;
				}

				@include breakpoint( $sm ) {
					font-size: 1.5em;
				}

				@include breakpoint( $md ) {
					font-size: 2em;
				}

				@include breakpoint( $lg ) {
					font-size: 1.75em;
				}
			}
		}
	// }
}

.has-4-stats {
	.wp-block-bu-stat-number {
		font-size: 2.5em;

		@include breakpoint( $xs ) {
			font-size: 3em;
		}

		@include breakpoint( $sm ) {
			font-size: 4em;
		}

		@include breakpoint( $md ) {
			font-size: 5em;
		}

		@include breakpoint( $lg ) {
			font-size: 2em;
		}
	}

	&.has-number-size-1 {
		.wp-block-bu-stat-number {
			font-size: 4em;

			@include breakpoint( $xs ) {
				font-size: 4.5em;
			}

			@include breakpoint( $sm ) {
				font-size: 5em;
			}

			@include breakpoint( $md ) {
				font-size: 6em;
			}

			@include breakpoint( $lg ) {
				font-size: 3em;
			}
		}
	}

	&.has-number-size-2 {
	}

	&.has-number-size-3 {
		.wp-block-bu-stat-number {
			font-size: 2em;

			@include breakpoint( $xs ) {
				font-size: 2.5em;
			}

			@include breakpoint( $sm ) {
				font-size: 3em;
			}

			@include breakpoint( $md ) {
				font-size: 4em;
			}

			@include breakpoint( $lg ) {
				font-size: 1.75em;
			}
		}
	}

	&.has-number-size-4 {
		.wp-block-bu-stat-number {
			font-size: 1.5em;

			@include breakpoint( $xs ) {
				font-size: 1.75em;
			}

			@include breakpoint( $sm ) {
				font-size: 2em;
			}

			@include breakpoint( $md ) {
				font-size: 3em;
			}

			@include breakpoint( $lg ) {
				font-size: 1.25em;
			}
		}
	}
}