/**
 * PDF Library — Styles
 * File: /wp-content/themes/YOUR-CHILD-THEME/css/pdf-pages.css
 */

/* ── Filter bar ─────────────────────────────────────────── */
.pdf-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.pdf-filter-bar .butn {
    background: #2d7dd2 !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding: .4rem 1.1rem !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    letter-spacing: .03em !important;
    border: none !important;
    opacity: .75;
    transition: opacity .15s ease, background .15s ease;
    text-decoration: none !important;
}

.pdf-filter-bar .butn:hover {
    opacity: 1;
}

.pdf-filter-bar .butn.pdf-filter-active {
    background: #111 !important;
    color: #fff !important;
    opacity: 1;
}

/* ── Series group wrapper ───────────────────────────────── */
.pdf-series-group {
    margin-bottom: 2.5rem;
}

/* ── Series heading ─────────────────────────────────────── */
.pdf-series-group__header {
    padding-bottom: .6rem;
    margin-bottom: .5rem;
}

.pdf-series-group__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--theme-color, #e8543a);
    display: inline-block;
    line-height: 1.2;
}

.pdf-series-group__desc {
    font-size: .82rem;
    opacity: .6;
    margin: 0 0 .2rem;
}

.pdf-series-group__count {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .45;
}

/* ── PDF icon placeholder (no image set) ────────────────── */
.pdf-icon-placeholder {
    width: 100%;
    height: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f4f0;
    color: #bbb;
}

/* ── Dropdown filter ────────────────────────────────────── */
.pdf-filter-form {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.pdf-filter-select {
    padding: .5rem 1rem;
    border-radius: 100px;
    border: 2px solid #2d7dd2;
    font-size: .95rem;
    font-weight: 500;
    color: #2d7dd2;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 220px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232d7dd2' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.pdf-filter-select:focus {
    border-color: #111;
    color: #111;
}

.pdf-filter-clear {
    font-size: .82rem;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    padding: .3rem .6rem;
    border-radius: 100px;
    border: 1px solid #ddd;
    transition: all .15s;
}

.pdf-filter-clear:hover {
    color: #e8543a;
    border-color: #e8543a;
    text-decoration: none;
}

/* ── Result count ───────────────────────────────────────── */
.pdf-result-count {
    font-size: .82rem;
    color: #888;
    margin: .75rem 0 1.25rem;
    font-style: italic;
}

/* ── Compact PDF list row ───────────────────────────────── */
.sc-pdf-compact .post-content {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
}

.sc-pdf-compact__icon {
    flex-shrink: 0;
    color: #c00;
    display: flex;
    align-items: center;
}

.sc-pdf-compact__title {
    font-size: .95rem;
    line-height: 1.4;
}

.sc-pdf-compact__title a {
    color: inherit;
    text-decoration: none;
}

.sc-pdf-compact__title a:hover {
    color: var(--theme-color, #e8543a);
    text-decoration: underline;
}
/* ── Override theme spacing for compact PDF rows ───────── */
.sc-pdf-compact {
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.sc-pdf-compact:last-child {
    border-bottom: none !important;
}