/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Athenes — Estilos da Biblioteca de Leitura Zotero e Grafo de Conexões */

.ath-zotero-painel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ath-zotero-status-box {
  background: var(--ath-surface-elevated);
  border: 1px solid var(--ath-line);
  border-radius: var(--ath-radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ath-zotero-status-indicador {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ath-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ath-muted);
}

.ath-status-dot.conectado {
  background: var(--ath-ok);
  box-shadow: 0 0 0 2px var(--ath-ok-soft);
}

.ath-zotero-busca-input {
  margin-bottom: 12px;
}

.ath-zotero-lista {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card de Referência / Leitura */
.ath-ref-card {
  background: var(--ath-surface);
  border: 1px solid var(--ath-line);
  border-radius: var(--ath-radius-sm);
  padding: 12px;
  box-shadow: var(--ath-shadow-sm);
  transition: all 0.15s ease;
  cursor: pointer;
}

.ath-ref-card:hover {
  border-color: var(--ath-primary);
  box-shadow: var(--ath-shadow);
}

.ath-ref-card.selecionado {
  border-color: var(--ath-primary);
  background: var(--ath-primary-soft);
}

.ath-ref-card-titulo {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ath-text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.ath-ref-card-autores {
  font-size: 12px;
  color: var(--ath-text-secondary);
  margin-bottom: 4px;
}

.ath-ref-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ath-muted);
  margin-top: 6px;
}

/* Detalhes de Leitura e Fichamento */
.ath-leitura-detalhes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ath-line);
}

.ath-leitura-resumo-box {
  background: var(--ath-surface-elevated);
  border-radius: 4px;
  padding: 8px;
  font-size: 11.5px;
  color: var(--ath-text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.ath-leitura-fichamento-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ath-primary-ink);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ath-leitura-fichamento-input {
  width: 100%;
  min-height: 70px;
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--ath-line);
  background: #FFFFFF;
}

/* Grafo de Conexões */
.ath-grafo-container {
  width: 100%;
  height: 480px;
  background: #FFFFFF;
  border: 1px solid var(--ath-line);
  border-radius: var(--ath-radius);
  position: relative;
  overflow: hidden;
}

.ath-grafo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ath-grafo-legenda {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  padding: 8px 12px;
  border-radius: var(--ath-radius-sm);
  border: 1px solid var(--ath-line);
  font-size: 11px;
  display: flex;
  gap: 12px;
  box-shadow: var(--ath-shadow-sm);
}

.ath-grafo-legenda-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ath-grafo-cor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
