/* ==========================================================================
   5G SERRALHERIA - BLOG STYLESHEET
   Otimizado para SEO E-E-A-T & Google Core Updates
   ========================================================================== */

/* Breadcrumbs */
.breadcrumb {
  padding-top: 24px;
  padding-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Blog Layout Grid */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Busca e Categorias */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 36px;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-main);
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.pill-btn {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover, .pill-btn.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #FFFFFF;
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-card);
}

.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);

}

.category-list li a:hover {
  color: var(--accent-orange);
}

.cta-widget {
  background: radial-gradient(circle at top right, #2E1505, var(--surface));
  border: 1px solid var(--accent-orange-glow);
}

/* Artigo Completo (Single Post) */
.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-top: 12px;
  margin-bottom: 20px;
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFFFFF;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-orange);
  background-color: var(--surface);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}
