/* ============================================================
   DIGITAL E COMPANIA
   BIBLIOTECA — VISUAL DARK PREMIUM
   ============================================================ */


/* ============================================================
   01. HERO
   ============================================================ */

.library-hero {

    position: relative;

    overflow: hidden;

    padding: 54px 0 48px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(244,196,48,.13),
            transparent 46%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255,255,255,.025),
            transparent 48%
        ),
        #111111;

    border-bottom:
        1px solid
        rgba(255,255,255,.09);

}


.library-hero::before {

    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    top: -390px;
    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(244,196,48,.065);

    filter:
        blur(90px);

    pointer-events: none;

}


.library-hero::after {

    content: "";

    position: absolute;

    width: 100%;
    height: 1px;

    left: 0;
    bottom: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(244,196,48,.25),
            transparent
        );

    pointer-events: none;

}


/* ============================================================
   HERO CONTAINER
   ============================================================ */

.library-hero .container {

    position: relative;

    z-index: 2;

}


.library-hero-grid {

    min-height: 220px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


.library-hero-content {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}


/* ============================================================
   HERO BADGE
   ============================================================ */

.library-hero-badge {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        8px 18px;

    margin-bottom:
        18px;

    border:
        1px solid
        rgba(244,196,48,.42);

    border-radius:
        999px;

    background:
        rgba(244,196,48,.075);

    color:
        #f4c430;

    font-size:
        .68rem;

    font-weight:
        800;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;

    box-shadow:
        0 0 25px
        rgba(244,196,48,.07);

}


/* ============================================================
   HERO TITLE
   ============================================================ */

.library-hero-title {

    margin:
        0;

    max-width:
        850px;

    margin-inline:
        auto;

    color:
        #ffffff;

    font-size:
        clamp(
            2rem,
            4vw,
            2.8rem
        );

    font-weight:
        900;

    line-height:
        1.08;

    letter-spacing:
        -.045em;

    text-wrap:
        balance;

}


.library-hero-title span {

    color:
        #f4c430;

}


/* ============================================================
   HERO DESCRIPTION
   ============================================================ */

.library-hero-description {

    max-width:
        680px;

    margin:
        18px auto 0;

    color:
        rgba(255,255,255,.70);

    font-size:
        .98rem;

    line-height:
        1.75;

}


/* ============================================================
   02. BIBLIOTECA
   ============================================================ */

.library-page {

    position:
        relative;

    padding:
        42px 0 70px;

    background:
        #101010;

    color:
        #ffffff;

}


.library-page::before {

    content: "";

    position: absolute;

    inset:
        0;

    pointer-events:
        none;

    background:
        radial-gradient(
            circle at 70% 15%,
            rgba(244,196,48,.025),
            transparent 30%
        );

}


.library-page .container {

    position:
        relative;

    z-index:
        1;

    width:
        100%;

    max-width:
        1500px;

    margin:
        0 auto;

    padding:
        0 32px;

}


/* ============================================================
   03. LAYOUT
   ============================================================ */

.library-layout {

    display:
        grid;

    grid-template-columns:
        250px
        minmax(0,1fr);

    gap:
        30px;

    align-items:
        start;

}


/* ============================================================
   CONTENT
   ============================================================ */

.library-page-content {

    width:
        100%;

    min-width:
        0;

}


/* ============================================================
   04. SIDEBAR
   ============================================================ */

.library-sidebar {

    position:
        sticky;

    top:
        100px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;

}


/* ============================================================
   SIDEBAR CARD
   ============================================================ */

.library-sidebar-card {

    position:
        relative;

    padding:
        22px;

    background:
        linear-gradient(
            145deg,
            #1d1d1d,
            #181818
        );

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:
        18px;

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.28),
        inset 0 1px 0
        rgba(255,255,255,.025);

    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.library-sidebar-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 22px;
    right: 22px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(244,196,48,.25),
            transparent
        );

    opacity:
        .7;

}


.library-sidebar-card:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(244,196,48,.20);

    box-shadow:
        0 18px 42px
        rgba(0,0,0,.34),
        0 0 0 1px
        rgba(244,196,48,.025);

}


/* ============================================================
   SIDEBAR TITLE
   ============================================================ */

.library-sidebar-card h3 {

    margin:
        0 0 16px;

    color:
        #ffffff;

    font-size:
        1.05rem;

    font-weight:
        800;

    line-height:
        1.2;

}


/* ============================================================
   SEARCH INPUT
   ============================================================ */

