/* Custom styles for sidebar - Better text handling */

/* Category and tag links - truncate with ellipsis */
.widget .category-list a,
.widget .tag-list a,
.widget .archive-list a,
.widget a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.8;
}

/* Show full text on hover with tooltip-style effect */
.widget .category-list a:hover,
.widget .tag-list a:hover,
.widget .archive-list a:hover,
.widget a:hover {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  background: rgba(37, 143, 184, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin: -4px -8px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Better count badge positioning */
.widget .category-list-count,
.widget .tag-list-count {
  float: right;
  margin-left: 8px;
  background: rgba(37, 143, 184, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  min-width: 24px;
  text-align: center;
}

/* Nested category indentation */
.widget .category-list-child {
  margin-left: 12px;
  border-left: 2px solid #ddd;
  padding-left: 8px;
}
