/**
 * Estilo editorial tipo revista (referência Divirto) — Vida 360º
 * Grelha limpa, cabeçalho de artigo e promo sticky inferior.
 */

/* —— Home: grelha revista —— */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
  text-align: left;
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

.magazine-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  text-align: left;
  position: relative;
}

.magazine-card::before {
  display: none;
}

.magazine-card a.magazine-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.magazine-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f0f2;
  border-radius: 2px;
}

.magazine-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.magazine-card a:hover .magazine-card__media img {
  transform: scale(1.03);
}

.magazine-card__title {
  margin: 0.85rem 0 0.35rem;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.magazine-card a:hover .magazine-card__title {
  color: #0f766e;
}

.magazine-card__date {
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9399;
}

#posts-container.magazine-home {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

#posts-container.magazine-home .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

#posts-container.magazine-home .section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.home-hero--compact {
  padding: clamp(1rem, 2vw, 1.5rem) !important;
  margin-bottom: 1.25rem !important;
}

.home-hero--compact h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem) !important;
}

.home-hero--compact .hero-helper,
.home-hero--compact .next-step {
  display: none;
}

.home-hero--compact .hero-ctas .btn-forja-cta {
  display: none;
}

/* —— Artigo: cabeçalho editorial —— */
.article-shell {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.article-breadcrumb {
  font-size: 0.8rem;
  color: #8a9399;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.article-breadcrumb a {
  color: #5b6b73;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.article-category {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
}

.article-shell .article-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 800;
  margin: 0 0 1rem;
  text-align: left;
}

.article-read-meta {
  margin: 0.35rem 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9399;
}

.share-buttons.share-buttons--top {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.share-buttons.share-buttons--top h3 {
  display: none;
}

.share-buttons.share-buttons--top .share-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
  min-width: 0;
}

/* —— Sticky promo inferior (estilo Divirto, tom Vida 360) —— */
.promo-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: 1200;
  width: min(920px, calc(100% - 1.5rem));
  box-sizing: border-box;
  display: none;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  background: linear-gradient(100deg, #115e59 0%, #0f766e 50%, #0d9488 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(15, 118, 110, 0.28);
}

.promo-sticky.is-visible {
  display: flex;
}

.promo-sticky.is-hidden-by-user {
  display: none !important;
}

.promo-sticky__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.promo-sticky__body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.promo-sticky__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.promo-sticky__sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.35;
}

.promo-sticky__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: #99f6e4;
  color: #115e59 !important;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.promo-sticky__cta:hover,
.promo-sticky__cta:focus {
  background: #ccfbf1;
  transform: translateY(-1px);
  color: #115e59 !important;
}

.promo-sticky__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.promo-sticky__close:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .promo-sticky {
    flex-wrap: wrap;
    left: 0.75rem;
    right: 4.75rem;
    width: auto;
    max-width: none;
    transform: none;
    bottom: 5.25rem;
    padding-right: 1.75rem;
  }

  .promo-sticky__cta {
    width: 100%;
  }
}

#post-content.post-content-ready {
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-align: left;
}

.article-shell #post-content {
  background: transparent;
  padding: 0.25rem 0 1.5rem;
  text-align: left;
}

.article-shell .comment-section {
  text-align: left;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
