/* =========================================================
   Post Filters Module
   ========================================================= */

.pa-post-filters__bar {
    display: flex;
    flex-direction: column;
}

/* Filter item */
.pa-post-filters__filter {}

/* Toggle row */
.pa-post-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
    text-align: left;
}

.pa-post-filters__toggle:focus { outline: none; }

.pa-post-filters__toggle:hover,
.pa-post-filters__toggle:focus,
.pa-post-filters__toggle:focus-visible {
    background: none !important;
    color: inherit !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pa-post-filters__toggle:hover .pa-post-filters__arrow {
    opacity: 1;
    border-color: #4d2672;
}

.pa-post-filters__toggle-label { flex: 1; }

/* Active dot */
.pa-post-filters__active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #008199;
    flex-shrink: 0;
}

/* Chevron */
.pa-post-filters__arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.45;
    margin-top: -3px;
}

.is-open .pa-post-filters__arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Collapsible body */
.pa-post-filters__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.is-open .pa-post-filters__body {
    max-height: none;
}

/* Inner padding */
.pa-post-filters__checkboxes,
.pa-post-filters__select-wrap {
    padding-bottom: 12px;
}

/* Checkboxes */
.pa-post-filters__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pa-post-filters__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.pa-post-filters__checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #008199;
    cursor: pointer;
    flex-shrink: 0;
}

/* Select */
.pa-post-filters__select-wrap::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    pointer-events: none;
    opacity: 0.5;
}

.pa-post-filters__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: inherit;
}

.pa-post-filters__select:focus {
    outline: none;
    border-color: #008199;
}

/* Reset & spinner */
.pa-post-filters__reset {
    margin-top: 16px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    color: #008199;
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
}

.pa-post-filters__reset:hover,
.pa-post-filters__reset:focus {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #4d2672;
}

.pa-post-filters__spinner {
    margin-top: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 129, 153, 0.25);
    border-top-color: #008199;
    border-radius: 50%;
    animation: pa-spin 0.7s linear infinite;
}

@keyframes pa-spin {
    to { transform: rotate(360deg); }
}

/* Hide filtered-out PP posts */
.pp-content-post.pa-filtered-out {
    display: none !important;
}
