/* /home/hkiugcom/website.airplay/assets/trend_popup.css
   Trend mini-modal (header trend button + Listener Flow chart trigger).
   Reuses the .ap-audit-modal-panel visual language (border-radius, shadow,
   navy background) via tokens instead of the hand-duplicated inline styles
   this popup used to carry - see assets/trend_popup.js buildTrendPopup(). */

.ap-trend-popup {
  position: fixed;
  z-index: 10000;
  width: 320px;

  border-radius: 16px;
  border: 1px solid rgba(var(--ap-navy-700-rgb), 0.85);
  background: rgba(var(--ap-navy-950-rgb), 0.98);
  box-shadow: 0 24px 60px rgba(var(--ap-black-rgb), 0.7), 0 0 0 1px rgba(var(--ap-white-rgb), 0.03);

  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: var(--ap-text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 12px;
  line-height: 1.4;
}

.ap-trend-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--ap-navy-700-rgb), 0.6);
}

.ap-trend-popup-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ap-trend-popup-title-main {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--ap-accent-rgb), 0.95);
}

.ap-trend-popup-title-sub {
  font-size: 9px;
  color: var(--ap-text-secondary);
  letter-spacing: 0.04em;
}

.ap-trend-popup-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ap-trend-popup-factor {
  font-size: 14px;
  font-weight: 700;
}

.ap-trend-popup-close {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ap-navy-700-rgb), 0.9);
  background: rgba(var(--ap-navy-900-rgb), 0.45);
  color: rgba(var(--ap-text-primary-rgb), 0.85);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-trend-popup-canvas {
  width: 100%;
  height: 100px;
  display: block;
  border-radius: 8px;
  background: rgba(var(--ap-navy-900-rgb), 0.35);
}

.ap-trend-popup-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--ap-navy-700-rgb), 0.5);
  color: var(--ap-text-secondary);
  font-size: 11px;
}

.ap-trend-popup-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ap-trend-popup-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-trend-popup-turnover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--ap-text-secondary);
  font-size: 10px;
}

.ap-trend-popup-note {
  margin-top: 6px;
  color: var(--ap-text-tertiary);
  font-size: 10px;
}
