/* ============================================================
   notes.css — Notes section (imported raw notes, searchable)
   ============================================================ */

.notes-toolbar {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.notes-toolbar .search-bar { flex: 1; }
.notes-toolbar .search-bar__input { width: 100%; }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.note-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.note-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.note-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.note-card__source-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Raw content — preserved as typed */
.note-card__content {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  border: 1px solid var(--color-border-light);
  max-height: 180px;
  overflow-y: auto;
}

/* Highlight search term in content */
.note-card__content mark {
  background: rgba(99,102,241,0.2);
  color: var(--color-accent);
  border-radius: 2px;
  padding: 0 2px;
}

.note-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.note-card__linked {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--color-income);
  font-weight: 600;
}

.note-card__actions {
  display: flex;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition);
}

.note-card:hover .note-card__actions { opacity: 1; }
