/* Post/Page list items */
.post-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--lm-border-color);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  margin: 0 -12px;
  padding: 16px 12px;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.post-list-item:has(+ .post-list-item:hover) {
  border-bottom-color: transparent;
}

.post-list-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.post-list-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.post-list-item-title {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  word-break: break-word;
}

.post-list-item-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.post-list-item-badge.public {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.post-list-item-badge.private {
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.post-list-item-badge.homepage {
  background-color: rgba(24, 144, 255, 0.1);
  color: #1890ff;
}

.post-list-item-badge.scheduled {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-list-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.post-list-item-meta {
  font-size: 1.2rem;
  color: var(--lm-text-muted-color);
  margin-top: 6px;
}

.post-list-item-excerpt {
  font-size: 1.3rem;
  color: var(--lm-text-muted-color);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark mode */
body[data-theme="dark"] .post-list-item {
  border-bottom-color: var(--dm-border-color);
}

body[data-theme="dark"] .post-list-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom-color: transparent;
}

body[data-theme="dark"] .post-list-item-meta,
body[data-theme="dark"] .post-list-item-excerpt {
  color: var(--dm-text-muted-color);
}

body[data-theme="dark"] .post-list-item-badge.public {
  background-color: rgba(40, 167, 69, 0.15);
}

body[data-theme="dark"] .post-list-item-badge.private {
  background-color: rgba(108, 117, 125, 0.15);
}

body[data-theme="dark"] .post-list-item-badge.homepage {
  background-color: rgba(24, 144, 255, 0.15);
}

body[data-theme="dark"] .post-list-item-badge.scheduled {
  background-color: rgba(255, 152, 0, 0.15);
}

/* Pro badge for dropdown menu items */
.pro-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  background: linear-gradient(135deg, #D99520, #D94060, #0090DD);
  color: #fff;
  margin-left: 8px;
  vertical-align: middle;
}
