/*
Theme Name: Theme Onchain Pulse
Author: Workbench
Description: On-chain data timeline, whale alert stream, and metrics wiki theme.
Version: 1.0.0
Text Domain: theme-onchain-pulse
*/

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #dbe4ee;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.pulse-header { background: #0f172a; color: #f8fafc; }
.pulse-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.pulse-brand { font-weight: 700; font-size: 1.15rem; color: #5eead4; letter-spacing: 0.02em; }
.pulse-nav { display: flex; gap: 18px; font-size: 0.9rem; color: #cbd5e1; flex-wrap: wrap; }
.pulse-nav a:hover { color: #5eead4; }

.metric-strip { background: #1e293b; border-top: 1px solid #334155; padding: 14px 0; color: #e2e8f0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-box { background: rgba(15, 23, 42, 0.55); border: 1px solid #334155; border-radius: 8px; padding: 10px 14px; }
.metric-label { font-size: 0.76rem; color: #94a3b8; }
.metric-val { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: #5eead4; margin-top: 2px; }

.pulse-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 28px 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.panel-title { margin: 0 0 16px; font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 10px; }

.timeline { position: relative; padding-left: 22px; border-left: 2px solid #cbd5e1; display: flex; flex-direction: column; gap: 18px; }
.timeline-item { position: relative; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.timeline-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); font-family: var(--mono); margin-bottom: 4px; }
.pill { background: var(--accent-soft); color: #0f766e; padding: 2px 8px; border-radius: 999px; font-family: sans-serif; font-weight: 600; }
.timeline-title { margin: 0 0 6px; font-size: 1.04rem; }
.timeline-title a:hover { color: var(--accent); }
.timeline-excerpt { margin: 0; font-size: 0.88rem; color: var(--muted); }

.side-stack { display: flex; flex-direction: column; gap: 20px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list a { font-weight: 600; font-size: 0.92rem; display: block; }
.mini-list a:hover { color: var(--accent); }
.mini-date { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }

.article-box { max-width: 820px; margin: 28px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; }
.article-box h1 { margin: 8px 0 14px; font-size: 1.6rem; }
.article-content { line-height: 1.85; font-size: 1rem; }
.article-content a { color: var(--accent); text-decoration: underline; }

.pulse-footer { border-top: 1px solid var(--border); background: #fff; padding: 20px 0; color: var(--muted); font-size: 0.84rem; margin-top: 32px; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-layout { grid-template-columns: 1fr; }
}
