/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar .widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}

.sidebar .widget-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

.sidebar ul { list-style: none; }

.sidebar ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.sidebar ul li:last-child { border-bottom: none; }

.sidebar ul li a { color: var(--text); }
.sidebar ul li a:hover { color: var(--primary); padding-left: 4px; }

/* Widget: Popular Posts with view count */
.widget_popular_posts .popular-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.widget_popular_posts .popular-item:last-child { border-bottom: none; }

.widget_popular_posts .popular-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.widget_popular_posts .popular-info h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget_popular_posts .popular-info h4 a { color: var(--text); }

.widget_popular_posts .popular-info .views {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Widget: Recent Comments */
.widget_recent_comments .comment-item-sidebar {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.widget_recent_comments .comment-item-sidebar:last-child { border-bottom: none; }

.comment-avatar-sidebar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-info-sidebar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author-sidebar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.comment-text-sidebar {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.comment-text-sidebar:hover { color: var(--primary); }

/* Tag Cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px !important;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.tagcloud a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
