/* ===== DETALHE DA PRODUÇÃO ===== */

.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 40px 0;
  color: var(--white);
}

.page-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.page-hero p  { font-size: 15px; color: rgba(255,255,255,.75); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}

.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ===== LAYOUT ===== */
.detalhe-wrapper {
  background: var(--light-gray);
  padding: 48px 0 80px;
}

.detalhe-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.detalhe-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== SEÇÕES ===== */
.detalhe-section {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  margin-bottom: 20px;
}

.detalhe-section:last-child { margin-bottom: 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}

.section-label svg { color: var(--primary); flex-shrink: 0; }

/* ===== BLOCO DE TÍTULO DA PRODUÇÃO ===== */
.producao-titulo-bloco {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  margin-bottom: 20px;
}

.producao-tipo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.tipo-badge.tipo-artigo-revista   { background: rgba(0,180,180,.12); color: #007a7a; }
.tipo-badge.tipo-artigo-congresso { background: rgba(59,130,246,.12); color: #1d4ed8; }
.tipo-badge.tipo-capitulo-livro   { background: rgba(139,92,246,.12); color: #6d28d9; }
.tipo-badge.tipo-autoria-livro    { background: rgba(245,158,11,.12); color: #92400e; }
.tipo-badge.tipo-software         { background: rgba(16,185,129,.12); color: #065f46; }
.tipo-badge.tipo-relatorio        { background: rgba(100,116,139,.12); color: #374151; }
.tipo-badge.tipo-tese             { background: rgba(239,68,68,.12); color: #991b1b; }
.tipo-badge.tipo-outro            { background: rgba(148,163,184,.12); color: #374151; }

.producao-titulo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 16px;
}

.producao-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--light-gray);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===== TEXTO / REFERÊNCIA ===== */
.ref-block {
  background: #f8fffe;
  border: 1px solid rgba(0,180,180,.2);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  white-space: pre-line;
}

.ref-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid #dde4ea;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .2s, color .2s;
}

.ref-copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.ref-copy-btn.copied { border-color: #10b981; color: #10b981; }

/* ===== PROJETOS VINCULADOS ===== */
.projetos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.projeto-vinculado-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.projeto-vinculado-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,180,180,.12);
  transform: translateY(-2px);
}

.projeto-vinculado-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.projeto-vinculado-card:hover .projeto-vinculado-img { transform: scale(1.04); }

.projeto-vinculado-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.projeto-vinculado-tipo {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 2px 8px;
  border-radius: 10px;
  align-self: flex-start;
  background: rgba(0,180,180,.12);
  color: var(--primary);
}

.projeto-vinculado-titulo {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
}

.projeto-vinculado-meta {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ===== PESQUISADORES ENVOLVIDOS ===== */
.pesquisadores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pesquisador-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--light-gray);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.pesquisador-card:hover {
  border-color: var(--primary);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,180,180,.1);
}

.pesquisador-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  margin-bottom: 12px;
}

.pesquisador-avatar-initials {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  margin-bottom: 12px;
}

.pesquisador-avatar-link { display: block; text-decoration: none; }
.pesquisador-avatar-link:hover .pesquisador-avatar,
.pesquisador-avatar-link:hover .pesquisador-avatar-initials { border-color: var(--primary); opacity: .85; }

.pesquisador-nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pesquisador-nome-link { text-decoration: none; color: var(--dark); }
.pesquisador-nome-link:hover { color: var(--primary); }

.pesquisador-cargo {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pesquisador-lattes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.pesquisador-lattes:hover { text-decoration: underline; }

/* ===== SIDEBAR ===== */
.detalhe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  padding: 20px;
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-card-title svg { color: var(--primary); }

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  min-width: 80px;
  padding-top: 1px;
}

.info-val {
  font-size: 13px;
  color: var(--dark);
  flex: 1;
  word-break: break-word;
}

.info-val a { color: var(--primary); font-weight: 600; text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

.badge-detalhe {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}

.badge-detalhe.tipo-artigo-revista   { background: rgba(0,180,180,.12); color: #007a7a; }
.badge-detalhe.tipo-artigo-congresso { background: rgba(59,130,246,.12); color: #1d4ed8; }
.badge-detalhe.tipo-capitulo-livro   { background: rgba(139,92,246,.12); color: #6d28d9; }
.badge-detalhe.tipo-autoria-livro    { background: rgba(245,158,11,.12); color: #92400e; }
.badge-detalhe.tipo-software         { background: rgba(16,185,129,.12); color: #065f46; }
.badge-detalhe.tipo-relatorio        { background: rgba(100,116,139,.12); color: #374151; }
.badge-detalhe.tipo-tese             { background: rgba(239,68,68,.12); color: #991b1b; }
.badge-detalhe.tipo-outro            { background: rgba(148,163,184,.12); color: #374151; }

.badge-abrangencia {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  background: var(--light-gray);
  color: var(--dark);
}

.badge-abrangencia-Internacional { background: rgba(0,180,180,.1); color: #007a7a; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 12px; }
.badge-abrangencia-Nacional      { background: rgba(59,130,246,.1); color: #1d4ed8; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 12px; }
.badge-abrangencia-Regional      { background: rgba(245,158,11,.1); color: #92400e; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 12px; }

/* Visitas */
.visitas-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--light-gray);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Compartilhar */
.share-lista { display: flex; flex-direction: column; gap: 8px; }

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  text-align: left;
  transition: color .2s, border-color .2s, background .2s;
}

.share-btn:hover { color: var(--white); }
.share-whatsapp:hover  { border-color: #25d366; background: #25d366; }
.share-twitter:hover   { border-color: #000; background: #000; }
.share-linkedin:hover  { border-color: #0a66c2; background: #0a66c2; }
.share-copy:hover      { border-color: var(--primary); background: var(--primary); }
.share-copy.copied     { border-color: #10b981; background: #10b981; color: var(--white); }

/* Outras produções na sidebar */
.outras-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.outra-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
  transition: color .2s;
}

.outra-item:last-child { border-bottom: none; padding-bottom: 0; }

.outra-tipo {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--primary);
}

.outra-titulo {
  font-size: 12.5px;
  color: var(--dark);
  line-height: 1.4;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.outra-item:hover .outra-titulo { color: var(--primary); }

.outra-ano {
  font-size: 11px;
  color: var(--gray);
}

.sidebar-ver-todas {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}

.sidebar-ver-todas:hover { gap: 8px; }

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

@media (max-width: 768px) {
  .detalhe-layout { grid-template-columns: 1fr; }
  .detalhe-sidebar { order: -1; }
  .projetos-grid { grid-template-columns: 1fr; }
  .pesquisadores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .detalhe-section { padding: 20px 16px; }
  .producao-titulo-bloco { padding: 18px 16px; }
  .producao-titulo { font-size: 18px; }
  .pesquisadores-grid { grid-template-columns: 1fr; }
}
