/* ========================================================
   CITRINE V2 • DETAIL POSTINGAN (modal)
   ======================================================== */
.incident-modal-box.pd-modal {
  width: min(1040px, calc(100vw - 32px)) !important;
  max-width: none !important;
  max-height: calc(100vh - 48px) !important;
  background: #141415 !important;
  border: 1px solid #2a2a2d !important;
  border-radius: 14px !important;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
  font-family: var(--font-sans, 'Inter', sans-serif);
}
.pd-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid #242427;
}
.pd-header-title { font-size: 15px; font-weight: 600; color: #f4f4f5; display: flex; align-items: center; gap: 10px; }
.pd-header-title svg { width: 18px; height: 18px; color: var(--accent-gold, #d4a33a); }
.pd-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pd-id {
  font-family: var(--font-mono, monospace); font-size: 11px; color: #a1a1aa; background: #1e1e20;
  border: 1px solid #2c2c2f; border-radius: 6px; padding: 4px 8px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2c2c2f; background: #1b1b1d; color: #d4d4d8;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pd-icon-btn:hover { background: #26262a; color: #fff; }
.pd-icon-btn svg { width: 15px; height: 15px; }

.pd-body {
  flex: 1; overflow-y: auto; padding: 18px 20px; display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start;
}
@media (max-width: 860px) { .pd-body { grid-template-columns: minmax(0, 1fr); } }
.pd-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-card { background: #19191b; border: 1px solid #29292c; border-radius: 12px; padding: 16px; min-width: 0; }
.pd-card-title {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #a1a1aa;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.pd-card-title svg { width: 14px; height: 14px; color: #8f8f97; }

/* post */
.pd-author { display: flex; align-items: center; gap: 12px; }
.pd-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; object-fit: cover; background: #2a2a2d;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; color: #fff;
}
.pd-author-meta { min-width: 0; flex: 1; }
.pd-author-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #f4f4f5; }
.pd-author-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-verified { width: 16px; height: 16px; color: #3b9eff; flex: 0 0 16px; }
.pd-author-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: #8f8f97; }
.pd-author-sub a { color: #8f8f97; text-decoration: none; }
.pd-author-sub a:hover { color: #d4d4d8; }
.pd-plat {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: #d4d4d8;
  background: #232326; border: 1px solid #303034; border-radius: 999px; padding: 2px 9px;
}
.pd-time { margin-left: auto; text-align: right; font-size: 11.5px; color: #8f8f97; white-space: nowrap; align-self: flex-start; }
.pd-text {
  margin-top: 14px; font-size: 14.5px; line-height: 1.65; color: #ececef; white-space: pre-wrap; word-break: break-word;
}
.pd-text a { color: #5cb2ff; text-decoration: none; }
.pd-text a:hover { text-decoration: underline; }

/* media */
.pd-media { margin-top: 14px; display: grid; gap: 6px; border-radius: 12px; overflow: hidden; }
.pd-media.n1 { grid-template-columns: 1fr; }
.pd-media.n2 { grid-template-columns: 1fr 1fr; }
.pd-media.n3, .pd-media.n4 { grid-template-columns: 1fr 1fr; }
.pd-media-item { position: relative; display: block; background: #0f0f10; aspect-ratio: 16 / 10; overflow: hidden; }
.pd-media.n1 .pd-media-item { aspect-ratio: auto; max-height: 420px; }
.pd-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.pd-media.n1 .pd-media-item img { max-height: 420px; object-fit: contain; background: #0b0b0c; }
.pd-media-item:hover img { transform: scale(1.02); }
.pd-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
}
.pd-play span {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pd-play svg { width: 22px; height: 22px; margin-left: 3px; }
.pd-video-ctx {
  margin-top: 14px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: center;
  background: #141415; border: 1px solid #29292c; border-radius: 12px; padding: 10px; text-decoration: none;
}
@media (max-width: 560px) { .pd-video-ctx { grid-template-columns: 1fr; } }
.pd-video-ctx .pd-media-item { border-radius: 8px; aspect-ratio: 16 / 9; }
.pd-video-label { font-size: 10.5px; font-weight: 600; color: #8f8f97; text-transform: uppercase; letter-spacing: 0.06em; }
.pd-video-title { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #ececef; line-height: 1.45; }
.pd-video-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #ff6b6b; }
.pd-video-link svg { width: 13px; height: 13px; }

.pd-stats { margin-top: 14px; padding-top: 12px; border-top: 1px solid #252528; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pd-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c4c4cc; }
.pd-stat svg { width: 15px; height: 15px; color: #8f8f97; }
.pd-stat b { color: #f4f4f5; font-weight: 600; }
.pd-open {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  color: #e4e4e7; text-decoration: none; padding: 6px 11px; border-radius: 8px; border: 1px solid #303034; background: #1e1e20;
}
.pd-open:hover { background: #29292c; }
.pd-open svg { width: 13px; height: 13px; }
.pd-skel { height: 160px; margin-top: 14px; border-radius: 12px; background: linear-gradient(90deg, #1b1b1d 0%, #242427 50%, #1b1b1d 100%); background-size: 200% 100%; animation: pd-shimmer 1.2s infinite; }
@keyframes pd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* analisis */
.pd-kv { display: flex; flex-direction: column; gap: 11px; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.pd-row > span:first-child { color: #8f8f97; }
.pd-row > span:last-child, .pd-row > b { color: #ececef; text-align: right; font-weight: 500; }
.pd-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pd-pill.POSITIF { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.pd-pill.NEGATIF { background: rgba(239, 68, 68, 0.14); color: #f87171; }
.pd-pill.NETRAL { background: rgba(148, 163, 184, 0.14); color: #b4b4bb; }
.pd-pill.CRITICAL { background: #dc2626; color: #fff; }
.pd-pill.ELEVATED { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.pd-pill.WATCH { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.pd-pill.LOW { background: rgba(148, 163, 184, 0.12); color: #a1a1aa; }
.pd-score-bar { height: 6px; border-radius: 3px; background: #242427; overflow: hidden; position: relative; margin-top: 2px; }
.pd-score-bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }

/* lokasi */
.pd-loc-name { font-size: 16px; font-weight: 600; color: #f4f4f5; }
.pd-loc-district { margin-top: 3px; font-size: 12px; color: #a1a1aa; }
.pd-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; color: #c4c4cc; background: #232326; border: 1px solid #2e2e32; border-radius: 999px; padding: 3px 9px; }
.pd-chip svg { width: 12px; height: 12px; }
.pd-map { margin-top: 12px; height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid #29292c; background: #1f1f21; }
.pd-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) brightness(0.85); }
.pd-muted { font-size: 12px; color: #77777f; margin-top: 8px; }

/* footer */
.pd-footer { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid #242427; background: #121213; }
.pd-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500; border: 1px solid #303034; background: #1e1e20; color: #e4e4e7; text-decoration: none;
}
.pd-btn:hover { background: #29292c; }
.pd-btn svg { width: 14px; height: 14px; }
.pd-btn.danger { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); color: #fca5a5; }
.pd-btn.danger:hover { background: rgba(239, 68, 68, 0.18); }
.pd-btn.primary { border-color: #e0b04a; color: #fff; background: linear-gradient(160deg, #e0b04a 0%, #d4a33a 45%, #a8781e 100%); }
.pd-btn.primary:hover { filter: brightness(1.06); }
.pd-btn[disabled] { opacity: 0.6; cursor: default; }
.pd-spacer { flex: 1; }
