/* ==========================================================================
   BLOG EMPÓRIO LIMP - ESTILOS EXCLUSIVOS (B2C & B2B)
   ========================================================================== */

/* Header Hero do Blog */
.blog-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 60%, #0046b8 100%);
  color: #ffffff;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(227, 18, 122, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd166;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-hero-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.blog-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Busca do Blog */
.blog-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.2rem;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.blog-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary, #e3127a);
  box-shadow: 0 0 0 4px rgba(227, 18, 122, 0.25);
}

.blog-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Filtros de Perfil B2C x B2B */
.blog-filters-section {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 80px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.blog-filters-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audience-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: #edf2f7;
  padding: 0.35rem;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto;
}

.audience-tab-btn {
  padding: 0.55rem 1.25rem;
  border: none;
  background: transparent;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.audience-tab-btn.active {
  background: #ffffff;
  color: #0046b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.category-chip {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid #cbd5e0;
  background: #ffffff;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  border-color: #0046b8;
  color: #0046b8;
  background: #f0f4ff;
}

.category-chip.active {
  background: #0046b8;
  color: #ffffff;
  border-color: #0046b8;
}

/* Post em Destaque (Featured Post Card) */
.blog-main-container {
  max-width: 1200px;
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.featured-post-img-wrapper {
  background: #f1f5f9;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.featured-post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-post-img-wrapper img {
  transform: scale(1.04);
}

.featured-post-content {
  padding: 2.5rem 2.5rem 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.post-category-tag {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-audience-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.post-read-time {
  font-size: 0.8rem;
  color: #718096;
}

.featured-post-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a202c;
}

.featured-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: #0046b8;
}

.featured-post-summary {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2f7;
  padding-top: 1rem;
  margin-top: auto;
}

.author-info strong {
  display: block;
  color: #2d3748;
  font-size: 0.875rem;
}

.author-info span {
  font-size: 0.78rem;
  color: #718096;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0046b8;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-read-more:hover {
  background: #003285;
}

/* Grid de Cards dos Artigos */
.blog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.blog-section-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.blog-card-thumb {
  height: 200px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.75rem 0;
  color: #1a202c;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #0046b8;
}

.blog-card-excerpt {
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Banner de Cotação B2B (Redesign Premium com Alto Contraste) */
.b2b-cta-banner {
  background: radial-gradient(circle at top right, rgba(37, 211, 102, 0.18) 0%, transparent 60%), linear-gradient(135deg, #061838 0%, #0046b8 50%, #002d7a 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: #ffffff !important;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -10px rgba(0, 45, 122, 0.35);
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.b2b-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.b2b-cta-content h3,
.post-article-body .b2b-cta-banner h3 {
  font-family: var(--font-headings, 'Outfit', sans-serif) !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.b2b-cta-content p,
.post-article-body .b2b-cta-banner p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  max-width: 680px;
  margin: 0 !important;
}

.b2b-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-cta-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  color: #ffffff !important;
  padding: 1rem 1.85rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-cta-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==========================================================================
   PÁGINA DO ARTIGO (BLOG POST READER)
   ========================================================================== */

.post-reader-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 1rem;
}

.post-reader-container {
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: #0046b8;
  text-decoration: none;
}

.post-article-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0046b8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.post-hero-cover-wrapper {
  margin-top: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  max-height: 440px;
  background: #f1f5f9;
}

.post-hero-cover-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Layout com Sumário (TOC) e Conteúdo */
.post-reader-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Sidebar de Sumário (TOC) Redesign Exclusivo */
.post-toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #ffffff !important;
  padding: 1.25rem !important;
  border-radius: 20px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 32px -8px rgba(0, 70, 184, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.toc-title {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: linear-gradient(135deg, #0046b8 0%, #002d7a 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-headings, 'Outfit', sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  margin-bottom: 1.25rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 4px 12px rgba(0, 70, 184, 0.25) !important;
  border-bottom: none !important;
}

.toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.toc-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.toc-list a {
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  padding: 0.6rem 0.85rem !important;
  border-left: 3px solid #cbd5e1 !important;
  border-radius: 0 10px 10px 0 !important;
  background: #f8fafc !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.toc-list a:hover,
.toc-list a.active {
  color: #0046b8 !important;
  font-weight: 700 !important;
  border-left-color: #0046b8 !important;
  background: #eff6ff !important;
  transform: translateX(5px) !important;
  box-shadow: 0 2px 8px rgba(0, 70, 184, 0.08) !important;
}

/* Formatação do Conteúdo do Artigo */
.post-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.blog-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 2rem;
}

.post-article-body h2 {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #edf2f7;
}

.post-article-body h3 {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.75rem 0 0.75rem;
}

.post-article-body p {
  margin-bottom: 1.4rem;
}

.post-article-body ul, .post-article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-article-body li {
  margin-bottom: 0.5rem;
}

/* Callout Boxes (Dicas de Ouro & Alertas) */
.blog-callout {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 5px solid #0046b8;
}

.blog-callout.gold-tip {
  background: #f0f7ff;
  border-left-color: #0046b8;
}

.blog-callout.danger-tip {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

/* Card de Produto no Corpo do Artigo */
.blog-product-card {
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 70, 184, 0.06);
  position: relative;
}

.product-card-badge {
  align-self: start;
  background: #0046b8;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.product-card-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.product-card-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.btn-blog-product {
  display: inline-block;
  background: #0046b8;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-blog-product:hover {
  background: #003285;
}

/* Tabelas Responsivas */
.blog-table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.blog-table th, .blog-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.blog-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
  .blog-hero-title {
    font-size: 2rem;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .b2b-cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .b2b-cta-actions {
    justify-content: center;
  }
  .post-reader-layout {
    grid-template-columns: 1fr;
  }
  .post-toc-sidebar {
    display: none; /* Oculta sidebar TOC em telas muito pequenas ou reposiciona */
  }
}
