/* =========================================================
   YalpDev.com — KANDA
   Bibliothèque de livres
========================================================= */

:root {
    --orange: #ee812c;
    --orange-dark: #d96f20;
    --orange-light: #fff3e9;

    --navy: #0f172a;
    --navy-soft: #172033;

    --text: #18202f;
    --muted: #64748b;

    --white: #ffffff;
    --background: #f7f8fa;

    --border: #e5e7eb;

    --shadow-sm: 0 6px 20px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 35px rgba(15, 23, 42, .10);

    --radius: 16px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.catalog-header {
    position: relative;

    overflow: hidden;

    padding: 32px 0 70px;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-soft)
        );

    color: #fff;
}

.catalog-header::after {
    content: "";

    position: absolute;

    right: -100px;
    bottom: -150px;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        rgba(238,129,44,.08);
}

.catalog-header .container {
    position: relative;
    z-index: 2;
}


/* BREADCRUMB */

.breadcrumb-custom {
    margin-bottom: 45px;

    display: flex;
    align-items: center;

    gap: 9px;

    color: rgba(255,255,255,.55);

    font-size: 14px;
}

.breadcrumb-custom a {
    color: var(--orange);

    font-weight: 600;
}

.breadcrumb-custom i {
    font-size: 10px;
}


/* LABEL */

.section-label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.section-label > span {
    width: 24px;
    height: 3px;

    border-radius: 10px;

    background: var(--orange);
}


/* TITLE */

