/* ================= BOOK BACKGROUND ================= */
.fv-book-reader {
    min-height: 100vh;
    padding: 40px 15px;
}

/* ================= TOP SEARCH (BOOK TOOLBAR) ================= */
.fv-book-reader__controls {
    display: flex;
    align-items: center;
    gap: 10px;

    position: sticky;
    top: 10px;
    z-index: 100;

    max-width: 900px;
    margin: 0 auto 20px auto;

    padding: 12px 14px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);

    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

/* fixed state after search */
.fv-book-reader__controls.is-fixed {
    position: fixed;
    top: 1%;
    width: 100%;
    right: 29%;
    transform: scale(0.99);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* input */
.fv-book-reader__input {
    flex: 1;
    border: none;
    background: #f8f6f1;
    padding: 10px 12px;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

/* nav */
.fv-book-reader__nav {
    display: flex;
    gap: 6px;
}

.fv-book-reader__nav button {
    border: none;
    background: #e9e4d8;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.fv-book-reader__nav button:hover {
    background: #ddd6c7;
}

/* counter */
.fv-book-reader__counter {
    font-size: 12px;
    color: #6b6b6b;
}

/* ================= BOOK PAGE ================= */
.fv-book-reader__page {
    max-width: 900px;
    margin: auto;

    background: #fffdf7;
    border-radius: 16px;

    padding: 40px 35px;

    box-shadow:
            0 20px 60px rgba(0,0,0,0.12),
            inset 0 0 40px rgba(0,0,0,0.03);

    position: relative;
}

/* paper edge effect */
.fv-book-reader__page::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.02),
            rgba(0,0,0,0.02) 1px,
            transparent 1px,
            transparent 4px
    );
    pointer-events: none;
}

/* ================= TITLE ================= */
.fv-book-reader__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #2d2a26;
}

/* ================= CONTENT (BOOK TEXT STYLE) ================= */
.fv-book-reader__content {
    font-size: 16px;
    line-height: 2.2;
    color: #3b3b3b;
    text-align: justify;

    letter-spacing: 0.2px;
}

/* paragraph spacing like book */
.fv-book-reader__content p {
    margin-bottom: 18px;
}

/* ================= HIGHLIGHT ================= */
.highlight {
    background: #ffe08a;
    padding: 2px 4px;
    border-radius: 4px;
}

.active {
    background: #ffb703;
    color: #000;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .fv-book-reader__page {
        padding: 20px;
        border-radius: 12px;
    }

    .fv-book-reader__controls {
        flex-wrap: wrap;
    }
    .fv-book-reader__controls.is-fixed{
        right: 0;
        top: 750px;
    }
}