/* =========================================================
   VISUALLY HIDDEN
   ========================================================= */

.library-home-visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   HOME SEARCH SECTION
   ========================================================= */

.library-home-search {
    position: relative;

    z-index: 2;

    padding:
            36px
            0
            28px;

    background:
            #ffffff;
}


/* =========================================================
   SEARCH CARD
   ========================================================= */

.library-home-search-card {
    padding:
            28px
            24px;

    border:
            1px
            solid
            #edf0f4;

    border-radius: 22px;

    background:
            #ffffff;

    box-shadow:
            0
            10px
            30px
            rgba(
                    27,
                    40,
                    60,
                    0.05
            );
}


/* =========================================================
   HEADING
   ========================================================= */

.library-home-search-heading {
    max-width: 720px;

    margin:
            0
            auto
            22px;

    text-align: center;
}


.library-home-search-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 7px;

    color: #d9367c;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-align: center;
}


.library-home-search-heading h2 {
    margin:
            0
            0
            7px;

    color: #15243a;

    font-size: 27px;
    font-weight: 800;

    line-height: 1.35;

    text-align: center;
}


.library-home-search-heading p {
    margin: 0;

    color: #747e8d;

    font-size: 14px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   FORM
   ========================================================= */

.library-home-search-form {
    display: grid;

    grid-template-columns:
        170px
        minmax(0, 1fr)
        118px;

    gap: 10px;

    max-width: 1000px;

    margin:
            0
            auto;
}


/* =========================================================
   SELECT / INPUT
   ========================================================= */

.library-home-search-type select,
.library-home-search-input input {
    width: 100%;
    height: 52px;

    border:
            1px
            solid
            #e0e5ec;

    border-radius: 14px;

    background:
            #ffffff;

    color: #263248;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;
}


.library-home-search-type select {
    padding:
            0
            38px
            0
            14px;

    font-weight: 700;
}


.library-home-search-input {
    position: relative;
}


.library-home-search-input input {
    padding:
            0
            16px
            0
            47px;
}


.library-home-search-input input::placeholder {
    color: #98a2b1;
}


/* =========================================================
   ICON
   ========================================================= */

.library-home-search-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #95a1b2;

    transform:
            translateY(
                    -50%
            );

    pointer-events: none;
}


/* =========================================================
   FOCUS
   ========================================================= */

.library-home-search-type select:focus,
.library-home-search-input input:focus {
    border-color:
            rgba(
                    217,
                    54,
                    124,
                    0.45
            );

    box-shadow:
            0
            0
            0
            4px
            rgba(
                    217,
                    54,
                    124,
                    0.07
            );
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.library-home-search-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    height: 52px;

    border: 0;

    border-radius: 14px;

    background:
            linear-gradient(
                    135deg,
                    #e34488,
                    #cc2b70
            );

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
            0
            9px
            21px
            rgba(
                    217,
                    54,
                    124,
                    0.21
            );

    transition:
            transform
            0.18s
            ease,
            box-shadow
            0.18s
            ease;
}


.library-home-search-button:hover {
    transform:
            translateY(
                    -1px
            );

    box-shadow:
            0
            12px
            25px
            rgba(
                    217,
                    54,
                    124,
                    0.27
            );
}


.library-home-search-button:disabled {
    opacity: 0.6;

    cursor: wait;
}


/* =========================================================
   RESULT WRAPPER
   ========================================================= */

.library-home-result {
    max-width: 1000px;

    margin:
            24px
            auto
            0;

    padding-top: 22px;

    border-top:
            1px
            solid
            #edf0f4;
}


/* =========================================================
   RESULT HEADER
   ========================================================= */

.library-home-result-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}


.library-home-result-header h3 {
    margin:
            0
            0
            3px;

    color: #16243a;

    font-size: 20px;
    font-weight: 800;
}


.library-home-result-header p {
    margin: 0;

    color: #808999;

    font-size: 12px;
}


.library-home-result-header p strong {
    color: #d9367c;
}


/* =========================================================
   SEE ALL
   ========================================================= */

.library-home-result-all {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding:
            0
            16px;

    border-radius: 11px;

    background: #15253d;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
            background
            0.18s
            ease,
            transform
            0.18s
            ease;
}