.library-sidebar input {

    width:
        100%;

    height:
        50px;

    padding:
        0 16px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:
        12px;

    background:
        #111111;

    color:
        #ffffff;

    font-size:
        .88rem;

    box-shadow:
        inset 0 1px 3px
        rgba(0,0,0,.35);

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;

}


.library-sidebar input::placeholder {

    color:
        rgba(255,255,255,.40);

}


.library-sidebar input:hover {

    border-color:
        rgba(244,196,48,.25);

}


.library-sidebar input:focus {

    outline:
        none;

    background:
        #151515;

    border-color:
        #f4c430;

    box-shadow:
        0 0 0 3px
        rgba(244,196,48,.09),
        inset 0 1px 3px
        rgba(0,0,0,.35);

}


/* ============================================================
   SELECT
   ============================================================ */

.library-sidebar select {

    width:
        100%;

    height:
        50px;

    padding:
        0 16px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:
        12px;

    background:
        #111111;

    color:
        #ffffff;

    font-size:
        .88rem;

    cursor:
        pointer;

}


.library-sidebar select:focus {

    outline:
        none;

    border-color:
        #f4c430;

    box-shadow:
        0 0 0 3px
        rgba(244,196,48,.09);

}


/* ============================================================
   05. CATEGORIAS
   ============================================================ */

.library-categories {

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;

}


.category-chip {

    width:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-start;

    padding:
        11px 14px;

    border:
        1px solid
        rgba(255,255,255,.045);

    border-radius:
        11px;

    background:
        rgba(255,255,255,.025);

    color:
        rgba(255,255,255,.67);

    font-size:
        .86rem;

    font-weight:
        600;

    text-align:
        left;

    cursor:
        pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;

}


.category-chip:hover {

    color:
        #ffffff;

    background:
        rgba(244,196,48,.065);

    border-color:
        rgba(244,196,48,.20);

    transform:
        translateX(2px);

}


.category-chip.active {

    color:
        #111111;

    background:
        linear-gradient(
            135deg,
            #f4c430,
            #e9b620
        );

    border-color:
        #f4c430;

    font-weight:
        800;

    box-shadow:
        0 8px 22px
        rgba(244,196,48,.16);

}


/* ============================================================
   FILTROS ATIVOS
   ============================================================ */

.library-filter-summary-card {

    background:
        linear-gradient(
            145deg,
            #1b1b1b,
            #171717
        );

}


.library-filter-summary-card p {

    margin:
        0;

    padding:
        10px 11px;

    color:
        rgba(255,255,255,.62);

    font-size:
        .82rem;

    line-height:
        1.6;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius:
        10px;

}


/* ============================================================
   06. TOOLBAR
   ============================================================ */

.library-toolbar {

    position:
        relative;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    margin:
        0 0 26px;

    padding:
        16px 18px;

    background:
        linear-gradient(
            145deg,
            #1d1d1d,
            #181818
        );

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:
        16px;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.24),
        inset 0 1px 0
        rgba(255,255,255,.025);

}


.library-toolbar::before {

    content: "";

    position:
        absolute;

    left:
        18px;

    right:
        18px;

    top:
        0;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(244,196,48,.22),
            transparent
        );

}


/* ============================================================
   RESULTADOS
   ============================================================ */

.library-results {

    color:
        rgba(255,255,255,.62);

    font-size:
        .88rem;

}


.library-results strong {

    color:
        #f4c430;

    font-size:
        .96rem;

    font-weight:
        800;

}


/* ============================================================
   SORT
   ============================================================ */

.library-sort {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

}


.library-sort label {

    color:
        rgba(255,255,255,.50);

    font-size:
        .80rem;

}


.library-sort select {

    height:
        38px;

    padding:
        0 12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:
        9px;

    background:
        #111111;

    color:
        #ffffff;

    font-size:
        .80rem;

    cursor:
        pointer;

}


.library-sort select:hover {

    border-color:
        rgba(244,196,48,.24);

}


.library-sort select:focus {

    outline:
        none;

    border-color:
        #f4c430;

    box-shadow:
        0 0 0 3px
        rgba(244,196,48,.07);

}


/* ============================================================
   07. GRID
   ============================================================ */

.library-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                180px,
                180px
            )
        );

    justify-content:
        start;

    gap:
        22px;

    align-content:
        start;

}


/* ============================================================
   08. CARD
   ============================================================ */

.library-card {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    width:
        180px;

    min-width:
        0;

    overflow:
        hidden;

    background:
        linear-gradient(
            145deg,
            #1e1e1e,
            #181818
        );

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        18px;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.30),
        inset 0 1px 0
        rgba(255,255,255,.025);

    transition:
        transform .30s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        ),
        border-color .30s ease,
        box-shadow .30s ease;

}


