/* ═══════════════════════════════════════════════════════
   CONSENSUS HEDERA — Blockchain Viewer Styling
   Dark-themed Hedera topic viewer
   ═══════════════════════════════════════════════════════ */

/* ── Hedera Viewer ───────────────────────────────────── */
.hedera-viewer {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  color: #e0e0e0;
  font-family: var(--font-body);
}

.hedera-viewer h1,
.hedera-viewer h2,
.hedera-viewer h3 {
  color: var(--core-hedera-light);
}

.hedera-viewer h1 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid #2a2a4a;
  padding-bottom: var(--space-md);
}

.hedera-viewer h2 {
  font-size: 1.125rem;
  margin: var(--space-xl) 0 var(--space-md);
}

/* ── Topic Info ──────────────────────────────────────── */
.hedera-topic-info {
  background: #222244;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid #333366;
}

.hedera-topic-info dt {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--core-hedera-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.hedera-topic-info dd {
  font-size: 0.875rem;
  color: #e0e0e0;
  margin-bottom: var(--space-md);
  margin-left: 0;
  word-break: break-all;
}

.hedera-topic-info dd:last-child {
  margin-bottom: 0;
}

/* ── Message List ────────────────────────────────────── */
.hedera-messages {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hedera-message {
  background: #222244;
  border: 1px solid #333366;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.hedera-message:hover {
  border-color: var(--core-hedera);
}

.hedera-message__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
}

.hedera-message__seq {
  color: var(--core-hedera-light);
  font-weight: 700;
  font-family: var(--font-mono);
}

.hedera-message__time {
  color: #888;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.hedera-message__content {
  font-size: 0.8125rem;
  color: #d0d0d0;
  line-height: 1.5;
  word-break: break-word;
}

.hedera-message__hash {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid #333366;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: #666;
  word-break: break-all;
}

.hedera-message__hash-label {
  color: var(--core-hedera);
  font-weight: 600;
}

/* ── Vote Data ───────────────────────────────────────── */
.hedera-vote-data {
  background: #1e1e3a;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hedera-vote-data .key {
  color: var(--core-hedera-light);
}

.hedera-vote-data .value {
  color: #a0e0a0;
}

/* ── Error Page ──────────────────────────────────────── */
.hedera-error {
  max-width: 600px;
  margin: var(--space-3xl) auto;
  padding: var(--space-3xl);
  text-align: center;
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  color: #e0e0e0;
}

.hedera-error__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.hedera-error h2 {
  color: var(--core-hedera-light);
  margin-bottom: var(--space-md);
}

.hedera-error p {
  color: #aaa;
  margin-bottom: var(--space-xl);
}

.hedera-error a {
  color: var(--core-hedera-light);
}

.hedera-error a:hover {
  color: var(--core-hedera);
}

/* ── Pagination ──────────────────────────────────────── */
.hedera-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid #2a2a4a;
}

.hedera-pagination a {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  background: #222244;
  color: var(--core-hedera-light);
  border: 1px solid #333366;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
}

.hedera-pagination a:hover {
  background: var(--core-hedera);
  color: var(--pond-white);
  border-color: var(--core-hedera);
}

/* ── Verification Status ─────────────────────────────── */
.hedera-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(130, 71, 229, 0.15);
  color: var(--core-hedera-light);
}

.hedera-verified__icon {
  font-size: 0.75rem;
}
