/* =========================================================
   REXUME WRITER
   BOOKS PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.books-page {
    width: 100%;
    min-height: 600px;
    background: #ffffff;
    color: #111827;
}


/* =========================================================
   CONTAINER
========================================================= */

.books-container {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;

    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.books-page-hero {
    width: 100%;

    padding: 55px 0 48px;

    background: #f5f7fa;

    border-bottom: 1px solid #e5e7eb;
}


/* =========================================================
   HERO LABEL
========================================================= */

.books-page-hero .hero-label {
    display: block;

    margin: 0 0 15px;

    color: #c9941a;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
========================================================= */

.books-page-hero h1 {
    margin: 0 0 14px;

    color: #111827;

    font-size: 44px;
    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -1px;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.books-page-hero p {
    max-width: 700px;

    margin: 0;

    color: #64748b;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   CATALOG
========================================================= */

.books-catalog {
    width: 100%;

    padding: 50px 0 90px;

    background: #ffffff;
}


/* =========================================================
   TABS
========================================================= */

.books-tabs {
    display: flex;
    align-items: center;

    width: 100%;

    margin: 0 0 18px;

    gap: 28px;

    border-bottom: 1px solid #e5e7eb;
}


.books-tabs a {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 0 13px;

    color: #64748b;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;

    transition: color 0.2s ease;
}


.books-tabs a:hover {
    color: #111827;
}


.books-tabs a.active {
    color: #111827;
}


.books-tabs a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -1px;

    height: 3px;

    background: #c9941a;
}


/* =========================================================
   SEARCH
========================================================= */

.books-search {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 460px;

    margin: 0 0 40px;

    gap: 10px;
}


.books-search input {
    display: block;

    width: 100%;
    height: 44px;

    margin: 0;

    padding: 0 14px;

    border: 1px solid #d9dee7;
    border-radius: 5px;

    outline: none;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.books-search input::placeholder {
    color: #94a3b8;
}


.books-search input:focus {
    border-color: #c9941a;

    box-shadow:
        0 0 0 3px rgba(201, 148, 26, 0.10);
}


.books-search button {
    flex: 0 0 auto;

    height: 44px;

    margin: 0;

    padding: 0 21px;

    border: 0;
    border-radius: 5px;

    background: #111827;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.books-search button:hover {
    background: #c9941a;
}


.books-search button:active {
    transform: translateY(1px);
}


/* =========================================================
   BOOK GRID
========================================================= */

.books-grid {
    display: grid;

    width: 100%;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 32px 24px;
}


/* =========================================================
   BOOK CARD
========================================================= */

.book-card {
    display: block;

    min-width: 0;

    background: #ffffff;
}


/* =========================================================
   BOOK COVER
========================================================= */

.book-cover {
    display: block;

    width: 100%;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: #f3f4f6;

    border: 1px solid #e5e7eb;
    border-radius: 5px;

    text-decoration: none;
}


.book-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.book-card:hover .book-cover img {
    transform: scale(1.03);
}


/* =========================================================
   BOOK INFO
========================================================= */

.book-info {
    padding: 15px 2px 0;
}


.book-info h3 {
    margin: 0 0 7px;

    color: #111827;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.35;
}


.book-info h3 a {
    color: #111827;

    text-decoration: none;

    transition: color 0.2s ease;
}


.book-info h3 a:hover {
    color: #c9941a;
}


/* =========================================================
   SUBTITLE
========================================================= */

.book-subtitle {
    margin: 0 0 10px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   PRICE
========================================================= */

.book-price {
    margin-top: 5px;

    color: #c9941a;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-books {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 190px;

    padding: 60px 25px;

    border: 1px dashed #d9dee7;
    border-radius: 7px;

    background: #fafafa;

    text-align: center;

    box-sizing: border-box;
}


.empty-books h2 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.3;
}


.empty-books p {
    max-width: 650px;

    margin: 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .books-container {
        max-width: 100%;

        padding-left: 24px;
        padding-right: 24px;
    }


    .books-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 30px 22px;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    .books-container {
        padding-left: 20px;
        padding-right: 20px;
    }


    .books-page-hero {
        padding: 42px 0 38px;
    }


    .books-page-hero h1 {
        font-size: 36px;

        letter-spacing: -0.7px;
    }


    .books-page-hero p {
        font-size: 16px;
    }


    .books-catalog {
        padding: 40px 0 70px;
    }


    .books-tabs {
        gap: 22px;

        overflow-x: auto;

        white-space: nowrap;

        scrollbar-width: none;
    }


    .books-tabs::-webkit-scrollbar {
        display: none;
    }


    .books-search {
        max-width: 100%;

        margin-bottom: 35px;
    }


    .books-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .books-container {
        padding-left: 18px;
        padding-right: 18px;
    }


    .books-page-hero {
        padding: 35px 0 32px;
    }


    .books-page-hero .hero-label {
        margin-bottom: 12px;

        font-size: 11px;

        letter-spacing: 1.7px;
    }


    .books-page-hero h1 {
        margin-bottom: 12px;

        font-size: 30px;

        letter-spacing: -0.5px;
    }


    .books-page-hero p {
        font-size: 15px;

        line-height: 1.65;
    }


    .books-catalog {
        padding: 32px 0 60px;
    }


    .books-tabs {
        gap: 20px;
    }


    .books-tabs a {
        font-size: 13px;
    }


    .books-search {
        flex-direction: column;

        align-items: stretch;

        width: 100%;

        max-width: 100%;

        gap: 9px;
    }


    .books-search input {
        width: 100%;
    }


    .books-search button {
        width: 100%;
    }


    .books-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .book-cover {
        max-width: 280px;

        margin-left: auto;
        margin-right: auto;
    }


    .book-info {
        text-align: center;
    }


    .book-info h3 {
        font-size: 17px;
    }


    .book-subtitle {
        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .books-page-hero h1 {
        font-size: 28px;
    }


    .book-cover {
        max-width: 240px;
    }

}