.catalog-title {
    max-width: 800px;

    margin: 16px 0 20px;

    color: #fff;

    font-size: clamp(32px, 4.3vw, 46px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -.9px;
}

.catalog-title span {
    color: var(--orange);
}


/* DESCRIPTION */

.catalog-description {
    max-width: 700px;

    margin: 0;

    color: rgba(255,255,255,.74);

    font-size: 17px;

    line-height: 1.75;
}


/* FEATURES */

.header-features {
    margin-top: 27px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.header-feature {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 999px;

    background:
        rgba(255,255,255,.05);

    color: rgba(255,255,255,.82);

    font-size: 14px;
    font-weight: 600;
}

.header-feature i {
    color: var(--orange);
}


/* LIBRARY CARD */

.library-card {
    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 25px;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 18px;

    background:
        rgba(255,255,255,.06);

    box-shadow:
        0 20px 50px rgba(0,0,0,.18);

    backdrop-filter: blur(10px);
}

.library-card-icon {
    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        rgba(238,129,44,.14);

    color: var(--orange);

    font-size: 28px;
}

.library-card strong {
    display: block;

    color: #fff;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.1;
}

.library-card span {
    display: block;

    margin-top: 5px;

    color: rgba(255,255,255,.62);

    font-size: 15px;
}


/* =========================================================
   MAIN
========================================================= */

.catalog-main {
    padding: 48px 0 75px;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.filter-panel {
    margin-bottom: 30px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.filter-title {
    margin-bottom: 21px;
}

.filter-title strong {
    display: block;

    color: var(--navy);

    font-size: 19px;
    font-weight: 800;
}

.filter-title span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 15px;
}

.filter-label {
    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 700;
}


/* INPUT */

.form-control,
.form-select {
    min-height: 49px;

    border: 1px solid #dfe3e9;

    border-radius: 10px;

    color: var(--text);

    background: #fff;

    font-size: 15px;

    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px rgba(238,129,44,.12);
}

.form-control::placeholder {
    color: #94a3b8;
}


/* SEARCH */

.search-wrapper {
    position: relative;
}

.search-wrapper > i {
    position: absolute;

    top: 50%;
    left: 15px;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--orange);

    font-size: 17px;
}

.search-wrapper .form-control {
    padding-left: 44px;
    padding-right: 45px;
}

.clear-search {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;
}

.clear-search:hover {
    background: var(--orange-light);

    color: var(--orange);
}


/* =========================================================
   TOOLBAR
========================================================= */

.catalog-toolbar {
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.results-info {
    color: var(--muted);

    font-size: 15px;
}

.results-info strong {
    color: var(--navy);

    font-size: 21px;
    font-weight: 800;
}

.toolbar-right {
    display: flex;
    align-items: center;

    gap: 12px;
}

.view-switcher {
    display: flex;

    padding: 3px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #fff;
}

.view-button {
    width: 40px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;
}

.view-button:hover,
.view-button.active {
    background: var(--orange-light);

    color: var(--orange);
}

.sort-select {
    min-width: 170px;
}


/* =========================================================
   BOOK GRID
========================================================= */

.books-grid {
    min-height: 100px;
}

.book-item {
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.book-card {
    height: 100%;

    display: block;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: #fff;

    box-shadow:
        0 7px 24px rgba(15,23,42,.055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.book-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(238,129,44,.4);

    box-shadow:
        var(--shadow-md);
}


/* COVER */

.book-cover {
    position: relative;

    overflow: hidden;

    aspect-ratio: 3 / 4;

    background: #edf0f4;
}

.book-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .4s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.035);
}


/* BADGE */

.book-badge {
    position: absolute;

    z-index: 2;

    top: 12px;
    left: 12px;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--orange);

    color: #fff;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 5px 15px rgba(238,129,44,.25);
}


/* CONTENT */

.book-content {
    padding: 17px 17px 18px;
}

.book-category {
    display: block;

    margin-bottom: 6px;

    color: var(--orange-dark);

    font-size: 13px;
    font-weight: 700;
}

.book-title {
    display: -webkit-box;

    min-height: 51px;

    margin: 0 0 8px;

    overflow: hidden;

    color: var(--navy);

    font-size: 18px;

    line-height: 1.4;

    font-weight: 800;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-author {
    margin: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--muted);

    font-size: 14px;
}

.book-author i {
    color: var(--orange);
}

.book-bottom {
    margin-top: 14px;

    padding-top: 12px;

    border-top:
        1px solid #eef0f3;

    display: flex;
    justify-content: space-between;

    gap: 10px;

    color: var(--muted);

    font-size: 13px;
}

.book-bottom i {
    color: var(--orange);
}


/* =========================================================
   LIST VIEW
========================================================= */

.books-grid.list-view {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.books-grid.list-view .book-item {
    width: 100%;

    flex: none;
}

.books-grid.list-view .book-card {
    display: grid;

    grid-template-columns:
        150px
        1fr;
}

.books-grid.list-view .book-cover {
    aspect-ratio: auto;

    height: 205px;
}

.books-grid.list-view .book-content {
    padding: 25px;
}

.books-grid.list-view .book-title {
    min-height: auto;

    font-size: 21px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.no-results {
    margin-top: 30px;

    padding: 55px 25px;

    border:
        1px dashed #d8dde5;

    border-radius: var(--radius);

    background: #fff;

    text-align: center;
}

.no-results-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange-light);

    color: var(--orange);

    font-size: 25px;
}

.no-results h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 21px;
    font-weight: 800;
}

.no-results p {
    max-width: 500px;

    margin: 0 auto 20px;

    color: var(--muted);

    font-size: 15px;
}

.reset-button {
    min-height: 44px;

    padding: 9px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--orange);

    color: #fff;

    font-size: 15px;
    font-weight: 700;
}

.reset-button:hover {
    background: var(--orange-dark);

    color: #fff;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-wrapper {
    margin-top: 40px;

    display: flex;

    justify-content: center;
}

.pagination {
    gap: 6px;
}

.pagination .page-link {
    min-width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 9px !important;

    background: #fff;

    color: var(--navy);

    font-size: 14px;
    font-weight: 700;
}

.pagination .page-link:hover {
    background: var(--orange-light);

    color: var(--orange-dark);

    border-color:
        rgba(238,129,44,.35);
}

.pagination .page-item.active .page-link {
    background: var(--orange);

    border-color: var(--orange);

    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #b8bec8;

    background: #f8fafc;
}


/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    margin-top: 10px;

    padding: 55px 0 0;

    background: var(--navy);

    color: rgba(255,255,255,.66);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 45px;

    padding-bottom: 42px;
}

.footer-brand-column {
    max-width: 380px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;
}

.footer-brand-link img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.footer-brand-link span span {
    color: var(--orange);
}

