.pea-posts-search {
    margin-bottom: 24px;
}

.pea-posts-widget--loading {
    opacity: .65;
    pointer-events: none;
    transition: opacity .2s ease;
}

.pea-posts-search__fields {
    display: flex;
    gap: 8px;
}

.pea-posts-search__input {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.pea-posts-search__input:focus {
    border-color: #42b9e8;
    outline: 2px solid rgb(66 185 232 / 25%);
    outline-offset: 1px;
}

.pea-posts-search__button,
.pea-posts-search__clear {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #42b9e8;
    background: #42b9e8;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.pea-posts-search__clear {
    background: #fff;
    color: #333;
}

.pea-posts-grid {
    display: grid;
    gap: 24px;
}

.pea-posts-columns-1 { grid-template-columns: 1fr; }
.pea-posts-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pea-posts-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pea-posts-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pea-post-card {
    min-width: 0;
    overflow: hidden;
    background: #f6f6f6;
    transition-property: background-color, border-color, box-shadow, transform;
    transition-timing-function: ease;
}

.pea-post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pea-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.pea-post-card__image:hover img { transform: scale(1.03); }

.pea-post-card__content { padding: 20px; }

.pea-post-card__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.15;
}

.pea-post-card__title a { color: #42b9e8; }

.pea-post-card__meta {
    margin-bottom: 16px;
    color: #777;
    font-size: 12px;
}

.pea-post-card__excerpt { color: #666; }
.pea-post-card__excerpt p { margin: 0 0 16px; }
.pea-post-card__more {
    display: inline-block;
    color: #00c86f;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.pea-posts-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pea-posts-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    line-height: 1;
}

/* Classes próprias evitam regras globais de temas para `.next` e `.prev`. */
.pea-posts-pagination .pea-posts-pagination__nav {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    line-height: 1;
}

.pea-posts-pagination .pea-posts-pagination__nav:hover {
    border-color: #42b9e8;
    background: #42b9e8;
    color: #fff;
}

.pea-posts-pagination .page-numbers.current,
.pea-posts-pagination a.page-numbers:hover {
    border-color: #42b9e8;
    background: #42b9e8;
    color: #fff;
}

@media (max-width: 767px) {
    .pea-posts-search__fields { flex-wrap: wrap; }
    .pea-posts-search__input { flex-basis: 100%; }
    .pea-posts-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pea-posts-columns-3,
    .pea-posts-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
