/* ============================================================
   POST HERO — Intro Child  (v2)
   ============================================================ */

/* ── Layout principal ──────────────────────────────────────── */

.cs-entry__header-standard.fp-post-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

/* ── Imagem de destaque ────────────────────────────────────── */

.fp-post-hero .fp-post-hero__media {
  border-radius: .5rem;
  overflow: hidden;
  width: 100%;
  line-height: 0;
  margin: 0;
}

.fp-post-hero .fp-post-hero__figure {
  margin: 0;
  display: block;
}

.fp-post-hero .fp-post-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Área de conteúdo ──────────────────────────────────────── */

.fp-post-hero .fp-post-hero__content {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0;
}

/* ── Categoria ─────────────────────────────────────────────── */

.fp-post-hero .fp-post-hero__category {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin: 0 0 .2rem;
}

/* Força remoção do sublinhado/borda do tema pai */
.fp-post-hero .fp-post-hero__category a,
.fp-post-hero .fp-post-hero__category .cs-meta-category a,
.fp-post-hero .fp-post-hero__category .cs-entry__category a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--cs-primary-color, #1a1a1a) !important;
  opacity: .75;
  transition: opacity .2s;
}

.fp-post-hero .fp-post-hero__category a:hover {
  opacity: 1 !important;
  text-decoration: none !important;
}

/* ── Título ─────────────────────────────────────────────────── */

.fp-post-hero .fp-post-hero__title.cs-entry__title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em;
}

/* ── Excerpt ───────────────────────────────────────────────── */

.fp-post-hero .fp-post-hero__excerpt {
  margin: .15rem 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: #777;
  max-width: 65ch;
  font-weight: 400;
}

/* ── Byline: autor + data ──────────────────────────────────── */

.fp-post-hero .fp-post-hero__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem .75rem;
  margin-top: .35rem;
}

.fp-post-hero .fp-post-hero__author {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none !important;
  color: inherit !important;
  font-weight: 600;
  font-size: .875rem;
  transition: opacity .2s;
}

.fp-post-hero .fp-post-hero__author:hover {
  opacity: .7;
}

.fp-post-hero .fp-post-hero__author-avatar img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}

.fp-post-hero .fp-post-hero__meta-row {
  display: flex;
  align-items: center;
  gap: .25rem .5rem;
  font-size: .8rem;
  color: #999;
  padding-left: .75rem;
  border-left: 1px solid rgba(0, 0, 0, .12);
}

/* ── Linha de compartilhar ─────────────────────────────────── */

.fp-post-hero .fp-post-hero__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding-top: .75rem;
  margin-top: .35rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.fp-post-hero .fp-post-hero__share-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
  white-space: nowrap;
}

.fp-post-hero .fp-post-hero__share-buttons {
  display: flex;
  align-items: center;
  gap: .375rem;
}

/* ── Botões — cor única, tamanho único ─────────────────────── */

.fp-post-hero .fp-share-btn,
.fp-post-hero .fp-share-btn--whatsapp,
.fp-post-hero .fp-share-btn--x,
.fp-post-hero .fp-share-btn--linkedin,
.fp-post-hero .fp-share-btn--instagram {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;          /* 32px */
  height: 2rem !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
  color: #fff !important;
  background: #222 !important;     /* tom único escuro */
  transition: background .18s ease, transform .15s ease !important;
  position: relative;
  flex-shrink: 0;
  padding: 0 !important;
  box-shadow: none !important;
}

.fp-post-hero .fp-share-btn svg {
  width: .875rem !important;
  height: .875rem !important;
  flex-shrink: 0;
  pointer-events: none;
  fill: #fff !important;
}

.fp-post-hero .fp-share-btn:hover,
.fp-post-hero .fp-share-btn--whatsapp:hover,
.fp-post-hero .fp-share-btn--x:hover,
.fp-post-hero .fp-share-btn--linkedin:hover,
.fp-post-hero .fp-share-btn--instagram:hover {
  background: #444 !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

.fp-post-hero .fp-share-btn:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

/* ── Tooltip Instagram ─────────────────────────────────────── */

.fp-post-hero .fp-share-btn__tooltip {
  position: absolute;
  bottom: calc(100% + .375rem);
  left: 50%;
  transform: translateX(-50%) translateY(.25rem);
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: .6875rem;
  white-space: nowrap;
  padding: .2rem .5rem;
  border-radius: .2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s, transform .18s;
}

.fp-post-hero .fp-share-btn--instagram.fp-copied .fp-share-btn__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Desktop: ajustes de alinhamento e proporções ──────────── */

@media (min-width: 1024px) {

  /* Título alinhado à esquerda no desktop (tema pai centraliza) */
  .fp-post-hero .fp-post-hero__title.cs-entry__title {
    text-align: left !important;
  }

  /* Categoria e meta também à esquerda */
  .fp-post-hero .fp-post-hero__category .cs-entry__post-meta,
  .fp-post-hero .fp-post-hero__category .cs-meta-category {
    justify-content: flex-start !important;
  }

  /* Mais espaço entre imagem e conteúdo */
  .cs-entry__header-standard.fp-post-hero {
    gap: 1.75rem;
    margin-bottom: 2.25rem;
  }

  /* Excerpt proporcional à largura maior */
  .fp-post-hero .fp-post-hero__excerpt {
    font-size: 1.0625rem;
    max-width: 72ch;
  }
}

/* ── Responsivo ─────────────────────────────────────────────── */

@media (max-width: 767.98px) {

  .fp-post-hero .fp-post-hero__excerpt {
    font-size: .9rem;
  }

  .fp-post-hero .fp-post-hero__meta-row {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 479.98px) {

  .fp-post-hero .fp-post-hero__byline {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }

  .fp-post-hero .fp-post-hero__meta-row {
    padding-left: 0;
    border-left: none;
  }
}
