@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Jost:ital,wght@0,100..900;1,100..900&family=League+Spartan:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

@import 'partials/gsb-variables.scss';
@import 'partials/common.scss';
@import 'partials/popup.scss';
@import 'partials/grid.scss';
@import 'partials/horizontal.scss';
@import 'partials/single-pages.scss';
@import 'partials/author-single.scss';
@import 'partials/gsb-authors.scss';
@import 'partials/gsb-archive.scss';
@import 'partials/slider.scss';
@import 'partials/gsb-widget.scss';
@import 'partials/responsive.scss';


.gs-multi-select--wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
	width: 100%;
	position: relative;
	padding-right: 24px;
}

.gs-multi-select--arrow {
	position: absolute;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM2MjYzNmYiIGQ9Ik01LjI5MyA5LjcwN2w2IDZjMC4zOTEgMC4zOTEgMS4wMjQgMC4zOTEgMS40MTQgMGw2LTZjMC4zOTEtMC4zOTEgMC4zOTEtMS4wMjQgMC0xLjQxNHMtMS4wMjQtMC4zOTEtMS40MTQgMGwtNS4yOTMgNS4yOTMtNS4yOTMtNS4yOTNjLTAuMzkxLTAuMzkxLTEuMDI0LTAuMzkxLTEuNDE0IDBzLTAuMzkxIDEuMDI0IDAgMS40MTR6Ij48L3BhdGg+PC9zdmc+) !important;
	width: 20px;
	height: 20px;
	top: 17px;
	right: 10px;
	background-size: 18px !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	transform: rotate(0deg) !important;
	opacity: .6;
	transition: all .15s ease-in-out;
}

.gs-mu-select--has-value .gs-multi-select--arrow {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiIGZpbGw9IiM2MjYzNmYiPgo8cGF0aCBkPSJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6Ij48L3BhdGg+Cjwvc3ZnPg==) !important;
	transform: rotate(0deg) !important;
}

.gs-multi-select--bar {
    line-height: 1.3;
    color: #999;
    font-size: 16px;
	width: 100%;
	user-select: none;
	padding: 16px;
	cursor: pointer;

	&:hover {
		.gs-multi-select--arrow {
			opacity: 1;
		}
	}
}

.gs-text-ellipsis {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
	display: block;
}

.gs-multi-select--options {
    position: absolute;
    background: #fff;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 9;
    padding: 16px;
    box-shadow: 0px 0px 0px 1px #ddd;
    visibility: hidden;
	opacity: 0;
	max-height: 260px;
    overflow: hidden;
    overflow-y: auto;
	transition: all .15s ease-in-out;
}

.gs-select--open {
	
	.gs-multi-select--options {
		visibility: visible;
		opacity: 1;
	}

	.gs-multi-select--arrow {
		transform: rotate(-90deg) !important;
	}

}

.gs-multi-select--single {

	display: block;

	&:not(:last-child) {
		margin-bottom: 14px;
	}
	
	label {
		display: flex;
		align-items: center;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		outline: none !important;
		box-shadow: none !important;
		cursor: pointer;
		user-select: none;

		span.gs-select--indicator {
			width: 24px;
			height: 24px;
			background: #fff;
			border-radius: 2px;
			margin-right: 10px;
			border: 1px solid rgba(0, 0, 0, .15);
			transition: all .15s ease-in-out;
			position: relative;

			&:after {
				content: "";
				position: absolute;
				background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxwYXRoIGZpbGw9IiNmZmZmZmYiIGQ9Ik0yOC45OTggOC41MzFsLTIuMTM0LTIuMTM0Yy0wLjM5NC0wLjM5My0xLjAzMC0wLjM5My0xLjQyMyAwbC0xMi43OTUgMTIuNzk1LTYuMDg2LTYuMTNjLTAuMzkzLTAuMzkzLTEuMDI5LTAuMzkzLTEuNDIzIDBsLTIuMTM0IDIuMTM0Yy0wLjM5MyAwLjM5NC0wLjM5MyAxLjAzMCAwIDEuNDIzbDguOTI0IDguOTg0YzAuMzkzIDAuMzkzIDEuMDMwIDAuMzkzIDEuNDIzIDBsMTUuNjQ4LTE1LjY0OWMwLjM5My0wLjM5MiAwLjM5My0xLjAzMCAwLTEuNDIzeiI+PC9wYXRoPjwvc3ZnPg==) !important;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				background-size: 14px !important;
				background-repeat: no-repeat !important;
				background-position: center !important;
				opacity: 0;
				transition: all .15s ease-in-out;
			}
		}

		input:checked + span.gs-select--indicator {
			background-color: #62636f !important;
			border-color: #62636f !important;
			&:after {
				opacity: 1;
			}
		}

	}

	&:hover {
		span.gs-select--indicator {
			border-color: rgba(0, 0, 0, .5);
		}
	}

}

