/* ==========================================================================
   Docs / Manuscripts profile page
   ========================================================================== */

/* --- Banner ------------------------------------------------------------- */
.doc-banner {
    position: relative;
    overflow: hidden;
    padding-top: 95px;
    height: 400px;
}

.doc-banner-img {
    display: block;
    width: 100%;
    height: 305px;
    object-fit: cover;
    filter: blur(15px);
    transform: scale(1.05);
}

.doc-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-shades-secondary);
    pointer-events: none;
    z-index: 1;
}

.doc-banner .breadcrumbs {
    position: absolute;
    right: 0;
    left: 0;
    top: 135px;
    z-index: 2;
}


/* --- Layout container --------------------------------------------------- */
.doc-info {
    align-items: flex-start;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 48px;
}


/* --- Cover image (the manuscript page image) ---------------------------- */
.doc-info .doc-cover {
    flex-shrink: 0;
    width: 333px;
    height: 490px;
    object-fit: cover;
    border: 4px solid var(--color-surface);
    transform: translateY(-150px);
    margin-bottom: -150px;
    z-index: 2;
    position: relative;
}


/* --- Text column -------------------------------------------------------- */
.doc-info .doc-card {
    flex: 1;
    min-width: 0;
    padding-top: 32px;
    text-align: right;
    gap: 25px;
    width: 100%;
}


/* --- Title -------------------------------------------------------------- */
.doc-card .doc-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: var(--weight-medium);
    line-height: 1.5;
    color: var(--color-shades-primary);
    margin: 0 0 24px;
    max-width: 720px;
}


/* --- Document body (text_editor content) -------------------------------- */
.doc-card .doc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}





/* ==========================================================================
   Book action buttons
   ========================================================================== */

/* --- Shared base -------------------------------------------------------- */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--weight-medium);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.book-btn--download span,
.book-btn--download i {
    color: var(--color-on-primary);
}

.book-btn--read span {
    color: var(--color-primary);
}

.book-btn:hover {
    transform: translateY(-2px);
}

.book-btn:active {
    transform: translateY(0);
}


/* --- Download button (filled, masked) ----------------------------------- */
.book-btn--download {
    min-width: 158px;
    color: var(--color-on-primary);
    background-color: var(--color-primary);

    -webkit-mask-image: url("/images/assets/download-btn-shape.svg");
    mask-image: url("/images/assets/download-btn-shape.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.book-btn--download .book-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--color-on-primary);
    color: var(--color-primary);
    font-size: 11px;
}

.book-btn--download:hover {
    filter: brightness(0.9);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .doc-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

}

@media (max-width: 450px) {
    .doc-banner {
        padding-top: 95px;
        height: 272px;
    }

    .doc-banner-img {
        height: 177px;
    }

    .doc-info .doc-cover {
        width: 200px;
        height: 294px;
        transform: translateY(-70px);
        margin-bottom: -70px;
    }

    .doc-info .doc-card {
        padding-top: 0;
        text-align: start;
        width: 100%;
    }

    .doc-card .doc-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
}