/*
 * Detail Panel v3 — C-Suite Executive View
 * Designed for: Information-rich but visually flowing executive panels
 * Principle: Score → KPIs → On-Site → Deep Dive (progressive disclosure)
 */

/* ===== HERO SCORE RING ===== */
.dp3-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 0 -16px 0 -16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border-bottom: 1px solid var(--border-divider);
}
.dp3-score-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.dp3-score-ring svg {
  transform: rotate(-90deg);
  width: 72px;
  height: 72px;
}
.dp3-score-ring .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 5;
}
.dp3-score-ring .ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dp3-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dp3-score-label {
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
  margin-top: 3px;
}
.dp3-hero-meta {
  flex: 1;
  min-width: 0;
}
.dp3-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.dp3-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.dp3-tag-green {
  background: rgba(34,197,94,0.10);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.20);
}
.dp3-tag-yellow {
  background: rgba(234,179,8,0.10);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.20);
}
.dp3-tag-red {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.20);
}
.dp3-tag-confirmed {
  background: rgba(34,197,94,0.10);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.20);
}
.dp3-tag-y1 {
  background: rgba(59,130,246,0.10);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.20);
}
.dp3-tag-arch {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.08);
}
.dp3-tag-type {
  background: rgba(168,85,247,0.08);
  color: rgba(168,85,247,0.70);
  border: 1px solid rgba(168,85,247,0.15);
}
.dp3-hero-road {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== KPI GRID ===== */
.dp3-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.dp3-kpi {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease;
}
.dp3-kpi:hover {
  background: rgba(255,255,255,0.04);
}
.dp3-kpi-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dp3-kpi-value {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.dp3-kpi-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.30);
  margin-top: 2px;
}
.dp3-kpi .dp3-src {
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.dp3-src-adnoc {
  background: rgba(0,102,178,0.15);
  color: rgba(0,102,178,0.80);
}
.dp3-src-model {
  background: rgba(59,130,246,0.12);
  color: rgba(59,130,246,0.70);
}

/* ===== SECTION DIVIDER ===== */
.dp3-divider {
  height: 1px;
  background: var(--border-divider);
  margin: 16px 0;
}
.dp3-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}
.dp3-section-title svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* ===== SCORE BARS ===== */
.dp3-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.dp3-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp3-score-name {
  flex: 0 0 100px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp3-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.dp3-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.dp3-score-val {
  flex: 0 0 22px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  color: rgba(255,255,255,0.55);
}
.dp3-tier-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 6px 0;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dp3-tier-t1 {
  background: rgba(0,102,178,0.10);
  color: rgba(0,140,220,0.85);
}
.dp3-tier-t2 {
  background: rgba(59,130,246,0.10);
  color: rgba(59,130,246,0.80);
}
.dp3-tier-t3 {
  background: rgba(139,92,246,0.10);
  color: rgba(139,92,246,0.80);
}

/* ===== ON-SITE: F&B + SERVICES (combined row) ===== */
.dp3-onsite-row {
  display: flex;
  gap: 10px;
}
.dp3-onsite-col {
  flex: 1;
  min-width: 0;
}
.dp3-col-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.dp3-fnb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.dp3-fnb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s ease;
}
.dp3-fnb-pill:hover {
  background: rgba(255,255,255,0.07);
}
.dp3-fnb-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.dp3-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.dp3-svc-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.02);
}
.dp3-svc-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ===== REVENUE PROJECTION ===== */
.dp3-rev-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.dp3-rev-card {
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
}
.dp3-rev-card-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  opacity: 0.55;
}
.dp3-rev-card-val {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}
.dp3-rev-base { background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.10); }
.dp3-rev-base .dp3-rev-card-label { color: rgba(34,197,94,0.65); }
.dp3-rev-base .dp3-rev-card-val  { color: #22c55e; }
.dp3-rev-high { background: rgba(168,85,247,0.05); border: 1px solid rgba(168,85,247,0.10); }
.dp3-rev-high .dp3-rev-card-label { color: rgba(168,85,247,0.65); }
.dp3-rev-high .dp3-rev-card-val  { color: #a855f7; }
.dp3-rev-5yr  { background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.10); }
.dp3-rev-5yr .dp3-rev-card-label { color: rgba(59,130,246,0.65); }
.dp3-rev-5yr .dp3-rev-card-val  { color: #3b82f6; }
.dp3-rev-params {
  font-size: 8px;
  color: rgba(255,255,255,0.25);
  margin-top: 5px;
  text-align: center;
}

/* ===== KEY INSIGHT CALLOUT ===== */
.dp3-insight {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(234,179,8,0.04);
  border: 1px solid rgba(234,179,8,0.10);
  border-left: 3px solid rgba(234,179,8,0.35);
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
}

/* ===== FUEL PILLS ===== */
.dp3-fuel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.dp3-fuel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dp3-fuel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== DEEP RESEARCH (collapsible accordion) ===== */
.dp3-accordion {
  margin-top: 4px;
}
.dp3-acc-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dp3-acc-item:last-child { border-bottom: none; }
.dp3-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.dp3-acc-trigger:hover { color: rgba(255,255,255,0.75); }
.dp3-acc-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.35;
}
.dp3-acc-item.expanded .dp3-acc-chevron {
  transform: rotate(180deg);
}
.dp3-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.dp3-acc-item.expanded .dp3-acc-body {
  max-height: 800px;
}
.dp3-acc-content {
  padding: 0 0 10px 0;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.dp3-acc-pending {
  font-style: italic;
  opacity: 0.4;
}

/* ===== SATELLITE (inside accordion) ===== */
.dp3-sat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dp3-sat-item {
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.dp3-sat-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.dp3-sat-text {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ===== LIVE DATA ===== */
.dp3-live-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dp3-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: dp3-pulse 2s infinite;
}
@keyframes dp3-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