.library-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(244,196,48,.30);

    box-shadow:
        0 22px 46px
        rgba(0,0,0,.38),
        0 0 0 1px
        rgba(244,196,48,.045);

}


/* ============================================================
   09. CAPA
   ============================================================ */

.library-cover {

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        230px;

    padding:
        12px;

    overflow:
        hidden;

    background:
        radial-gradient(
            circle at 50% 40%,
            #292929 0%,
            #1c1c1c 55%,
            #141414 100%
        );

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

    text-decoration:
        none;

}


.library-cover::after {

    content: "";

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.035),
            transparent 45%,
            rgba(0,0,0,.08)
        );

    pointer-events:
        none;

}


.library-cover img {

    position:
        relative;

    z-index:
        1;

    display:
        block;

    width:
        auto;

    max-width:
        100%;

    height:
        100%;

    max-height:
        210px;

    object-fit:
        contain;

    margin:
        auto;

    filter:
        drop-shadow(
            0 15px 24px
            rgba(0,0,0,.48)
        );

    transition:
        transform .35s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );

}


.library-card:hover
.library-cover img {

    transform:
        scale(1.035);

}


/* ============================================================
   BADGE
   ============================================================ */

.library-badge {

    position:
        absolute;

    top:
        10px;

    left:
        10px;

    z-index:
        3;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        5px 8px;

    border:
        1px solid
        rgba(244,196,48,.32);

    border-radius:
        999px;

    background:
        rgba(17,17,17,.92);

    color:
        #f4c430;

    font-size:
        .55rem;

    font-weight:
        800;

    letter-spacing:
        .05em;

    text-transform:
        uppercase;

    box-shadow:
        0 5px 12px
        rgba(0,0,0,.25);

}


/* ============================================================
   10. CARD CONTENT
   ============================================================ */

.library-card-content {

    display:
        flex;

    flex-direction:
        column;

    gap:
        9px;

    padding:
        15px 13px 16px;

}


.library-category {

    display:
        inline-flex;

    align-self:
        flex-start;

    align-items:
        center;

    justify-content:
        center;

    max-width:
        100%;

    padding:
        5px 9px;

    border:
        1px solid
        rgba(244,196,48,.28);

    border-radius:
        999px;

    background:
        rgba(244,196,48,.075);

    color:
        #f4c430;

    font-size:
        .53rem;

    font-weight:
        800;

    letter-spacing:
        .07em;

    line-height:
        1;

    text-transform:
        uppercase;

}


/* ============================================================
   TÍTULO
   ============================================================ */

.library-title {

    margin:
        0;

    min-height:
        42px;

    color:
        #ffffff;

    font-size:
        .84rem;

    font-weight:
        800;

    line-height:
        1.42;

}


/* ============================================================
   BOTÃO
   ============================================================ */

