/**
 * Negotiation strategy output + legacy negotiation styles
 * Split from outputs.css — Phase 3.3
 */

/* ========================================
   NEGOTIATION STRATEGY OUTPUT (negotiation.strategy)
   ======================================== */

/* Header */
.ns-header {
  background: linear-gradient(135deg, #1e3a5f 0%, var(--color-slate-900) 100%);
  color: var(--color-surface);
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

.ns-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ns-header__title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ns-badge {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-neutral-500);
}

.ns-badge--opening { background: var(--color-neutral-500); }
.ns-badge--discovery { background: var(--color-blue-500); }
.ns-badge--bargaining { background: var(--color-amber-500); }
.ns-badge--closing { background: var(--color-green-500); }
.ns-badge--stalled { background: var(--color-red-500); }

/* Power Row */
.ns-power-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ns-power {
  text-align: center;
}

.ns-power__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-surface);
}

.ns-power__value--negative {
  color: var(--color-red-300);
}

.ns-power__value--after {
  color: #34d399;
}

.ns-power__label {
  font-size: 9px;
  opacity: 0.7;
}

.ns-power__arrow {
  font-size: 20px;
  color: var(--color-green-500);
}

/* Body */
.ns-body {
  padding: 16px;
  background: var(--color-neutral-50);
}

/* Oracle Engine */
.ns-oracle {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(168,85,247,0.06));
  border: 2px solid rgba(139,92,246,0.35);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.ns-oracle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ns-oracle__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-violet-600);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ns-oracle__prob {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-violet-600);
}

.ns-oracle__prediction {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-violet-800);
  margin-bottom: 10px;
  line-height: 1.4;
}

.ns-oracle__because {
  font-size: 12px;
  color: var(--color-neutral-500);
  margin-bottom: 12px;
}

.ns-oracle__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ns-oracle__meta-item {
  background: rgba(255,255,255,0.7);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.ns-oracle__meta-value {
  font-size: 13px;
  font-weight: 700;
}

.ns-oracle__meta-value--upward { color: var(--color-green-500); }
.ns-oracle__meta-value--stable { color: var(--color-blue-500); }
.ns-oracle__meta-value--neutral { color: var(--color-neutral-500); }
.ns-oracle__meta-value--declining { color: var(--color-amber-500); }
.ns-oracle__meta-value--rupture_risk { color: var(--color-red-500); }
.ns-oracle__meta-value--active_rupture { color: var(--color-red-600); }

.ns-oracle__meta-label {
  font-size: 9px;
  color: var(--color-neutral-500);
  margin-top: 2px;
}

.ns-oracle__wait {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 12px;
}

.ns-oracle__wait-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-red-600);
  margin-bottom: 4px;
}

.ns-oracle__wait-text {
  font-size: 12px;
  color: var(--color-red-800);
}

/* HAG - Hidden Agenda Grid */
.ns-hag {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--color-neutral-200);
}

.ns-hag__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-neutral-500);
  margin-bottom: 12px;
}

.ns-hag__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ns-hag__cell {
  padding: 10px 12px;
  border-radius: 6px;
}

.ns-hag__cell--said {
  background: var(--color-green-50);
}

.ns-hag__cell--said .ns-hag__label { color: var(--color-green-600); }
.ns-hag__cell--said .ns-hag__text { color: var(--color-green-800); }

.ns-hag__cell--not-said {
  background: var(--color-red-50);
}

.ns-hag__cell--not-said .ns-hag__label { color: var(--color-red-600); }
.ns-hag__cell--not-said .ns-hag__text { color: var(--color-red-800); }

.ns-hag__cell--meant {
  background: var(--color-yellow-50);
}

.ns-hag__cell--meant .ns-hag__label { color: #ca8a04; }
.ns-hag__cell--meant .ns-hag__text { color: var(--color-yellow-800); }

.ns-hag__cell--useful {
  background: var(--color-blue-50);
}

.ns-hag__cell--useful .ns-hag__label { color: var(--color-blue-600); }
.ns-hag__cell--useful .ns-hag__text { color: var(--color-blue-800); }

.ns-hag__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.ns-hag__text {
  font-size: 12px;
  line-height: 1.4;
}

/* Section */
.ns-section {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--color-neutral-200);
}

.ns-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-neutral-500);
  margin-bottom: 12px;
}

/* Psychology Grid */
.ns-psych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ns-psych__item {
  background: var(--color-neutral-50);
  padding: 10px;
  border-radius: 6px;
}

.ns-psych__label {
  font-size: 9px;
  color: var(--color-neutral-500);
  margin-bottom: 2px;
}

.ns-psych__value {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-neutral-800);
}

/* Filters */
.ns-filters {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--color-neutral-200);
}

.ns-filter {
  background: var(--color-yellow-50);
  border: 1px solid var(--color-yellow-200);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 12px;
}

.ns-filter:last-child {
  margin-bottom: 0;
}

.ns-filter__if {
  color: var(--color-yellow-700);
}

.ns-filter__then {
  color: var(--color-yellow-800);
  font-weight: 600;
}

/* Next Move */
.ns-next {
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  padding: 18px;
}

.ns-next__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-green-800);
  margin-bottom: 10px;
}

.ns-next__action {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-green-800);
  margin-bottom: 12px;
}

.ns-next__script {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid rgba(34,197,94,0.2);
  font-style: italic;
  margin-bottom: 10px;
}

.ns-next__why {
  font-size: 12px;
  color: var(--color-green-800);
}

.ns-next__hint {
  font-size: 10px;
  color: var(--color-neutral-400);
  margin-top: 12px;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .ns-psych-grid,
  .ns-hag__grid,
  .ns-oracle__meta {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   NEGOTIATION OUTPUT (legacy)
   ======================================== */

.negotiation-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.negotiation-header__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.negotiation-intel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.negotiation-intel__item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.negotiation-intel__label {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-1);
}

.negotiation-intel__value {
  font-size: var(--font-size-sm);
  color: white;
}

.script-card {
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border-left: 3px solid var(--color-primary);
}

.script-card__text {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.script-card__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

