/* ==================================================
   BLOG CATALOGOSAAS - 2026 DESIGN SYSTEM
   Matches reference layout with visual identity
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body.blog-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #334155;
  background-color: #f8fafc;
}

/* --------------------------------------------------
   BLOG HERO SECTION
   -------------------------------------------------- */
.blog-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 50%, #0f172a 100%);
  color: #ffffff;
  padding: 130px 0 70px 0;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.blog-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blog-hero p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.blog-search-form {
  position: relative;
  max-width: 480px;
}

.blog-search-form .form-control {
  height: 52px;
  border-radius: 50px;
  padding-left: 24px;
  padding-right: 60px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.blog-search-form .btn-search {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.blog-search-form .btn-search:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

.blog-hero-img-box img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --------------------------------------------------
   CATEGORIES PILLS BAR
   -------------------------------------------------- */
.categories-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.category-pill:hover,
.category-pill.active {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------
   FEATURED ARTICLES (ARTIGOS EM DESTAQUE)
   -------------------------------------------------- */
.section-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

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

.featured-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.featured-main-card:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.post-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.featured-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-title a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: #2563eb;
}

.featured-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.btn-read-more {
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.btn-read-more:hover {
  gap: 10px;
  color: #1d4ed8;
}

/* Mini Featured Cards (Right Stack) */
.mini-featured-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.mini-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.mini-featured-img {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-featured-content {
  flex: 1;
}

.mini-featured-category {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mini-featured-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-featured-title a {
  color: #0f172a;
  text-decoration: none !important;
}

.mini-featured-title a:hover {
  color: #2563eb;
}

/* --------------------------------------------------
   POST CARD (GRID STANDARD)
   -------------------------------------------------- */
.blog-post-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
}

.blog-post-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.blog-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-post-title a {
  color: #0f172a;
  text-decoration: none !important;
}

.blog-post-title a:hover {
  color: #2563eb;
}

.blog-post-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------
   SIDEBAR WIDGETS
   -------------------------------------------------- */
.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.widget-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-categories-list li {
  margin-bottom: 10px;
}

.widget-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.widget-categories-list a:hover {
  color: #2563eb;
}

.widget-categories-list .badge-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Popular posts list */
.popular-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.popular-number {
  font-size: 18px;
  font-weight: 800;
  color: #cbd5e1;
  width: 20px;
  text-align: center;
}

.popular-post-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post-content {
  flex: 1;
}

.popular-post-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.popular-post-title a {
  color: #0f172a;
  text-decoration: none !important;
}

.popular-post-title a:hover {
  color: #2563eb;
}

/* CTA Widget */
.widget-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #2563eb 100%);
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
}

.widget-cta h4 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.widget-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-cta-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.btn-cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* --------------------------------------------------
   PAGINATION
   -------------------------------------------------- */
.blog-pagination .pagination {
  margin-top: 30px;
}

.blog-pagination .page-item .page-link {
  border-radius: 8px !important;
  margin: 0 4px;
  color: #334155;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
}

.blog-pagination .page-item.active .page-link {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* --------------------------------------------------
   ARTICLE SINGLE READER VIEW (post.php)
   -------------------------------------------------- */
.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-top: 15px;
  margin-bottom: 15px;
}

.post-cover-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 35px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.post-content-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  margin-bottom: 40px;
}

.post-content-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 16px;
}

.post-content-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 14px;
}

.post-content-body p {
  margin-bottom: 20px;
}

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

.post-content-body li {
  margin-bottom: 8px;
}