.library-link {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    min-height:
        40px;

    padding:
        0 12px;

    margin-top:
        4px;

    border:
        1px solid
        rgba(244,196,48,.18);

    border-radius:
        10px;

    background:
        linear-gradient(
            135deg,
            #f4c430,
            #eab927
        );

    color:
        #111111;

    font-size:
        .76rem;

    font-weight:
        900;

    text-decoration:
        none;

    box-shadow:
        0 7px 16px
        rgba(244,196,48,.10);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.library-link:hover {

    background:
        linear-gradient(
            135deg,
            #ffd95a,
            #f4c430
        );

    color:
        #111111;

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(244,196,48,.20);

}


/* ============================================================
   11. PAGINAÇÃO
   ============================================================ */

.library-pagination {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    width:
        100%;

    margin:
        38px 0 8px;

}


.library-pagination-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-width:
        42px;

    height:
        42px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:
        10px;

    background:
        #1a1a1a;

    color:
        rgba(255,255,255,.65);

    font-family:
        inherit;

    font-size:
        .80rem;

    font-weight:
        700;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.library-pagination-button:hover:not(:disabled) {

    border-color:
        rgba(244,196,48,.30);

    background:
        #222222;

    color:
        #f4c430;

    transform:
        translateY(-1px);

}


.library-pagination-number.active {

    border-color:
        #f4c430;

    background:
        #f4c430;

    color:
        #111111;

    box-shadow:
        0 7px 18px
        rgba(244,196,48,.16);

}


.library-pagination-number.active:hover {

    border-color:
        #f4c430;

    background:
        #f4c430;

    color:
        #111111;

    transform:
        none;

}


.library-pagination-prev,
.library-pagination-next {

    min-width:
        44px;

    color:
        #f4c430;

    font-weight:
        800;

}


.library-pagination-prev span:first-child,
.library-pagination-next span:last-child {

    font-size:
        1.2rem;

    line-height:
        .8;

    font-weight:
        400;

}


.library-pagination-button:disabled {

    opacity:
        .30;

    cursor:
        not-allowed;

    background:
        #151515;

    border-color:
        rgba(255,255,255,.06);

    box-shadow:
        none;

    transform:
        none;

}


.library-pagination-button:focus-visible {

    outline:
        none;

    border-color:
        #f4c430;

    box-shadow:
        0 0 0 4px
        rgba(244,196,48,.10);

}


/* ============================================================
   12. SEM RESULTADOS
   ============================================================ */

.library-empty {

    width:
        100%;

    padding:
        70px 24px;

    text-align:
        center;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        18px;

    background:
        #1a1a1a;

    box-shadow:
        0 14px 32px
        rgba(0,0,0,.25);

}


.library-empty h3 {

    margin:
        0 0 10px;

    color:
        #ffffff;

    font-size:
        1.15rem;

}


.library-empty p {

    margin:
        0;

    color:
        rgba(255,255,255,.52);

    font-size:
        .88rem;

}


/* ============================================================
   13. ERRO
   ============================================================ */

.products-error {

    width:
        100%;

    padding:
        30px;

    color:
        #ffffff;

    text-align:
        center;

    background:
        #1a1a1a;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        16px;

}


/* ============================================================
   14. ACESSIBILIDADE
   ============================================================ */

.library-cover:focus-visible,
.library-link:focus-visible,
.category-chip:focus-visible {

    outline:
        2px solid
        #f4c430;

    outline-offset:
        3px;

}


/* ============================================================
   15. TABLET
   ============================================================ */

@media screen and (max-width:1100px) {

    .library-page .container {

        padding:
            0 24px;

    }


    .library-layout {

        grid-template-columns:
            220px
            minmax(0,1fr);

        gap:
            22px;

    }


    .library-grid {

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(
                    170px,
                    170px
                )
            );

        gap:
            18px;

    }


    .library-card {

        width:
            170px;

    }


    .library-cover {

        height:
            220px;

    }

}


/* ============================================================
   16. MOBILE
   ============================================================ */

@media screen and (max-width:768px) {

    .library-page {

        padding:
            34px 0
            56px;

    }


    .library-page .container {

        width:
            min(
                100% - 28px,
                100%
            );

        padding:
            0;

    }


    .library-layout {

        display:
            flex;

        flex-direction:
            column;

        gap:
            28px;

    }


    .library-page-content {

        width:
            100%;

    }


    .library-sidebar {

        position:
            static;

        width:
            100%;

    }


    .library-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap:
            18px 14px;

    }


    .library-card {

        width:
            100%;

    }


    .library-cover {

        width:
            100%;

        height:
            220px;

        padding:
            10px;

    }


    .library-cover img {

        max-height:
            200px;

    }


    .library-card-content {

        padding:
            14px 12px 17px;

    }


    .library-title {

        font-size:
            .86rem;

    }


    .library-link {

        min-height:
            42px;

    }

}


/* ============================================================
   17. MOBILE HERO
   ============================================================ */

@media screen and (max-width:600px) {

    .library-hero {

        padding:
            34px 0
            36px;

    }


    .library-hero-grid {

        min-height:
            auto;

    }


    .library-hero-badge {

        margin-bottom:
            14px;

    }


    .library-hero-title {

        font-size:
            2rem;

        line-height:
            1.10;

    }


    .library-hero-title span {

        display:
            block;

    }


    .library-hero-description {

        display:
            none;

    }


    .library-toolbar {

        justify-content:
            flex-start;

        margin-bottom:
            20px;

        padding:
            0;

        background:
            transparent;

        border:
            0;

        box-shadow:
            none;

    }


    .library-results {

        font-size:
            .82rem;

    }


    .library-sort {

        display:
            none;

    }

}


/* ============================================================
   18. PAGINAÇÃO MOBILE
   ============================================================ */

@media screen and (max-width:600px) {

    .library-pagination {

        gap:
            6px;

        margin:
            32px 0 8px;

    }


    .library-pagination-button {

        min-width:
            40px;

        height:
            40px;

        padding:
            0 10px;

        border-radius:
            9px;

        font-size:
            .76rem;

    }


    .library-pagination-prev,
    .library-pagination-next {

        padding:
            0 10px;

    }


    .library-pagination-prev span:nth-child(2),
    .library-pagination-next span:first-child {

        display:
            none;

    }

}


/* ============================================================
   FIM
   ============================================================ */
   
   