/* ──────────────────────────────────────────────────────────────
   BCX Theme, blog (archive + single). calderon 09/06/2026
   Usa --bcx-primary (cor por cliente). Listagem em grid, card com
   thumb em frame, single em coluna estreita legível.
   ────────────────────────────────────────────────────────────── */

.bcx-archive .bcx-container,
.bcx-single .bcx-container { max-width: 1180px; margin: 0 auto; padding: 40px 20px 64px; }
.bcx-single .bcx-container-tight { max-width: 760px; }

/* Cabeçalho da listagem */
.bcx-page-header { margin: 4px 0 28px; }
.bcx-page-header h1 { font-size: 32px; font-weight: 800; color: #1d1b19; margin: 0; letter-spacing: -.3px; }

/* Grid de posts */
.bcx-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.bcx-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e2dc; border-radius: 16px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.bcx-post-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-3px); }
.bcx-post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f1ed; }
.bcx-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bcx-post-card:hover .bcx-post-thumb img { transform: scale(1.04); }
.bcx-post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bcx-posts-grid .bcx-post-title { font-size: 18px; line-height: 1.3; font-weight: 800; margin: 0; }
.bcx-post-title a { color: #1d1b19; text-decoration: none; }
.bcx-post-title a:hover { color: var(--bcx-primary, #6B6800); }
.bcx-post-meta { font-size: 12.5px; color: #8a837c; }
.bcx-post-excerpt { font-size: 14px; color: #6b645e; line-height: 1.55; flex: 1; }
.bcx-post-excerpt p { margin: 0; }
.bcx-link-more { margin-top: 6px; align-self: flex-start; font-weight: 700; font-size: 13.5px; color: var(--bcx-primary, #6B6800); text-decoration: none; }
.bcx-link-more:hover { text-decoration: underline; }

/* Paginação */
.bcx-pagination { margin-top: 44px; }
.bcx-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bcx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 13px; border: 1px solid #e7e2dc; border-radius: 11px; color: #1d1b19; text-decoration: none; font-weight: 600; background: #fff; }
.bcx-pagination .page-numbers:hover { border-color: var(--bcx-primary, #6B6800); }
.bcx-pagination .page-numbers.current { background: var(--bcx-primary, #6B6800); color: #fff; border-color: transparent; }
.bcx-no-results { padding: 48px 0; color: #6b645e; font-size: 15px; }

/* Single post */
.bcx-post-header { margin-bottom: 22px; }
.bcx-single .bcx-post-header .bcx-post-title { font-size: 34px; line-height: 1.15; font-weight: 800; color: #1d1b19; letter-spacing: -.4px; margin: 0 0 12px; }
.bcx-single .bcx-post-meta { font-size: 13px; color: #8a837c; display: flex; gap: 12px; flex-wrap: wrap; }
.bcx-post-thumbnail { margin: 0 0 28px; border-radius: 16px; overflow: hidden; background: #f4f1ed; }
.bcx-post-thumbnail img { width: 100%; height: auto; display: block; }
.bcx-post-content { font-size: 16.5px; line-height: 1.75; color: #2a2722; }
.bcx-post-content p { margin: 0 0 18px; }
.bcx-post-content h2 { font-size: 24px; font-weight: 800; margin: 32px 0 12px; color: #1d1b19; }
.bcx-post-content h3 { font-size: 20px; font-weight: 800; margin: 26px 0 10px; color: #1d1b19; }
.bcx-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0 18px; }
.bcx-post-content a { color: var(--bcx-primary, #6B6800); text-decoration: underline; }
.bcx-post-content ul, .bcx-post-content ol { margin: 0 0 18px; padding-left: 22px; }
.bcx-post-content li { margin-bottom: 6px; }
.bcx-post-content blockquote { border-left: 3px solid var(--bcx-primary, #6B6800); margin: 22px 0; padding: 6px 0 6px 18px; color: #4a463f; font-style: italic; }
.bcx-post-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e7e2dc; font-size: 13.5px; color: #6b645e; display: flex; flex-direction: column; gap: 8px; }
.bcx-post-footer a { color: var(--bcx-primary, #6B6800); text-decoration: none; }

@media (max-width: 560px) {
  .bcx-posts-grid { grid-template-columns: 1fr; gap: 18px; }
  .bcx-page-header h1 { font-size: 26px; }
  .bcx-single .bcx-post-header .bcx-post-title { font-size: 26px; }
  .bcx-archive .bcx-container, .bcx-single .bcx-container { padding: 28px 16px 48px; }
}
