/* ===== Borba & Camargo — Artigos (CSS isolado, sem dependencia externa) ===== */

/* Mini grid responsivo */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; align-items: flex-start; }
.row > * { box-sizing: border-box; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 1024px) {
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; }
}

/* Utilitarios */
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.pt-40 { padding-top: 40px !important; }
.border-top { border-top: 1px solid #DDD !important; }
.full-width { width: 100% !important; }
.img-fluid { max-width: 100%; height: auto; display: block; }
.rounded { border-radius: 8px; }

/* Secoes */
.article-section, .blog-section { position: relative; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-family: 'Questrial', sans-serif; font-size: 2rem; color: #312C2E; margin-bottom: 10px; }
.section-subtitle { color: #777; font-size: 1rem; }

/* Artigo individual */
.article-header { margin-bottom: 30px; }
.article-image img { border-radius: 8px; }
.article-meta { display: flex; gap: 10px; font-size: 0.9rem; color: #777; margin-bottom: 15px; flex-wrap: wrap; align-items: center; }
.article-meta > * { white-space: nowrap; }
.article-category { color: #C1982F; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.article-date { color: #999; }
.article-reading-time { color: #999; font-size: 0.85rem; }
.article-title { font-family: 'Questrial', sans-serif; font-size: 2rem; color: #312C2E; margin-bottom: 20px; line-height: 1.3; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.article-content img { max-width: 100%; height: auto; margin: 20px 0; }
.article-tags { margin-top: 30px; }
.article-tags span { font-weight: 700; color: #312C2E; margin-right: 8px; }
.article-tag { color: #C1982F; text-decoration: none; margin-right: 8px; font-size: 0.9rem; }

/* Autor */
.author-bio { display: flex; gap: 20px; align-items: flex-start; padding: 30px; background: #FFF; border: 1px solid #DDD; border-radius: 8px; margin-top: 40px; }
.author-bio img { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; }
.author-bio h5 { margin: 0 0 10px; color: #312C2E; }
.author-bio p { margin: 0; font-size: 0.95rem; color: #555; }

/* Relacionados */
.related-posts { margin-top: 50px; padding-top: 40px; border-top: 1px solid #DDD; }
.related-posts h3 { font-family: 'Questrial', sans-serif; font-size: 1.5rem; color: #312C2E; margin-bottom: 25px; }
.related-card { text-align: center; }
.related-image img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.related-content h4 { font-size: 1.1rem; margin-bottom: 8px; }
.related-content h4 a { color: #312C2E; text-decoration: none; font-weight: 600; }
.related-content h4 a:hover { color: #C1982F; }
.related-excerpt { color: #777; font-size: 0.9rem; margin-bottom: 12px; }
.btn-link { color: #C1982F; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.btn-link:hover { text-decoration: underline; }

/* Lista do arquivo */
.blog-post { border-bottom: 1px solid #EEE; padding-bottom: 30px; margin-bottom: 30px; }
.blog-post:last-child { border-bottom: none; margin-bottom: 0; }
.post-image { border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.post-image img { width: 100%; height: 200px; object-fit: cover; }
.post-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-category { color: #C1982F; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.post-date { color: #999; }
.post-title { font-family: 'Questrial', sans-serif; font-size: 1.4rem; color: #312C2E; margin-bottom: 10px; line-height: 1.3; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: #C1982F; }
.post-excerpt { color: #555; font-size: 1rem; line-height: 1.6; margin-bottom: 15px; }

/* Botao primario */
.btn-primary { display: inline-block; background: #C1982F; color: #312C2E !important; padding: 12px 25px; border-radius: 30px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s; }
.btn-primary:hover { background: #E4B837; color: #312C2E !important; transform: translateY(-2px); }

/* Paginacao */
.blog-pagination { text-align: center; margin-top: 30px; }
.blog-pagination a { display: inline-block; padding: 8px 16px; margin: 2px; color: #312C2E; text-decoration: none; border: 1px solid #DDD; border-radius: 5px; font-size: 0.9rem; }
.blog-pagination a:hover, .blog-pagination a.active { background: #C1982F; color: #FFF !important; border-color: #C1982F; }

/* Sidebar */
.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget h4 { font-family: 'Questrial', sans-serif; font-size: 1.25rem; color: #312C2E; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #C1982F; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 10px; }
.category-list li a { color: #555; text-decoration: none; font-size: 0.95rem; }
.category-list li a:hover { color: #C1982F; }

/* Newsletter */
.newsletter-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Compartilhamento */
.social-share { display: flex; gap: 10px; margin-top: 20px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #FFF; text-decoration: none; font-size: 1rem; }
.social-icon.facebook { background: #1877F2; }
.social-icon.twitter { background: #1DA1F2; }
.social-icon.linkedin { background: #0077B5; }
.social-icon.instagram { background: linear-gradient(135deg, #E1306C, #C1272D, #833F72, #585F76, #3560A8); }

/* Breadcrumb */
.breadcrumb { font-size: 0.9rem; color: #777; margin-bottom: 20px; }
.breadcrumb a { color: #C1982F; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #999; }

@media (max-width: 768px) {
  .article-title, .section-title { font-size: 1.6rem; }
  .post-title { font-size: 1.25rem; }
  .author-bio { flex-direction: column; text-align: center; }
  .author-bio img { margin: 0 auto 15px; }
}

/* Placeholder image for articles without featured image */
.placeholder-image {
    background: #F5F0E8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='45' fill='%23C1982F' opacity='0.1'/><path d='M30 50 L70 50 M50 30 L50 70' stroke='%23C1982F' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M35 35 L65 65 M65 35 L35 65' stroke='%23C1982F' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.5'/></svg>") center/80px no-repeat;
    height: 250px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C1982F;
    font-size: 0.9rem;
}
.placeholder-image::before {
    content: 'Artigo Jurídico';
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
}