.library-home-result-all:hover {
    background: #d9367c;

    color: #ffffff !important;

    transform:
            translateY(
                    -1px
            );
}


/* =========================================================
   RESULT LIST
   ========================================================= */

.library-home-result-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                    0,
                    1fr
            )
        );

    gap: 9px;
}


/* =========================================================
   BOOK ITEM
   ========================================================= */

.library-home-book-item {
    display: grid;

    grid-template-columns:
        35px
        minmax(0, 1fr)
        55px;

    gap: 10px;

    align-items: center;

    min-width: 0;

    padding:
            12px
            13px;

    border:
            1px
            solid
            #e8ebf0;

    border-radius: 13px;

    background: #ffffff;

    transition:
            border-color
            0.18s
            ease,
            box-shadow
            0.18s
            ease,
            transform
            0.18s
            ease;
}


.library-home-book-item:hover {
    transform:
            translateY(
                    -1px
            );

    border-color:
            rgba(
                    217,
                    54,
                    124,
                    0.24
            );

    box-shadow:
            0
            7px
            20px
            rgba(
                    29,
                    38,
                    52,
                    0.055
            );
}


/* =========================================================
   NUMBER
   ========================================================= */

.library-home-book-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 10px;

    background: #fff0f6;

    color: #cf2f72;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   BOOK CONTENT
   ========================================================= */

.library-home-book-content {
    min-width: 0;
}


.library-home-book-content h4 {
    margin:
            0
            0
            6px;

    overflow: hidden;

    color: #1b283d;

    font-size: 13px;
    font-weight: 750;

    line-height: 1.45;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   BOOK META
   ========================================================= */

.library-home-book-meta {
    display: flex;

    gap: 6px;

    overflow: hidden;
}


.library-home-book-meta span {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    max-width: 55%;

    overflow: hidden;

    padding:
            3px
            6px;

    border-radius: 7px;

    background: #f7f8fa;

    color: #626c7b;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.library-home-book-meta small {
    color: #9aa2ae;

    font-size: 9px;
}


/* =========================================================
   COPY
   ========================================================= */

.library-home-book-copy {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.library-home-book-copy small {
    color: #9b864b;

    font-size: 8px;
}


.library-home-book-copy strong {
    color: #775d05;

    font-size: 15px;
}


/* =========================================================
   LOADING / EMPTY
   ========================================================= */

.library-home-result-loading,
.library-home-result-empty {
    padding:
            22px
            15px;

    border:
            1px
            solid
            #edf0f4;

    border-radius: 12px;

    background: #fafbfc;

    color: #7d8694;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media
(
max-width: 991px
) {

    .library-home-search-form {
        grid-template-columns:
            150px
            minmax(0, 1fr)
            110px;
    }


    .library-home-result-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media
(
max-width: 767px
) {

    .library-home-search {
        padding:
                25px
                0
                20px;
    }


    .library-home-search-card {
        padding:
                20px
                16px;

        border-radius: 18px;
    }


    .library-home-search-heading {
        margin-bottom: 17px;
    }


    .library-home-search-heading h2 {
        font-size: 22px;
    }


    .library-home-search-heading p {
        font-size: 13px;
    }


    .library-home-search-form {
        grid-template-columns: 1fr;
    }


    .library-home-search-type select,
    .library-home-search-input input,
    .library-home-search-button {
        height: 48px;
    }


    .library-home-result-header {
        align-items: flex-start;
    }


    .library-home-result-all {
        flex:
                0
                0
                auto;
    }


    .library-home-book-item {
        grid-template-columns:
            32px
            minmax(0, 1fr);
    }


    .library-home-book-copy {
        grid-column: 2;

        flex-direction: row;

        gap: 5px;

        justify-content: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media
(
max-width: 480px
) {

    .library-home-search-card {
        padding:
                18px
                14px;
    }


    .library-home-search-heading h2 {
        font-size: 20px;
    }


    .library-home-result-header {
        flex-direction: column;

        gap: 10px;
    }


    .library-home-result-all {
        width: 100%;
    }

}