/**
 * Post Views Counter Styles
 *
 * @package Niche_Blog_Pro
 */

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.post-views svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.post-views:hover {
  color: var(--text-primary);
}

.post-views:hover svg {
  color: var(--primary-color);
}

.views-count {
  font-weight: 500;
}

/* In entry meta */
.entry-meta .post-views {
  margin-right: 15px;
}

/* In blog cards */
.blog-card-meta .post-views {
  margin-right: 12px;
}

/* Popular posts widget */
.popular-posts-widget {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg, 24px);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.popular-posts-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.popular-posts-widget .widget-title svg {
  color: var(--primary-color);
}

.popular-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-post-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post-item:first-child {
  padding-top: 0;
}

.popular-post-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

.popular-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-thumbnail img {
  transform: scale(1.1);
}

.popular-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.popular-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.popular-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.popular-post-title a:hover {
  color: var(--primary-color);
}

.popular-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.popular-post-meta .post-views {
  font-size: 12px;
}

/* View count badge in popular posts */
.popular-post-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #6f42c1));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .post-views {
    font-size: 13px;
  }

  .post-views svg {
    width: 14px;
    height: 14px;
  }

  .popular-post-thumbnail {
    width: 60px;
    height: 60px;
  }

  .popular-post-title {
    font-size: 13px;
  }

  .popular-post-meta {
    font-size: 11px;
  }
}