.footer-brand-column p {
    margin: 14px 0 0;

    color: rgba(255,255,255,.62);

    font-size: 15px;

    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-column h4 {
    margin: 0 0 9px;

    color: #fff;

    font-size: 16px;
    font-weight: 800;
}

.footer-column a {
    color: rgba(255,255,255,.62);

    font-size: 14px;

    transition:
        color .2s ease;
}

.footer-column a:hover {
    color: var(--orange);
}

.footer-bottom {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.45);

    font-size: 13px;
}


/* =========================================================
   LOGIN MODAL
========================================================= */

.login-modal {
    overflow: hidden;

    border: 0;

    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.2);
}

.login-modal .modal-header {
    border: 0;

    padding-bottom: 0;
}

.login-modal .modal-body {
    padding: 12px 32px 32px;

    text-align: center;
}

.login-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange-light);

    color: var(--orange);

    font-size: 30px;
}

.login-modal h2 {
    margin: 0;

    color: var(--navy);

    font-size: 25px;
    font-weight: 800;
}

.login-description {
    margin: 8px 0 22px;

    color: var(--muted);

    font-size: 15px;
}

.social-login {
    min-height: 52px;

    margin-top: 10px;

    padding: 10px 14px;

    display: grid;

    grid-template-columns:
        25px
        1fr
        20px;

    align-items: center;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 600;

    text-align: left;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.social-login:hover {
    background: var(--orange-light);

    border-color:
        rgba(238,129,44,.4);

    color: var(--orange-dark);
}

.social-icon {
    color: var(--orange);

    font-size: 18px;

    text-align: center;
}

.social-login .arrow {
    color: #94a3b8;

    font-size: 13px;
}

.login-footer {
    margin-top: 20px;

    color: #94a3b8;

    font-size: 13px;
}

.login-footer i {
    margin-right: 5px;

    color: #22a06b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .navbar-container {
        width: calc(100% - 30px);
    }

    .desktop-link {
        padding-left: 9px;
        padding-right: 9px;
    }

    .desktop-link span {
        display: none;
    }

    .desktop-link i {
        font-size: 18px;
    }
}


@media (max-width: 850px) {

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .navbar-container {
        min-height: 70px;
    }

    .catalog-header {
        padding: 25px 0 55px;
    }

    .library-card {
        margin-top: 8px;
    }

    .footer-grid {
        grid-template-columns:
            1fr
            1fr;
    }
}


@media (max-width: 767px) {

    body {
        font-size: 15.5px;
    }

    .navbar-container {
        width: calc(100% - 28px);
    }

    .navbar-brand {
        font-size: 20px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .breadcrumb-custom {
        margin-bottom: 32px;
    }

    .catalog-title {
        font-size: 34px;
    }

    .catalog-description {
        font-size: 16px;
    }

    .header-feature {
        font-size: 13px;
    }

    .catalog-main {
        padding: 32px 0 55px;
    }

    .filter-panel {
        padding: 19px;
    }

    .catalog-toolbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .toolbar-right {
        width: 100%;

        justify-content: space-between;
    }

    .books-grid.list-view .book-card {
        grid-template-columns:
            105px
            1fr;
    }

    .books-grid.list-view .book-cover {
        height: 150px;
    }

    .books-grid.list-view .book-content {
        padding: 17px;
    }

    .books-grid.list-view .book-title {
        font-size: 18px;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px 0;
    }
}


@media (max-width: 520px) {

    .mobile-side-menu {
        width: 82vw;

        padding: 18px;
    }

    .catalog-title {
        font-size: 30px;
    }

    .catalog-description {
        font-size: 15.5px;
    }

    .header-feature {
        width: 100%;
    }

    .library-card {
        padding: 19px;
    }

    .library-card strong {
        font-size: 30px;
    }

    .filter-title strong {
        font-size: 18px;
    }

    .toolbar-right {
        flex-wrap: wrap;
    }

    .sort-select {
        min-width: 145px;
    }

    .book-title {
        font-size: 17px;
    }

    .book-bottom {
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-brand-column {
        max-width: none;
    }
}