/* ── Post view counter ── */
.post-views {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.75;
}

/* Type badge colors for LXC, VM, Addon, PVE tags */
a.post-tag[href*="/tags/ct/"],
a.post-tag[href*="/tags/lxc/"] {
  background-color: #1e6f3e !important;
  color: #fff !important;
  border-color: #1e6f3e !important;
}

a.post-tag[href*="/tags/vm/"] {
  background-color: #1a4f8a !important;
  color: #fff !important;
  border-color: #1a4f8a !important;
}

a.post-tag[href*="/tags/addon/"] {
  background-color: #7a3e9d !important;
  color: #fff !important;
  border-color: #7a3e9d !important;
}

a.post-tag[href*="/tags/pve/"] {
  background-color: #b84e00 !important;
  color: #fff !important;
  border-color: #b84e00 !important;
}

a.post-tag[href*="/tags/auto-update/"] {
  background-color: #2a7a7a !important;
  color: #fff !important;
  border-color: #2a7a7a !important;
}

a.post-tag[href*="/tags/dev/"] {
  background-color: #e07b00 !important;
  color: #fff !important;
  border-color: #e07b00 !important;
}

/* Type badges shown next to post titles on home and category pages */
.type-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.35em;
  line-height: 1.4;
  text-transform: uppercase;
}

.type-lxc  { background-color: #1e6f3e; color: #fff; }
.type-vm   { background-color: #1a4f8a; color: #fff; }
.type-addon{ background-color: #7a3e9d; color: #fff; }
.type-pve  { background-color: #b84e00; color: #fff; }
.type-turnkey { background-color: #2a7a7a; color: #fff; }
.type-dev     { background-color: #e07b00; color: #fff; }

/* ── Resource pills (CPU / RAM / Disk / OS) ── */
.resource-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}

.res-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3em 0.75em;
  border-radius: 20px;
  color: #fff;
}

.res-cpu  { background-color: #1a4f8a; }
.res-ram  { background-color: #1e6f3e; }
.res-disk { background-color: #7a3e9d; }
.res-os   { background-color: #555;    }
.res-port { background-color: #b84e00; }

/* ── Info callout boxes ── */
.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(13, 110, 253, 0.07);
  border-left: 4px solid #0d6efd;
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 1rem;
  margin: 0.6rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.info-icon, .info-callout .fas {
  font-size: 1rem;
  color: #0d6efd;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Warning callout boxes ── */
.warn-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 1rem;
  margin: 0.6rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.warn-callout .fas {
  font-size: 1rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Dev (in development) callout ── */
.dev-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(224, 123, 0, 0.08);
  border-left: 4px solid #e07b00;
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 1rem;
  margin: 0.6rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.dev-callout .fas {
  font-size: 1rem;
  color: #e07b00;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Unavailable (disabled) callout ── */
.unavail-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(220, 38, 38, 0.08);
  border-left: 4px solid #dc2626;
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 1rem;
  margin: 0.6rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.unavail-callout .fas {
  font-size: 1rem;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Post app icons ── */
.post-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Neutralize the shimmer/preview-img wrapper the theme injects around post-icon on home page */
h1.card-title .preview-img,
h1.card-title .shimmer {
  aspect-ratio: unset;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  background: none !important;
  overflow: visible;
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 10px;
}

h1.card-title .preview-img::before,
h1.card-title .shimmer::before {
  display: none !important;
}

h1.card-title .preview-img img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

/* ── Styled credentials table ── */
.styled-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
}

.styled-table table thead th {
  background-color: #1a4f8a;
  color: #fff;
  padding: 0.5rem 1rem;
  text-align: left;
}

.styled-table table tbody td {
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
