/**
 * Jumlah Pembaca - Front-end Stylesheet
 */

/* Badge Jumlah Pembaca */
.jumlah-pembaca-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background-color: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  margin: 10px 0 16px 0;
  line-height: 1.4;
  border: 1px solid #e2e8f0;
}

.jumlah-pembaca-badge .jp-icon {
  stroke: #2563eb;
  flex-shrink: 0;
}

.jumlah-pembaca-badge .jp-count-number {
  font-weight: 700;
  color: #0f172a;
}

/* Daftar Widget Artikel Populer */
.jumlah-pembaca-popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.jp-popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

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

.jp-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.jp-popular-item:nth-child(1) .jp-rank-badge {
  background-color: #fef08a;
  color: #854d0e;
}
.jp-popular-item:nth-child(2) .jp-rank-badge {
  background-color: #e2e8f0;
  color: #475569;
}
.jp-popular-item:nth-child(3) .jp-rank-badge {
  background-color: #ffedd5;
  color: #9a3412;
}

.jp-thumb-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.jp-popular-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jp-popular-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jp-popular-title:hover {
  color: #2563eb;
}

.jp-popular-views {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}