/* ============================================================================
   SIDEBAR POPULAR POSTS - Blog V2
   Popular Posts Sidebar Card
   Extracted from blog-v2.css
   ============================================================================ */

.popular-posts-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffc857, #ff9f1c);
  box-shadow: 0 2px 0 rgba(4, 43, 51, 0.3);
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-post-item {
  position: relative;
}

.popular-post-link {
  display: flex;
  gap: var(--sp-2, 12px);
  padding: var(--sp-2, 12px);
  border-radius: var(--radius-cartoon, 18px);
  border: 2px solid var(--c-border);
  background: var(--c-bg-alt);
  text-decoration: none;
  color: inherit;
  transition: all var(--motion-med) var(--motion-curve);
  box-shadow: 0 2px 0 rgba(4, 43, 51, 0.2);
}

.popular-post-link:hover {
  border-color: var(--c-accent);
  transform: translateX(4px);
  box-shadow: 0 3px 0 var(--c-border), 0 5px 0 #042b33;
}

.popular-post-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--c-accent);
  color: var(--c-bg);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 0 #042b33;
}

.popular-post-info {
  flex: 1;
  min-width: 0;
}

.popular-post-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--c-text-dim);
}

.popular-post-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .popular-post-link {
    transition: none;
  }
  .popular-post-link:hover {
    transform: none;
  }
}
