/* ==========================================================
   BLOCKSY BOOK CARD — IMAGE & BUTTON ONLY
   ========================================================== */

/* Cover buku */
article.entry-card.type-buku .ct-media-container {
    position: relative;
    display: block;

    overflow: hidden;
    isolation: isolate;

    background-color:
        var(--theme-palette-color-6);

    border: 1px solid
        var(--theme-palette-color-5);

    transition:
        border-color 0.25s ease;
}

article.entry-card.type-buku:hover
.ct-media-container {
    border-color:
        var(--theme-palette-color-1);
}


/* Cover image */
article.entry-card.type-buku
.ct-media-container img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.95);

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

article.entry-card.type-buku:hover
.ct-media-container img {
    transform:
        scale(1.018);

    filter:
        saturate(1.05);
}


/* Overlay tipis */
article.entry-card.type-buku
.ct-media-container::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgb(2 6 23 / 18%) 0%,
            transparent 28%,
            transparent 100%
        );
}


/* Label BOOK */
article.entry-card.type-buku
.ct-media-container::after {
    content: "BOOK";

    position: absolute;
    top: 12px;
    left: 12px;

    z-index: 3;

    padding: 5px 7px;

    color: #ffffff;
    background-color:
        rgb(2 6 23 / 70%);

    border: 1px solid
        rgb(255 255 255 / 20%);

    font-family:
        Manrope,
        sans-serif;

    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;

    pointer-events: none;
}


/* ==========================================================
   LIHAT BUKU — ICON BUTTON
   ========================================================== */

article.entry-card.type-buku
.entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;

    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;

    margin-left: auto;
    padding: 0 !important;

    color:
        var(--theme-palette-color-1);

    background-color: transparent;

    border: 1px solid
        var(--theme-palette-color-5);

    border-radius: 2px;

    font-size: 0;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Sembunyikan ikon bawaan Blocksy */
article.entry-card.type-buku
.entry-button > svg {
    display: none;
}


/* Panah diagonal */
article.entry-card.type-buku
.entry-button::before {
    content: "↗";

    color: inherit;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 19px;
    font-weight: 400;
    line-height: 1;

    transform:
        translate(-1px, 1px);

    transition:
        transform 0.2s ease;
}


/* Hover tombol */
article.entry-card.type-buku
.entry-button:hover {
    color:
        var(--theme-palette-color-8);

    background-color:
        var(--theme-palette-color-1);

    border-color:
        var(--theme-palette-color-1);

    transform:
        translateY(-2px);
}

article.entry-card.type-buku
.entry-button:hover::before {
    transform:
        translate(2px, -2px);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 689px) {
    article.entry-card.type-buku
    .ct-media-container::after {
        top: 10px;
        left: 10px;
    }

    article.entry-card.type-buku
    .entry-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    article.entry-card.type-buku
    .ct-media-container,
    article.entry-card.type-buku
    .ct-media-container img,
    article.entry-card.type-buku
    .entry-button,
    article.entry-card.type-buku
    .entry-button::before {
        transition: none;
    }

    article.entry-card.type-buku:hover
    .ct-media-container img,
    article.entry-card.type-buku
    .entry-button:hover,
    article.entry-card.type-buku
    .entry-button:hover::before {
        transform: none;
    }
}