.gs_bookshowcase_area {
	line-height: 1.5;
	margin: 0px auto !important; // gutenberg editor fix
	width: 100%;

	table {
		margin: 16px 0px;
	}

	img {
		height: auto;
	}

	a {
		&, &:hover, &:focus {
			border: none;
			outline: none !important;
		}
	}

	&.gs-book--img-efect_none {
		.gs_book--image {
			filter: none;
		}
	}
	
	&.gs-book--img-efect_blur {
		.gs_book--image {
			filter: blur(7px) brightness(1) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
		}
	}
	
	&.gs-book--img-efect_brightness {
		.gs_book--image {
			filter: blur(0) brightness(0.5) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
		}
	}
	
	&.gs-book--img-efect_contrast {
		.gs_book--image {
			filter: blur(0) brightness(1) contrast(0.5) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
		}
	}
	



	&.gs-book--img-efect_opacity {
		.gs_book--image {
			filter: blur(0) brightness(1) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(0.5) saturate(1) sepia(0);
		}
	}
	


	// Grayscale, Hue Rotate, Invert, Saturate and Sepia are Pro: their styles ship with GS Books Showcase Pro.

	// Hover
	&.gs-book--img-hover-efect_none {
		.single-bookshowcase {
			&:hover {
				.gs_book--image {
					filter: none;
				}
			} 
		}
	}

	&.gs-book--img-hover-efect_blur {
		.single-bookshowcase {
			&:hover {
				.gs_book--image {
					filter: blur(7px) brightness(1) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
				}
			}
		}
	}

	&.gs-book--img-hover-efect_brightness {
		.single-bookshowcase {
			&:hover {
				.gs_book--image {
					filter: blur(0) brightness(0.5) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
				}
			}
		}
	}

	&.gs-book--img-hover-efect_contrast {
		.single-bookshowcase {
			&:hover {
				.gs_book--image {
					filter: blur(0) brightness(1) contrast(0.5) grayscale(0) hue-rotate(0deg) invert(0) opacity(1) saturate(1) sepia(0);
				}
			}
		}
	}




	&.gs-book--img-hover-efect_opacity {
		.single-bookshowcase {
			&:hover {
				.gs_book--image {
					filter: blur(0) brightness(1) contrast(1) grayscale(0) hue-rotate(0deg) invert(0) opacity(0.5) saturate(1) sepia(0);
				}
			}
		}
	}



	.gs-books-pagination {
	
		text-align: center;
		margin: 20px 0;

		.page-numbers {
			color: #1888e8;
			text-decoration: none;
			background-color: #fff;
			border: none;
			padding: 5px 10px;
			margin: 0 3px;
			font-weight: 400;
			box-shadow: none;
			line-height: 1;
			min-width: 34px;
			height: 34px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			font-size: 15px;
			border-radius: 2px;
			box-shadow: 0px 0px 30px rgba(89, 98, 107, 0.28);
			transition: all .25s ease;
		
			&:hover, &.current {
				background-color: #1888e8;
				color: #fff;
			}

		}

	}

	.gs-roow.gs_bookshowcase {
		transition: opacity 0.32s ease, transform 0.32s ease;
		will-change: opacity, transform;
	}

	&.gsb-pagination-loading {
		pointer-events: none;
	}

	&.gsb-pag-anim--none {
		.gs-roow.gs_bookshowcase {
			transition: none;
		}

		&.gsb-pagination-loading .gs-roow.gs_bookshowcase {
			opacity: 1;
			transform: none;
		}
	}

	&.gsb-pag-anim--fade.gsb-pagination-loading .gs-roow.gs_bookshowcase {
		opacity: 0.28;
	}

	&.gsb-pag-anim--fade-up.gsb-pagination-loading .gs-roow.gs_bookshowcase {
		opacity: 0;
		transform: translateY(14px);
	}

	&.gsb-pag-anim--slide.gsb-pagination-loading {
		&[data-gsb-pag-dir="next"] .gs-roow.gs_bookshowcase,
		&:not([data-gsb-pag-dir]) .gs-roow.gs_bookshowcase {
			opacity: 0;
			transform: translateX(-20px);
		}

		&[data-gsb-pag-dir="prev"] .gs-roow.gs_bookshowcase {
			opacity: 0;
			transform: translateX(20px);
		}
	}

}

