/* Gsb Grid One (Manzur)
======================*/

.style-01 {
    --gsb-title-font-family: "Playfair Display", serif;
    --gsb-title--hover-color: #7948FF;

    .gs_bookshowcase {
        
        .single-bookshowcase {
    
            .gsb-cover-wrapper {

                a {
                    .gsbooks--book-thumb:after {
                        padding-bottom: 152%;
                    }
                }
            }
    
            .gsb-desc {
    
                p {
                    position: relative;
                    line-height: 1.6;
                    padding-left: 13px !important;
                    transition: .5s;
    
                    &:after {
                        position: absolute;
                        content: "";
                        left: 0;
                        top: 12%;
                        width: 3px;
                        height: 80%;
                        background: #7948ff;
                        transition: .5s;
                    }
                }
            }
    
            &:hover {
                .gsb-cover-wrapper img {
                    transform: scale(1.2);
                }
    
                .gsb-desc {
    
                    p:after {
                        height: 0;
                    }
                }
            }
        }
    }
}

.gs_book_theme1 {
    --gsb-title-font-family: "Hind", system-ui;
    --gsb-title-font-weight: 600;
    --gsb-title-color: #030D1E;
    // --gsb-title--hover-color: #ffffff;
    --gsb-author-font-family: "Hind", system-ui;
    --gsb-author-color: #0B;
    --gsb--readmore-color: #0BC;
    --gsb-desc-color: #ffffff;
    // --gsb-info-color: #181818;

    .gs-book--scrollbar {
        &::-webkit-scrollbar-thumb {
            background-color: #ff4c4c;
        }
    }

    .gs_bookshowcase {

        .single-bookshowcase {
            margin-bottom: 32px;
            overflow: hidden;
            position: relative;
    
            /* Flip Front */
            .bookshowcase-top {
                position: relative;
                overflow: hidden;

                /* Flip Back */
                .bookshowcase-back {
                    text-align: center;
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left: 0;
                    right: 0;
                    top: 0;
                    padding: 32px 16px 0;
                    transition: .5s;
                    background: rgba(70, 97, 157, 0.9);
                    transform: translateY(100px);
                    z-index: 999;
                    overflow: hidden auto;
                    transition: all .25s ease-in-out;
                    opacity: 0;
                    visibility: hidden;
                }
            }

            .bookshowcase-buttom {
                text-align: center;
                padding: 24px 16px;
                transition: all .25s;
            }

            .bookshowcase-back {

                .gsb-book-info-wrapper {

                    .gsb-title {
                        
                        h3 {
                            
                            a {
                                color: #fff !important;
                            }
                        }
                    }
                }
            }

            .gsb-desc {

                p {
                    text-align: center;
                }
            }

            .gsb-info-lavel {
                color: #ffffff !important;
            }

            .gsb-info-value,
            .gsb-info-value a {
                color: #c3c3c3 !important;
            }
    
            &:hover {
    
                .bookshowcase-back {
                    transform: translateX(0);
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }
}


/* =========================================================================
   Theme 01 (Square): hover panel
   Dark gradient, content centred vertically, readable text, date pill and
   an underlined More link.
   ========================================================================= */
.gs_book_theme1 .gs_bookshowcase .single-bookshowcase {

    .bookshowcase-top .bookshowcase-back {
        display: flex;
        flex-direction: column;
        padding: 28px 24px;
        background: linear-gradient(160deg, rgba(23, 27, 48, 0.94) 0%, rgba(38, 32, 76, 0.94) 100%);
        backdrop-filter: blur(2px);
        transform: translateY(24px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s;

        // Centres the content, and still lets long text scroll from the top.
        .gsb-book-info-wrapper {
            margin: auto 0;
            padding: 0;
        }
    }

    &:hover .bookshowcase-top .bookshowcase-back,
    &:focus-within .bookshowcase-top .bookshowcase-back {
        transform: translateY(0);
    }

    .bookshowcase-back {

        .gsb-desc p {
            margin: 0;
            font-size: 15px;
            line-height: 1.65;
            color: rgba(255, 255, 255, 0.88);
            text-align: center;
        }

        .gsb-more-link {
            margin-left: 2px;
            color: #ffffff;
            font-weight: 600;
            text-decoration: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.45);
            transition: border-color .2s ease, color .2s ease;

            &:hover,
            &:focus {
                color: #c4b5fd;
                border-bottom-color: #c4b5fd;
            }
        }

        p.gsb-publish-date {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            // !important beats the plugin's ".single-bookshowcase p" reset.
            margin: 22px 0 0 !important;
            padding: 9px 18px !important;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.16);
            font-size: 13px;
            line-height: 1.4;

            .gsb-publish-date__icon {
                flex: 0 0 14px;
                color: #c4b5fd;
            }

            .gsb-info-lavel {
                color: rgba(255, 255, 255, 0.7) !important;
                font-weight: 500;
            }

            .gsb-info-value {
                color: #ffffff !important;
                font-weight: 600;
            }
        }
    }
}
