/* =========================================
   HIGH-FIDELITY HERO MOCKUPS
   ========================================= */

/* -----------------------------------------
   HF PHONE MOCKUP
----------------------------------------- */
.hf-phone {
  position: relative;
  width: 340px;
  height: 700px;
  background: #09090b;
  border-radius: 44px;
  box-shadow: 
    0px 0px 0px 4px #2e3033, 
    0px 0px 0px 12px #090a0f,
    0 30px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  flex-shrink: 0;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hf-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 100;
}

.hf-phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 0 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 50;
  background: #09090b;
}

.hf-phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Mobile App Screen Content */
.hf-app-screen {
  flex: 1;
  background: #09090b;
  display: flex;
  flex-direction: column;
}

.hf-app-header {
  padding: 10px 16px 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hf-app-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1;
}
.hf-app-actions {
  display: flex;
  gap: 8px;
}
.hf-app-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hf-app-action-btn.green { color: #10b981; }
.hf-app-action-btn.blue { color: #3b82f6; }
.hf-app-action-btn.red { color: #ef4444; }

.hf-search-bar {
  margin: 0 16px 12px 16px;
  display: flex;
  gap: 8px;
}
.hf-search-input {
  flex: 1;
  background: #2c2c2e;
  border-radius: 10px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #8e8e93;
  font-size: 14px;
  gap: 6px;
}
.hf-filter-btn {
  width: 36px;
  height: 36px;
  background: #2c2c2e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
}

.hf-chips {
  padding: 0 16px 12px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.hf-chip {
  background: #2c2c2e;
  color: #8e8e93;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hf-chip.active {
  background: #007aff;
  color: #fff;
}
.hf-chip-badge {
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.hf-traffic-list {
  flex: 1;
  overflow: hidden;
  border-top: 1px solid #1c1c1e;
  background: #09090b;
}

.hf-traffic-row {
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1e;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: hfRowFadeIn 0.4s ease forwards;
}
@keyframes hfRowFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hf-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}
.hf-badge.get { background: #34d399; color: #000; }
.hf-badge.post { background: #f59e0b; color: #fff; }
.hf-badge.ws { background: #8b5cf6; color: #fff; }

.hf-row-content {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.hf-row-url {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.hf-row-meta {
  color: #636366;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.hf-row-meta .status-ok { color: #34d399; font-weight: 600; }
.hf-row-meta .status-notmod { color: #60a5fa; font-weight: 600; }
.hf-row-meta .status-err { color: #ef4444; font-weight: 600; }
.hf-row-time { color: #636366; font-size: 12px; flex-shrink: 0; margin-left: 4px; }
.hf-row-more { color: #636366; font-size: 16px; flex-shrink: 0; letter-spacing: 2px; }

.hf-tab-bar {
  background: #09090b;
  border-top: 1px solid #1c1c1e;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 20px 0;
  flex-shrink: 0;
}
.hf-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #636366;
  font-size: 10px;
}
.hf-tab-item.active { color: #3b82f6; }

/* -----------------------------------------
   HF DESKTOP MOCKUP
----------------------------------------- */
.hf-desktop {
  width: 960px;
  height: 580px;
  background: #111111;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  flex-shrink: 0;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hf-desktop-header {
  height: 38px;
  background: #1c1c1e;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #000;
  gap: 14px;
  flex-shrink: 0;
}
.hf-desktop-dots {
  display: flex;
  gap: 8px;
}
.hf-desktop-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.hf-desktop-dots .red { background: #ff5f56; }
.hf-desktop-dots .yellow { background: #ffbd2e; }
.hf-desktop-dots .green { background: #27c93f; }

.hf-desktop-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hf-toolbar-btn {
  background: #3a3a3c;
  color: #d1d1d6;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.hf-desktop-title {
  flex: 1;
  text-align: center;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.hf-desktop-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.hf-desktop-sidebar {
  width: 170px;
  background: #1c1c1e;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.hf-sidebar-section {
  padding: 10px 0;
}
.hf-sidebar-title {
  color: #636366;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 12px 6px 12px;
  letter-spacing: 0.5px;
}
.hf-sidebar-item {
  color: #d1d1d6;
  font-size: 13px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.hf-sidebar-item.active {
  background: #1a56db;
  color: #fff;
  border-radius: 4px;
  margin: 0 4px;
  padding: 5px 8px;
}
.hf-sidebar-count {
  margin-left: auto;
  color: #8e8e93;
  font-size: 11px;
}
.hf-sidebar-item.active .hf-sidebar-count { color: rgba(255,255,255,0.6); }

.hf-desktop-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #111111;
  overflow: hidden;
}

/* Traffic Table Pane */
.hf-desktop-traffic-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hf-traffic-toolbar {
  padding: 6px 8px;
  background: #1c1c1e;
  border-bottom: 1px solid #000;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.hf-traffic-search {
  flex: 1;
  background: #2c2c2e;
  border: 1px solid #3a3a3c;
  border-radius: 4px;
  padding: 4px 8px;
  color: #8e8e93;
  font-size: 12px;
}
.hf-traffic-table-wrap {
  flex: 1;
  overflow: hidden;
}
.hf-traffic-table {
  width: 100%;
  border-collapse: collapse;
}
.hf-traffic-table th {
  background: #1c1c1e;
  color: #636366;
  font-size: 10px;
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid #000;
  font-weight: 600;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}
.hf-traffic-table td {
  padding: 4px 8px;
  font-size: 12px;
  color: #d1d1d6;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.hf-traffic-table tr { background: #111111; }
.hf-traffic-table tr.selected {
  background: #1a56db;
}
.hf-traffic-table tr.selected td {
  color: #fff;
}
.hf-badge-sm {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}
.hf-badge-sm.post { background: #f59e0b; color: #fff; }
.hf-badge-sm.get { background: #10b981; color: #fff; }
.hf-badge-sm.ws { background: #8b5cf6; color: #fff; }

.hf-td-status.ok { color: #10b981; font-weight: 600; }
.hf-td-status.err { color: #ef4444; font-weight: 600; }
.hf-td-status.warn { color: #f59e0b; font-weight: 600; }

/* Inspector Pane */
.hf-desktop-inspector {
  height: 220px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #2c2c2e;
  flex-shrink: 0;
}
.hf-inspector-header {
  padding: 6px 12px;
  background: #1c1c1e;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hf-inspector-url {
  color: #d1d1d6;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.hf-inspector-split {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.hf-inspector-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hf-inspector-panel.left { border-right: 1px solid #2c2c2e; }
.hf-inspector-tabs {
  display: flex;
  gap: 0;
  padding: 0 0;
  border-bottom: 1px solid #2c2c2e;
  flex-shrink: 0;
}
.hf-inspector-tab {
  color: #636366;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.hf-inspector-tab.active {
  color: #fff;
  border-bottom-color: #007aff;
}

.hf-inspector-content {
  flex: 1;
  padding: 10px 14px;
  overflow: hidden;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}
.hf-kv-row {
  display: flex;
  margin-bottom: 2px;
}
.hf-kv-key {
  width: 130px;
  color: #636366;
  flex-shrink: 0;
}
.hf-kv-val {
  flex: 1;
  color: #d1d1d6;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-json-key { color: #f59e0b; }
.hf-json-str { color: #10b981; }
.hf-json-num { color: #60a5fa; }
.hf-json-bool { color: #c084fc; }

/* -----------------------------------------
   REMOTE PAIRING VIEW
----------------------------------------- */
.hf-pairing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hf-pairing-phone {
}
.hf-pairing-desktop {
  width: 1120px;
  height: 700px;
}
.hf-bridge {
  width: 120px;
  height: 60px;
  position: relative;
  flex-shrink: 0;
}
.hf-bridge-path {
  stroke: rgba(0, 122, 255, 0.5);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  fill: none;
}
.hf-bridge-dot {
  fill: #007aff;
  filter: drop-shadow(0 0 6px #007aff);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