// THumb slider CSS
.gsp-thumb-slider {

	.swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
		background-size: cover;
        background-position: center;

		img {
			display: block;
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
    }

	.mySwiper2 {
		height: 80%;
		width: 100%;
    }

    .mySwiper {
		height: 20%;
		box-sizing: border-box;
		padding: 10px 0;
    }

	.mySwiper .swiper-slide {
		width: 25%;
		height: 100%;
		opacity: 0.4;
	}

   .mySwiper .swiper-slide-thumb-active {
 		opacity: 1;
   	}

	.swiper-slide img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

}

.gs-single-container .swiper-wrapper .gsb-related-book.swiper-slide {
	padding-left: 0;
	padding-right: 0;
}


// Archive Template CSS

.gsbk-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.gsbk-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.gsbk-archive-header {
    margin: 0 0 32px;
    text-align: center;

    .gsbk-archive-heading {
        margin: 0;
        font-size: clamp(28px, 3vw, 40px);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .gsbk-archive-count {
        margin: 8px 0 0;
        font-size: 15px;
        color: #6b7280;
    }
}

.gsbk-archive-grid {
    display: grid;
    gap: 24px;
}

@media (min-width:480px){
    .gsbk-archive-grid{grid-template-columns:repeat(2,1fr);}
}

@media (min-width:768px){
    .gsbk-archive-grid{grid-template-columns:repeat(3,1fr);}
}

// Three columns at most, so each cover stays large.
@media (min-width:1024px){
    .gsbk-archive-grid{gap:32px;}
}

/* Card */
.gsbk-archive-card{
    background:#fff;
    border:1px solid #eaeaea;
    border-radius:8px;
    overflow:hidden;
    transition:.2s ease;
    display:flex;
    flex-direction:column;
}

.gsbk-archive-card:hover{
    border-color:#c4b5fd;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

/* Thumbnail */
.gsbk-archive-thumbnail{
    position:relative;
    padding-top:150%; // Book covers are 2:3.
    background:#f5f5f5;
}

.gsbk-archive-thumbnail a{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.gsbk-archive-thumbnail img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}

.gsbk-archive-card:hover .gsbk-archive-thumbnail img{
    transform:scale(1.03);
}

// Book without a cover: a soft placeholder with a book icon, same 2:3 size as a cover.
.gsbk-archive-thumbnail--empty{
    background:linear-gradient(160deg,#f1f0fb 0%,#e6e8f5 100%);
}

.gsbk-archive-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#9aa0c3;
}

/* Content */
.gsbk-archive-content{
    padding:20px 15px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1;
}

// Read More lines up along the bottom of each row.
.gsbk-archive-content .gsbk-read-more{
    margin-top:auto;
}

.gsbk-archive-title{
    margin:0;
    font-size:1.2rem;
}

.gsbk-archive-title a{
    text-decoration:none;
    color:#333;
    font-weight:600;
}

.gsbk-archive-title a:hover{
    color:#6d28d9;
}

.gsbk-archive-excerpt{
    font-size:.9rem;
    line-height:1.6;
    color:#666;
}

.gsbk-read-more{
    margin-top:6px;
}

.gsbk-read-more-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#6d28d9;
    text-decoration:none;
    font-size:.85rem;
    font-weight:500;
}

.gsbk-read-more-link:hover{
    color:#5b21b6;
    gap:8px;
}

.gsbk-read-more-arrow{
    font-size:1.1rem;
}

.gsbk-no-books{
    text-align:center;
    padding:50px 20px;
    background:#f9f9f9;
    border-radius:8px;
}
// Empty state when a shortcode has no books to show (same design as GS Logo Slider).
.gs_books_empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 28px;
	border: 1px dashed #d5dae3;
	border-radius: 12px;
	background: #fafbfc;
	text-align: center;

	.gs_books_empty--icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		margin-bottom: 16px;
		border-radius: 14px;
		background: #eef0fd;
		color: #5e6be5;
	}

	.gs_books_empty--title {
		margin: 0 0 6px;
		padding: 0;
		color: #16213f;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.3;
	}

	.gs_books_empty--text {
		margin: 0;
		padding: 0;
		color: #5b6678;
		font-size: 14px;
		line-height: 1.55;
	}

	.gs_books_empty--actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		margin-top: 18px;
	}

	a.gs_books_empty--btn {
		padding: 9px 16px;
		border: 1px solid #5e6be5;
		border-radius: 8px;
		background: #5e6be5;
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.4;
		text-decoration: none;
		box-shadow: none;

		&:hover,
		&:focus {
			border-color: #4a57d3;
			background: #4a57d3;
			color: #fff;
		}

		&.is-secondary {
			border-color: #d5dae3;
			background: #fff;
			color: #16213f;

			&:hover,
			&:focus {
				border-color: #16213f;
				background: #fff;
				color: #16213f;
			}
		}
	}
}
