/**
 * File: blog-pager.css
 * Purpose: Styles the numbered pager on the blog index/category/tag/search
 *          list pages (app/Views/Pagers/blog_pager.php) — Newer/Older
 *          arrows, page-number pills, the current-page marker
 *          (data-state="current"), the ellipsis, and the "Page N of M"
 *          status line. Reads the --crc-* tokens from site.css :root and
 *          matches the .blog-card / .tag-pill look in blog.css: white
 *          pills on a hairline border, brand teal fill on hover and for
 *          the current page.
 * Author: iSpec LLC
 * Created: 2026-09-26
 * Last Modified: 2026-09-26 — ported from /var/www/roof/public/css/
 *          blog-pager.css; roof's --teal/--border/--text-dark/--text-light
 *          tokens do not exist on this site, so each one is remapped to its
 *          --crc-* equivalent. Loaded from blog.php's styles section, kept
 *          out of blog.css so the pager can be re-ported without touching
 *          shipped blog CSS.
 */

.blog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--crc-border);
}

.blog-pager-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--crc-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

a.blog-pager-arrow:hover {
    border-color: var(--crc-teal);
    background: var(--crc-teal);
    color: #fff;
}

.blog-pager-arrow[data-state="disabled"] {
    color: var(--crc-muted);
    opacity: 0.55;
}

.blog-pager-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pager-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--crc-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

a.blog-pager-page:hover {
    border-color: var(--crc-teal);
    background: var(--crc-teal);
    color: #fff;
}

.blog-pager-page[data-state="current"] {
    border-color: var(--crc-teal);
    background: var(--crc-teal);
    color: #fff;
}

.blog-pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 44px;
    color: var(--crc-muted);
    font-size: 14px;
}

.blog-pager-status {
    flex-basis: 100%;
    margin: 2px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--crc-muted);
}

@media (max-width: 480px) {
    .blog-pager {
        gap: 8px 6px;
    }

    .blog-pager-arrow {
        padding: 0 12px;
        font-size: 13px;
    }
}
