/* CAM Views & Trending. Change --cam-vt-accent to match your theme. */
:root {
  --cam-vt-accent: #0B6B6A;
  --cam-vt-ink: #12203A;
  --cam-vt-muted: #4A5568;
  --cam-vt-line: #E5EAF1;
}

.cam-vt-wrap { margin: 0 0 1em; }

.cam-vt-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.6;
  color: var(--cam-vt-muted);
}
.cam-vt-icon { flex: none; }

.cam-vt-heading { margin: 0 0 0.6em; }

.cam-vt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cam-vt-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cam-vt-line);
}
.cam-vt-item:last-child { border-bottom: 0; }

.cam-vt-rank {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cam-vt-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-vt-thumb { flex: none; width: 64px; }
.cam-vt-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cam-vt-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cam-vt-title {
  font-weight: 600;
  line-height: 1.5; /* Malayalam needs room */
  color: var(--cam-vt-ink);
  text-decoration: none;
}
.cam-vt-title:hover { text-decoration: underline; }

.cam-vt-empty { color: var(--cam-vt-muted); }

/* Grey box used where a thumbnail would be (Preview tab) */
.cam-vt-ph {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #CFD8E3;
}

/* Preview tab (admin only) */
.cam-vt-pv-banner { margin: 16px 0; padding: 10px 14px; background: #fff; border-left: 4px solid var(--cam-vt-accent); }
.cam-vt-pv-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.cam-vt-pv-panel { flex: 1 1 380px; min-width: 0; box-sizing: border-box; background: #fff; border: 1px solid #DDE3EC; border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; }
.cam-vt-pv-grid .cam-vt-pv-panel { margin-bottom: 0; }
.cam-vt-pv-narrow { max-width: 760px; }
.cam-vt-pv-panel h2 { margin: 0 0 4px; padding: 0; font-size: 18px; }
.cam-vt-pv-tag { display: block; margin-bottom: 14px; font-size: 13px; color: var(--cam-vt-muted); }
.cam-vt-pv-post h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.cam-vt-pv-side { background: #F6F8FB; border: 1px solid #DDE3EC; border-radius: 12px; padding: 16px 18px; }
.cam-vt-pv-side h3 { margin: 0 0 .5em; font-size: 18px; }
