/* ==========================================================================
   Page History Plugin – style stopki na stronie
   ========================================================================== */

.page-history-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

/* ── Metadane ─────────────────────────────────────── */

.page-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-bottom: 0.75rem;
}

.ph-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ph-label {
  font-weight: 600;
  color: #334155;
}

.ph-value {
  color: #475569;
}

/* ── Ikony ────────────────────────────────────────── */

.ph-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.ph-icon-sm {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.4;
}

/* ── Sekcja rewizji (details/summary) ─────────────── */

.ph-revisions {
  margin-top: 0.25rem;
}

.ph-revisions-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #334155;
  list-style: none;
  padding: 0.35rem 0;
  user-select: none;
  transition: color .15s;
}

.ph-revisions-toggle::-webkit-details-marker { display: none; }

.ph-revisions-toggle:hover {
  color: #1d4ed8;
}

.ph-count {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.85em;
}

/* ── Lista rewizji ────────────────────────────────── */

.ph-revisions-list {
  list-style: none;
  margin: 0.6rem 0 0 0;
  padding: 0;
  border-left: 2px solid #e2e8f0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ph-rev-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
}

.ph-rev-item time {
  flex: 1;
  font-variant-numeric: tabular-nums;
}

.ph-rev-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color .15s;
}

.ph-rev-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Responsywność ────────────────────────────────── */

@media (max-width: 580px) {
  .page-history-meta {
    flex-direction: column;
    gap: 0.45rem;
  }
}

/* Autor przy rewizji */
.ph-rev-author {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
  flex: 1;
}

/* Wersja oryginalna */
.ph-rev-link--original {
  color: #7c3aed;
}
.ph-rev-link--original:hover {
  color: #6d28d9;
}
