/* ============================================================
   DIRIJA FÁCIL — blog.css
   Estilos para blog listing e single post
   ============================================================ */

/* ---------- NAV LINK ATIVO ---------- */
.nav-link.active { color: var(--pink); }

/* ---------- PAGE HERO (banner de topo) ---------- */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 80px 20px 20px;
  max-width: 820px;
  width: 100%;
}

.page-hero-content h1 {
  font-family: var(--font-main);
  font-size: 64px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--pink);
  margin-bottom: 14px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.page-hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.post-hero-category {
  display: inline-block;
  background: var(--pink);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb i { font-size: 10px; opacity: .6; }

/* ---------- BLOG LISTING ---------- */
.blog-listing { background: var(--gray-light); padding: 50px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Post card */
.post-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-card-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pink);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}

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

.post-card-title {
  font-family: var(--font-slab);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card-title a {
  color: var(--dark);
  transition: color var(--transition);
}
.post-card-title a:hover { color: var(--pink); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer { margin-top: auto; }

/* ---------- ARTICLE LAYOUT ---------- */
.article-section { background: var(--gray-light); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* Article content */
.article-content {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  transition: gap var(--transition), color var(--transition);
}
.back-link:hover { gap: 12px; color: var(--pink-hover); }
.back-link-bottom { margin-top: 40px; margin-bottom: 0; }

.article-body { margin-bottom: 48px; }

.article-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--pink);
}

.article-body p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Tip cards */
.article-tip {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 4px solid var(--pink);
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-tip:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.tip-number {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-main);
}

.tip-content h2 {
  font-family: var(--font-slab);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.tip-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Article CTA box */
.article-cta {
  background: var(--dark);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  margin-bottom: 32px;
}
.article-cta h3 {
  font-family: var(--font-slab);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}
.article-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---------- SIDEBAR ---------- */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}
.sidebar-widget p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.sidebar-title {
  font-family: var(--font-slab);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink);
  display: inline-block;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-posts li a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-posts li a:hover { color: var(--pink); }
.sidebar-posts li img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-contact .footer-contact-list li {
  font-size: 13px;
  color: var(--text-light);
  gap: 8px;
}
.sidebar-contact .footer-contact-list li i {
  color: var(--pink);
  font-size: 14px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 60vh; }
  .page-hero-content h1 { font-size: 42px; letter-spacing: 1px; }
  .page-hero-subtitle { font-size: 15px; }
  .article-content { padding: 28px 20px; }
  .article-tip { flex-direction: column; gap: 14px; }
}

@media (max-width: 480px) {
  .page-hero { min-height: 50vh; }
  .page-hero-content h1 { font-size: 32px; }
  .page-hero-subtitle { display: none; }
}
