/* ─────────────────────────────────────────────────────────────
   Concentus Dashboard
   File:    styles--components-help-additions.css
   Version: 2026-05-01 v1
   Batch:   BD (header pin + filter removal + Help modal)
   Build:   BUILD_TIMESTAMP

   BD additions (new file):
   - .dd-new-pill — small "New" badge for fresh dropdown items.
   - .help-overlay / .help-modal — full Help modal shell.
     Wider than fb-modal (560px) since content is longer.
     Internal scroll on body via flex-column + overflow-y on body.
   - .help-section / .help-section-h — section blocks within the body.
     Blue uppercase header, light prose, optional bullet list.
   - .help-video-btn — gradient blue CTA in footer that opens the
     tutorial video URL.
   - Dark-mode parity for all the above.
   ───────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════
   "NEW" PILL (used in user dropdown for Help item)
   ═══════════════════════════════════════════════════ */
.dd-new-pill {
  margin-left: auto;
  background: var(--gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════
   HELP MODAL
   ═══════════════════════════════════════════════════ */
.help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 40, 0.4);
  backdrop-filter: blur(2px);
  z-index: 8999;
}
.help-overlay.open {
  display: block;
  animation: helpOverlayIn 0.18s ease;
}
@keyframes helpOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.help-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 14px;
  width: 560px;
  max-width: 94vw;
  max-height: 85vh;
  box-shadow: 0 16px 48px rgba(0, 36, 127, 0.22);
  z-index: 9000;
  overflow: hidden;
  flex-direction: column;
}
.help-modal.open {
  display: flex;
  animation: helpModalIn 0.2s ease;
}
@keyframes helpModalIn {
  from { opacity: 0; transform: translate(-50%, -52%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.help-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef0f6;
  flex-shrink: 0;
}
.help-modal-title {
  font-family: 'Noto Serif', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}
.help-modal-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}
.help-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}
.help-modal-close:hover {
  background: #f0f0f5;
  color: #333;
}

.help-modal-body {
  padding: 18px 24px 8px;
  overflow-y: auto;
  flex: 1;
}

/* Section blocks */
.help-section { margin-bottom: 18px; }
.help-section:last-child { margin-bottom: 6px; }
.help-section-h {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 6px;
}
.help-section p {
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 6px;
  color: #333348;
}
.help-section p:last-child { margin-bottom: 0; }
.help-section ul {
  margin: 4px 0 0;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #333348;
}
.help-section ul li { margin-bottom: 3px; }
.help-section strong {
  color: var(--navy);
  font-weight: 600;
}
.help-section code {
  background: #f0f3f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 11.5px;
  color: var(--navy);
}

/* Footer + video CTA */
.help-modal-footer {
  padding: 14px 24px 18px;
  border-top: 1px solid #eef0f6;
  flex-shrink: 0;
  background: #fafbfd;
}
.help-video-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(135deg, rgba(49, 133, 252, 0.10), rgba(49, 133, 252, 0.04));
  border: 1px solid rgba(49, 133, 252, 0.28);
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.help-video-btn:hover {
  background: linear-gradient(135deg, rgba(49, 133, 252, 0.16), rgba(49, 133, 252, 0.08));
  border-color: rgba(49, 133, 252, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 133, 252, 0.12);
}
.help-video-btn .help-video-play {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-video-btn .help-video-label { flex: 1; text-align: left; }
.help-video-btn .help-video-arrow { opacity: 0.5; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   DARK MODE PARITY
   ═══════════════════════════════════════════════════ */
body.dark .help-modal {
  background: #1a2244;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
body.dark .help-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark .help-modal-title { color: #ffffff; }
body.dark .help-modal-sub { color: rgba(255, 255, 255, 0.55); }
body.dark .help-modal-close { color: rgba(255, 255, 255, 0.4); }
body.dark .help-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
body.dark .help-section-h { color: #6ea8ff; }
body.dark .help-section p,
body.dark .help-section ul { color: #d8dceb; }
body.dark .help-section strong { color: #ffffff; }
body.dark .help-section code {
  background: rgba(255, 255, 255, 0.08);
  color: #c0d0fa;
}
body.dark .help-modal-footer {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark .help-video-btn {
  background: linear-gradient(135deg, rgba(72, 124, 255, 0.18), rgba(72, 124, 255, 0.08));
  border-color: rgba(72, 124, 255, 0.40);
  color: #d0deff;
}
body.dark .help-video-btn:hover {
  background: linear-gradient(135deg, rgba(72, 124, 255, 0.28), rgba(72, 124, 255, 0.14));
  border-color: rgba(72, 124, 255, 0.60);
}
