/* Site-specific styles for epoch-converter. Shared chrome (vars, base reset,
 * .btn, .topbar, .status, .faq, .sister-sites, .footer, .explainer)
 * lives in /_chrome.css and is loaded ahead of this file. */

/* ── Live clock strip ─────────────────────────────────────────────────────── */

.live-clock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: var(--bg-pane);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.live-clock-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.live-clock-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  tabular-nums: 1;
  font-variant-numeric: tabular-nums;
}

.live-clock-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .live-clock {
    padding: 8px 16px;
    gap: 10px;
  }
  .live-clock-value {
    font-size: 18px;
  }
}

/* ── Main grid ────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

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

/* ── Shared pane shell ────────────────────────────────────────────────────── */

.pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-pane);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.pane-head label {
  font-size: 12px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pane-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Text input fields ────────────────────────────────────────────────────── */

.field {
  font-family: var(--mono);
  font-size: 14px;
  padding: 9px 12px;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  outline: none;
}

.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.15);
}

.field::placeholder {
  color: var(--fg-mute);
}

/* ── Result grid (key / value rows) ──────────────────────────────────────── */

.result-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  font-size: 13px;
  min-height: 80px;
}

.result-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 0;
  white-space: nowrap;
  align-self: center;
}

.result-val {
  font-family: var(--mono);
  color: var(--fg);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.result-val-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.copy-btn {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.12s;
}

.result-val:hover .copy-btn,
.result-val:focus-within .copy-btn {
  opacity: 1;
}

/* ── Status bar ───────────────────────────────────────────────────────────── */

.status {
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}

/* ── Batch converter ──────────────────────────────────────────────────────── */

.batch-section {
  padding: 0 12px 12px;
}

.batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.1px;
}

.batch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.batch-ta,
.batch-pre {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  border: none;
  min-height: 200px;
  outline: none;
  tab-size: 2;
  flex: 1;
}

.batch-ta {
  resize: vertical;
}

.batch-ta::placeholder {
  color: var(--fg-mute);
}

.batch-pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}

/* ── Ad slot ─────────────────────────────────────────────────────────────── */

.ad-slot {
  padding: 0 12px;
}
