/* ============================
   pftmeech.xyz — Cyber Theme
   Black / White / #7CFF6B
   ============================ */

:root {
  --green: #7CFF6B;
  --green-dim: #4db840;
  --green-glow: rgba(124, 255, 107, 0.25);
  --bg: #000;
  --bg-panel: #0a0a0a;
  --bg-panel2: #0f0f0f;
  --border: rgba(124, 255, 107, 0.18);
  --border-bright: rgba(124, 255, 107, 0.5);
  --text: #e8e8e8;
  --text-dim: #888;
  --red: #ff4545;
  --yellow: #f5c518;
  --font-mono: 'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----- Scanlines overlay ----- */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ----- Hero / Banner ----- */
.site-header {
  width: 100%;
  /* no hard border — blends via bottom fade */
}

.banner-wrap {
  position: relative;
  width: 100%;
  height: clamp(96px, 14vw, 160px);
  background: linear-gradient(135deg, #050505 0%, #0d1a0a 50%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle dark wash — improves title contrast without blackening the whole image */
.banner-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.70) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade — blends hero into #000 page, removes hard seam */
.banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.85) 72%,
    rgba(0, 0, 0, 1)    100%
  );
  z-index: 2;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

/* Nudge title slightly down, away from brightest crop area */
.hero .hero-inner {
  padding-top: 10px;
}

.site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  text-shadow: 0 0 20px var(--green), 0 0 40px var(--green-glow);
  text-transform: lowercase;
}

.site-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ----- Main Grid ----- */
.main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

@media (max-width: 760px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* ----- Identity Panel (left) ----- */
.identity-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 20px var(--green-glow), 0 0 40px rgba(124,255,107,0.1), inset 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  flex-shrink: 0;
  background: #0d1a0a;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.handle { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--green);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  background: rgba(124, 255, 107, 0.04);
  width: 100%;
  justify-content: center;
}

.link-btn:hover {
  background: rgba(124, 255, 107, 0.12);
  box-shadow: 0 0 12px var(--green-glow);
  border-color: var(--green);
}

.btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pubkey-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.pubkey-link {
  display: block;
  color: var(--green);
  text-decoration: none;
  font-size: 0.68rem;
  word-break: break-all;
  letter-spacing: 0.02em;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.pubkey-link:hover { opacity: 0.8; text-decoration: underline; }

.copy-btn {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ----- Status Panel (right) ----- */
.status-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* subtle corner accent */
.status-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 6px 0 0 0;
}
.status-panel::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 0 6px 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Status pill */
.status-pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: all 0.4s ease;
}

.status-pill.online {
  color: var(--green);
  background: rgba(124, 255, 107, 0.1);
  box-shadow: 0 0 12px var(--green-glow);
}

.status-pill.syncing {
  color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
}

.status-pill.offline {
  color: var(--red);
  background: rgba(255, 69, 69, 0.1);
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
}

.metric.full-width { grid-column: 1 / -1; }

.metric-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.metric-value.green { color: var(--green); }
.metric-value.dim { color: var(--text-dim); font-size: 0.85rem; }

/* Warnings */
.warnings-block {
  background: rgba(255, 69, 69, 0.06);
  border: 1px solid rgba(255, 69, 69, 0.3);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.warnings-block .label { color: var(--red); margin-bottom: 6px; }

#warnings-list {
  list-style: none;
  padding: 0;
}

#warnings-list li {
  color: var(--red);
  font-size: 0.78rem;
  padding: 2px 0;
}

#warnings-list li::before { content: '⚠ '; }

/* Panel footer */
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.fetch-indicator {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, box-shadow 0.3s;
}

.fetch-indicator.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.fetch-indicator.error {
  background: var(--red);
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  margin-top: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--green); }

.footer-copy {
  font-size: 0.65rem;
  color: #444;
  letter-spacing: 0.1em;
}

/* ----- Operator Profile ----- */
.operator-profile {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.operator-inner {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 28px;
  background: var(--bg-panel);
  box-shadow: 0 0 18px rgba(124, 255, 107, 0.04);
  text-align: center;
}

.op-title {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.op-primary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.op-supporting {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

.op-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.op-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dim);
  border: 1px solid rgba(124, 255, 107, 0.22);
  border-radius: 20px;
  padding: 3px 12px;
  background: rgba(124, 255, 107, 0.03);
}

/* ----- Hero emblem (watermark) ----- */
.hero-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 12vw, 140px);
  height: auto;
  opacity: 0.20;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4))
          drop-shadow(0 0 18px rgba(124, 255, 107, 0.25));
  user-select: none;
}
