/**
 * Diário do Comércio — Trends
 * Folha exclusiva do layout trends (single-trends + header-trends).
 * Não alterar portal.css para este projeto.
 *
 * Escopo: body.dc-trends
 */

/* Variáveis locais do Trends (podem ser sobrescritas no PHP via style inline) */
body.dc-trends {
  --trends-category-color: var(--client-color, #004934);
}

/* Esconde faixa mobile de publicidade legal */
body.dc-trends .publicidade-legal {
  display: none !important;
}

/* Esconde categoria no artigo Trends */
body.dc-trends article .category {
  display: none !important;
}

/* Título do artigo */
body.dc-trends article h1 {
  font-size: 22px;
  line-height: 23px;
}

/* Autor: sem descrição + avatar menor */
body.dc-trends .autor-description {
  display: none !important;
}

body.dc-trends .autor-avatar {
  width: 30px;
  height: 30px;
}

/* ---- Paywall / Continuar lendo ---- */
body.dc-trends .content-article.is-locked .dc-paywall__hidden {
  display: none !important;
}

body.dc-trends .dc-paywall__teaser {
  position: relative;
  margin-bottom: 0;
}

body.dc-trends .dc-paywall__teaser .dc-paywall__lead {
  margin-bottom: 0;
}

body.dc-trends .dc-paywall__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.5rem;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

body.dc-trends .dc-paywall__cta {
  display: block;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--bs-green, #046852);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

body.dc-trends .dc-paywall__cta:hover {
  opacity: 0.92;
}

body.dc-trends .dc-paywall__cta:active {
  transform: scale(0.995);
}

/* Oculta blocos pós-conteúdo enquanto o paywall estiver fechado */
body.dc-trends.dc-paywall-locked article > .alert-message,
body.dc-trends.dc-paywall-locked article > .author-box-final-wrapper,
body.dc-trends.dc-paywall-locked article > .d-block.d-md-none,
body.dc-trends.dc-paywall-locked article > .reportContent,
body.dc-trends.dc-paywall-locked article > .d-flex.flex-wrap,
body.dc-trends.dc-paywall-locked article > hr,
body.dc-trends.dc-paywall-locked .social-platform,
body.dc-trends.dc-paywall-locked #taboola-below-articles-thumbnails {
  display: none !important;
}

/* Bigode / subtítulo */
body.dc-trends .bigode {
  color: var(--trends-category-color) !important;
}

/* Links / botões tintados pela cor da editoria */
body.dc-trends .links-button {
  background-color: var(--trends-category-color) !important;
}

/* Taboola — acentos pela cor da editoria */
body.dc-trends span.video-label.video-title.trc_ellipsis {
  color: var(--trends-category-color) !important;
}

body.dc-trends span.static-text.tbl-fixed-label.tbl-small-label.bottom-left {
  background-color: var(--trends-category-color) !important;
}

body.dc-trends button.video-cta-button.video-cta-style {
  background-color: var(--trends-category-color) !important;
  color: #fff !important;
  border: 0 !important;
}

body.dc-trends .tbl-read-more-box a {
  background-color: var(--trends-category-color) !important;
}

/* Box "Sobre o autor" */
body.dc-trends .author-box-final {
  background: #ebebeb;
  border-radius: 16px;
  margin-bottom: 16px;
}

body.dc-trends .author-box-final__foto {
  width: 100px;
  height: 100px;
  background: #fff;
}

body.dc-trends .author-box-final__rotulo {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b726d;
  margin-bottom: 4px;
}

body.dc-trends .author-box-final__nome {
  color: #14201b;
  font-weight: 800;
}

body.dc-trends .author-box-final__nome a {
  color: inherit;
  text-decoration: none;
}

body.dc-trends .author-box-final__nome a:hover {
  text-decoration: underline;
}

body.dc-trends .author-box-final__bio {
  color: #5a625d;
  font-size: 0.92rem;
  max-width: 680px;
}

body.dc-trends .author-box-final__redes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) {
  body.dc-trends .author-box-final__redes {
    justify-content: flex-start;
  }
}

body.dc-trends .author-box-final__rede-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #004934;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

body.dc-trends .author-box-final__rede-link:hover {
  background: #004934;
  color: #fff;
  transform: translateY(-2px);
}
