/* public_html/assets/css/dica.css */

/* Reset mínimo para não “descolar” do header */
html, body { margin: 0 !important; padding: 0 !important; border: 0; }

.tip-post{
  --ink: #1f1d1b;
  --muted: #777;
  --line: #eee;
  --surface: #fff;
  --accent: #1ea4b5;           /* igual ao destaque da listagem */
  --shadow: 0 10px 22px rgba(0,0,0,0.06);
  --radius: 14px;

  color: var(--ink);
  background: #fff;            /* remove o “fundo fancy” */
  padding: 18px 0 64px;
}

/* Container igual ao das outras páginas (se não existir global) */
.tip-post .container{
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

/* Breadcrumb mais discreto */
.tip-post .breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.tip-post .breadcrumb a{ color: inherit; text-decoration:none; }
.tip-post .breadcrumb a:hover{ color: var(--ink); }

/* HERO: compacto e “store-like” */
.post-hero{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.post-header{
  display:grid;
  gap: 8px;
  margin-top: 8px;
  max-width: 900px;
}

.post-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30,164,181,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.post-title{
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem); /* bem mais “normal” */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-meta{
  color: var(--muted);
  font-size: 13px;
}

/* Corpo com largura confortável (não “gigante”) */
.post-body{
  padding: 0 0 24px;
}

.post-body .container{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Media: menos “cartão pesado”, mais clean */
.post-media{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
}
.post-media img{
  width: 100%;
  height: auto;
  display: block;
}

/* Conteúdo: look editorial, mas com linguagem da loja */
.post-content{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  line-height: 1.75;
  box-shadow: none; /* tira o “pesado” */
}

.post-content h2,
.post-content h3,
.post-content h4{
  margin: 22px 0 10px;
  line-height: 1.25;
}
.post-content p{ margin: 0 0 14px; color: #444; }
.post-content ul, .post-content ol{ margin: 0 0 14px 18px; }
.post-content img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Ações (partilha + voltar) com cara de UI */
.post-share{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.post-share__label{
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
  font-size: 13px;
}

.share-button{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  height: 38px;                 /* menor e consistente */
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration:none;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.share-button svg{ width: 18px; height: 18px; }

.share-button:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.share-button--ghost{
  background: rgba(30,164,181,0.10);
  border-color: transparent;
}

.copy-status{
  font-size: 12px;
  color: var(--muted);
}

/* Voltar: dá-lhe espaço e mantém simples */
.post-back{
  margin-top: 14px;
}

/* Relacionados: igual ao tom “cards” da listagem */
.post-related{
  padding: 26px 0 0;
}
.post-related h2{
  margin: 0 0 12px;
  font-size: 16px;
}

.related-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  display:grid;
  grid-template-rows: auto 1fr;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.related-card__media{
  display:block;
  aspect-ratio: 16 / 10;
  background: #f7f7f7;
  overflow:hidden;
}

.related-card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.related-card__body{
  padding: 12px;
  display:grid;
  gap: 6px;
}

.related-meta{
  margin:0;
  font-size: 12px;
  color: var(--muted);
}

.related-card__body h3{
  margin:0;
  font-size: 14px;
  line-height: 1.35;
}
.related-card__body h3 a{ color: inherit; text-decoration:none; }
.related-card__body h3 a:hover{ color: var(--accent); }

.related-card__body p{
  margin:0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.post-state{
  padding: 22px;
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  text-align:center;
}

.post-state--error{
  border-color: rgba(191,46,46,0.3);
}

/* Focus acessível */
.tip-post a:focus-visible,
.tip-post button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 740px){
  .post-content{ padding: 16px; }
  .post-share{ padding: 12px; }
}
