/* ===============================================
   Estilo centralizado (Personalizar → Estilo de categoria, post e página)
   - Categoria / blog: sem barra lateral, 3 colunas centralizadas
   - Post / página: sem barra lateral, cabeçalho centralizado, conteúdo estreito
   =============================================== */

/* ---------- Listagens (categoria, tag, autor, blog) ---------- */
.mp-layout-centered .all-posts-container,
.mp-layout-centered .container.all-posts-container {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1180px;
    gap: 0;
}

.mp-layout-centered .all-posts-content {
    width: 100%;
    margin: 0 auto;
}

.mp-layout-centered .all-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
    align-items: stretch;
}

.mp-layout-centered .all-posts-grid .post-card.mp-card-centered {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.mp-layout-centered .all-posts-grid .post-card.mp-card-centered:hover {
    box-shadow: none;
    transform: none;
}

.mp-cc-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-secondary, #f3f4f6);
}

.mp-cc-thumb > a {
    display: block;
    width: 100%;
    height: 100%;
}

.mp-cc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mp-card-centered:hover .mp-cc-thumb img {
    transform: scale(1.04);
}

.mp-cc-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.mp-cc-badge--views {
    right: 12px;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.mp-cc-badge--views svg {
    width: 14px;
    height: 14px;
}

.mp-cc-badge--category {
    left: 12px;
    background: var(--primary-color);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.68rem;
}

.mp-cc-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.mp-cc-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.mp-cc-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.mp-cc-title a:hover,
.mp-cc-title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mp-cc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.mp-cc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-cc-author a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mp-cc-author a:hover {
    text-decoration: underline;
}

.mp-cc-sep {
    color: #9ca3af;
}

.mp-cc-excerpt {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-cc-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-cc-more {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mp-cc-more:hover,
.mp-cc-more:focus-visible {
    color: #ffffff;
    filter: brightness(0.92);
}

.mp-cc-reading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

.mp-cc-reading svg {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .mp-layout-centered .all-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 22px;
    }
}

@media (max-width: 640px) {
    .mp-layout-centered .all-posts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

/* ---------- Post e página ---------- */
.mp-layout-centered .single-layout.no-sidebar .single-content-area {
    max-width: 780px;
    margin: 0 auto;
}

.mp-layout-centered .single-post-article > .breadcrumb,
.mp-layout-centered .single-page-article > .breadcrumb {
    justify-content: center;
    text-align: center;
}

.mp-layout-centered .single-post-article > .entry-header,
.mp-layout-centered .single-page-article > .entry-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.mp-layout-centered .entry-header .entry-categories {
    justify-content: center;
}

.mp-layout-centered .entry-header .entry-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.entry-meta.mp-meta-centered {
    justify-content: center;
    gap: 0.6rem 1.4rem;
    padding: 0.25rem 0 0;
    border-top: 0;
    border-bottom: 0;
}

.mp-meta-centered .mp-meta-byline {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mp-meta-centered .author-avatar-small {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 0;
}

.mp-meta-centered .mp-meta-by a {
    display: inline;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mp-meta-centered .mp-meta-by a:hover {
    text-decoration: underline;
}

.mp-meta-centered .mp-meta-sep {
    color: #9ca3af;
}

.mp-meta-centered svg {
    width: 17px;
    height: 17px;
}

.mp-layout-centered .single-post-article > .post-thumbnail,
.mp-layout-centered .single-page-article > .post-thumbnail {
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .entry-meta.mp-meta-centered {
        gap: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
