﻿/* ============================================
   PAGES: Webhook
   ============================================
   Webhook configuration and JSON examples.
   ============================================ */

/* =================== URL Display =================== */

.url-display {
  display: flex;
  align-items: stretch;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.url-display input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0 14px;
  font: 500 12.5px/1 var(--font-mono);
  outline: none;
  height: 40px;
  min-width: 0;
}

.url-display button {
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  border-left: 1px solid var(--border);
  padding: 0 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.url-display button:hover {
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.06);
}

/* "I've added this address…" listen trigger inside the email info box */
.email-verify-link {
  color: var(--color-info, #6EA8FF);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.email-verify-link:hover { color: var(--color-success); }

.email-verify-link.listening {
  color: var(--text-dim);
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

/* =================== Tabs (pill style) =================== */

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.tab {
  padding: 6px 12px;
  font: 500 12px/1 var(--font-family);
  color: var(--text-dim);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.tab.active,
.tab.example-nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tab:hover {
  color: var(--text);
}

/* =================== Code Card =================== */

.code-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.code-head .file {
  font: 500 11.5px/1 var(--font-mono);
  color: var(--text-dim);
}

.code-body {
  padding: 18px 20px;
  font: 400 12.5px/1.75 var(--font-mono);
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  max-height: 320px;
  margin: 0;
}

.wh-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  line-height: 1;
}

.wh-copy-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* =================== Legacy (kept for JS compatibility) =================== */

.example-nav-btn {
  /* styles overridden by .tab when both classes present */
}

.json-code {
  /* fallback if old structure referenced */
  font-family: var(--font-mono);
  white-space: pre-wrap;
}

/* =================== Responsive =================== */

@media (max-width: 768px) {
  .tabs {
    flex-wrap: wrap;
    border-radius: var(--radius);
  }
}

