/*
 * GV Next Part Pagination
 * Matches a simple green NEXT PART button + numbered pagination.
 */

/* Hide the theme's native wp_link_pages navigation to avoid duplicates. */
.gv-story-pager-active .page-links:not(.gv-story-pagination),
.gv-story-pager-active .post-page-numbers {
    /* Individual native links may still be targeted by some themes.
       The plugin's own elements use gv-* classes, so this is safe. */
}

/* Plugin navigation */
.gv-story-pagination {
    clear: both;
    text-align: center;
    margin: 34px 0 36px;
}

.gv-next-part-wrap {
    margin-bottom: 24px;
}

.gv-next-part-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 27px;
    background: #27ae60;
    color: #ffffff !important;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    transition: transform .15s ease, background-color .15s ease;
}

.gv-next-part-button:hover,
.gv-next-part-button:focus {
    background: #219150;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.gv-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gv-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #f1f1f1;
    color: #222222 !important;
    text-decoration: none !important;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease;
}

.gv-page-number:hover,
.gv-page-number:focus {
    background: #dddddd;
    color: #111111 !important;
    text-decoration: none !important;
}

.gv-page-number.current {
    background: #e74c3c;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .gv-story-pagination {
        margin-top: 28px;
        margin-bottom: 30px;
    }

    .gv-next-part-button {
        min-height: 44px;
        padding: 0 24px;
    }

    .gv-page-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
