/* explorer.css — ChronX Explorer: toolbar, status, rebuilt table, cards */

.search-bar { display: flex; gap: 12px; max-width: 640px; margin: 0 auto 28px; }
.search-bar .input { flex: 1; }
@media (max-width: 600px) { .search-bar { flex-direction: column; } }

/* compact header — the old title overwhelmed the page */
.exp-head { margin-bottom: 18px; }
.exp-head h1 { font-size: clamp(26px, 4vw, 36px); }

.detail-panel {
  display: none;
  background: var(--bg2); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 30px;
}
.detail-panel.visible { display: block; }
.detail-row { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; align-items: baseline; }
.detail-row:last-child { border-bottom: none; }
.detail-key { flex-shrink: 0; width: 96px; color: var(--faint); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.detail-val { color: var(--text); word-break: break-word; }
.act-row .detail-val { font-size: 12.5px; }
.full-id { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11.5px; word-break: break-all; user-select: all; }
.tech-pre {
  max-height: 320px; overflow: auto; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 11px; line-height: 1.5; margin: 0;
  white-space: pre-wrap; word-break: break-all;
}
.adm-link-like {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font-size: 11px; text-decoration: underline; padding: 0;
}
.lock-when { font-size: 11.5px; }

/* ── Toolbar: filters · timezone · pause ─────────────────────────── */
.exp-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.exp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-filter {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
.exp-filter:hover { color: var(--text); border-color: var(--muted); }
.exp-filter.active {
  color: var(--gold); border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent); font-weight: 600;
}
.exp-controls { display: flex; gap: 8px; }
#exp-tz, #exp-pause {
  background: var(--bg2); border: 1px solid var(--border); color: var(--muted);
  padding: 5px 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
#exp-tz:hover, #exp-pause:hover { color: var(--text); border-color: var(--muted); }
#exp-pause.paused { color: var(--gold); border-color: var(--gold); }

/* ── Status line: Mainnet · Updated … · Index … ────────────────── */
.exp-status-line { font-size: 11.5px; color: var(--faint); margin: 0 0 12px; min-height: 16px; }
#exp-status-line.indexing::before,
#exp-status-line.fresh::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success, #4ade80); margin-inline-end: 6px; vertical-align: middle;
}
#exp-status-line.indexing::before { animation: idxPulse 1.2s ease-in-out infinite; }
#exp-status-line.fresh::before { opacity: .7; }
@keyframes idxPulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(74, 222, 128, .45); }
  50%      { opacity: .55; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.exp-recent { font-size: 15px; color: var(--muted); margin-bottom: 12px; }

/* ── Rebuilt table ───────────────────────────────────────────────── */
.exp-tbl th { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.exp-tbl td { font-size: 13px; vertical-align: middle; height: 44px; }
.amt-th, .amt-cell { text-align: right; }
.amt-cell .amt { color: var(--text); }
#blocks-body tr { cursor: pointer; transition: background .12s ease; }
#blocks-body tr:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }

/* transaction cell: mono id link + copy */
.tx-cell { white-space: nowrap; }
.tx-link {
  font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 12px;
  color: var(--gold); text-decoration: none;
}
.tx-link:hover { text-decoration: underline; }

/* copy buttons */
.copy-btn {
  background: none; border: none; color: var(--faint); cursor: pointer;
  font-size: 12px; padding: 2px 4px; margin-left: 4px; border-radius: 4px;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--gold); }
.copy-btn.copied { color: var(--success, #4ade80); }

/* ── Account cells: name over address ────────────────────────────── */
.acct-cell { line-height: 1.35; min-width: 0; }
.acct-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.acct-addr { white-space: nowrap; }
.acct-badges { font-size: 10.5px; }
.acct-badges a { color: var(--faint); text-decoration: none; }
.acct-badges a:hover { color: var(--gold); }
.addr-link {
  color: var(--muted); font-size: 11.5px; text-decoration: none;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.addr-link:hover { color: var(--gold); }

/* verification marks */
.vcheck {
  color: var(--success, #4ade80); font-weight: 700; font-size: 12px;
  cursor: help; margin-left: 3px; border: none; background: none; padding: 0;
}
.vcheck-link:hover { text-shadow: 0 0 6px color-mix(in srgb, var(--success, #4ade80) 60%, transparent); }
.vcheck-event { color: var(--success, #4ade80); }
.vcheck-revoked { color: var(--danger, #e05c5c); }

/* badges — restrained, only in details */
.chip {
  --c: #888;
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid var(--c); color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 600;
  white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px; line-height: 1.5;
}

/* activity chips */
.type-chip {
  --c: #888;
  background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c);
  padding: 2px 8px; border-radius: 8px; font-size: 10.5px;
  font-weight: 600; letter-spacing: .3px; white-space: nowrap;
}
.act-multi { font-size: 10.5px; color: var(--faint); margin-left: 5px; white-space: nowrap; }
.amt { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 12px; }

/* scarcity */
.scarcity-num { font-size: clamp(38px, 6vw, 56px); font-weight: 600; color: var(--gold); letter-spacing: -1px; }
.scarcity-desc { max-width: 520px; margin-inline: auto; }

/* ── Mobile: compact activity cards ──────────────────────────────── */
@media (max-width: 720px) {
  .exp-tbl thead { display: none; }
  .exp-tbl, .exp-tbl tbody, .exp-tbl tr, .exp-tbl td { display: block; width: 100%; }
  .exp-tbl tr {
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 10px; padding: 8px 12px; background: var(--bg2);
    cursor: pointer;
  }
  .exp-tbl td { height: auto; padding: 4px 0; border: none; }
  .exp-tbl td::before {
    content: attr(data-label); display: inline-block; width: 84px;
    font-size: 10px; text-transform: uppercase; letter-spacing: .8px;
    color: var(--faint); vertical-align: middle;
  }
  .amt-cell { text-align: left; }
  .acct-name { max-width: 60vw; }
}

/* ── Detail sub-fields (per-action labeled values) ───────────────── */
.sub-list { margin-top: 6px; border-left: 2px solid var(--border); padding-left: 10px; }
.sub-field { font-size: 11.5px; padding: 2px 0; color: var(--text); }
.sub-key { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.mono-sm { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 11px; }
.tech-inline { max-height: 140px; margin-top: 4px; }
.exp-notice {
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border: 1px solid var(--gold-line); border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
