/* ===========================
   Home page: announcement, progress bars, Coming Soon / Latest Release
   =========================== */

/* ---------- Announcement card ---------- */
.announcement-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 92%;
    margin: 0 auto 1rem;
    padding: 1.25rem 1.5rem;
    background-color: #2f2a3d;
    border-left: 6px solid #a855f7;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.announcement-icon {
    font-size: 2rem !important;
    color: #c084fc;
    flex-shrink: 0;
}

.announcement-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.announcement-title {
    font-size: 1.35rem;
}

.announcement-message p {
    margin: 0 0 0.5rem;
}

body.light-mode .announcement-card {
    background-color: #f3e8ff;
    color: #222;
}

body.light-mode .announcement-icon {
    color: #7e22ce;
}

/* ---------- Progress bars ---------- */
.progress-card {
    padding: 2rem;
    background-color: #4f4f4f;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    margin: 1rem auto;
    width: 92%;
}

.progress-title {
    display: block;
    font-size: 1.5rem;
}

.progress-label {
    display: block;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.progress-background {
    background-color: var(--rz-progressbar-background-color);
}

.rz-progressbar-label-value {
    color: var(--rz-progressbar-color);
    clip-path: inset(0 0 0 var(--rz-progressbar-value));
}

/* Custom bar colour picked in the companion (style="--bar-color: #hex") */
.rz-progressbar.progress-custom .rz-progressbar-value {
    background-color: var(--bar-color) !important;
}

body.light-mode .progress-card {
    background-color: #e9ecef;
}

body.light-mode .progress-background {
    background-color: #ced4da;
}

body.light-mode .rz-progressbar-label-value {
    color: white;
}

@media (max-width: 575px) {
    .announcement-card,
    .progress-card {
        width: 100%;
        padding: 1rem;
    }
}

/* ---------- Featured books (also used by Recs) ---------- */
/* Heading with the release date beside it ("Coming Soon  Releasing January 27th, 2027") */
.block-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
}

.release-date {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.85;
}
.custom-book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-book-container > .book-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.book-block-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

@media (min-width: 1242px) {
    .custom-book-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-around;
    }

    .custom-book-container > .book-block {
        width: 50%;
        margin-top: 0;
    }

    .custom-book-container > .book-block:only-child {
        width: 100%;
    }

    .book-block-inner {
        align-items: flex-start;
    }
}
