/* css/directives-npcs.css */

/* ─── DIRECTIVE BANNER ──────────────────────────────────────── */
.directive-banner {
  position: fixed;
  top: 68px; left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(10, 5, 24, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cyan);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 12px 20px 14px;
  min-width: 320px; max-width: 520px;
  z-index: 22;
  opacity: 0;
  transition: all 0.4s ease-out;
  box-shadow: 0 4px 30px rgba(94, 215, 255, 0.2);
  pointer-events: none;
}
.directive-banner.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.directive-label {
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--cyan);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 500;
}
.directive-goal {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.3;
}
.directive-hint {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}
.directive-action { margin-top: 8px; }
.directive-btn {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.directive-btn:hover {
  background: var(--cyan);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(94, 215, 255, 0.4);
}

/* ─── NPC ENCOUNTER ─────────────────────────────────────────── */
.npc-encounter {
  position: fixed; inset: 0;
  z-index: 84;
  display: flex; align-items: center; justify-content: center;
  animation: scene-fade-in 0.4s ease-out;
}
.npc-encounter.closing { animation: scene-fade-out 0.3s ease-in forwards; }

.npc-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.npc-card {
  position: relative;
  background: var(--bg-void);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 28px 32px;
  width: 580px; max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(248, 216, 120, 0.08);
}
.npc-card::before {
  content: ''; position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.npc-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.npc-portrait {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.2;
  color: var(--gold);
  white-space: pre;
  margin: 0;
  text-shadow: 0 0 10px rgba(248, 216, 120, 0.3);
  min-width: 70px;
}
.npc-header-info { flex: 1; }
.npc-location {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.npc-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.npc-entry {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.npc-response {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cyan);
  font-style: italic;
  padding: 14px 16px;
  background: rgba(94, 215, 255, 0.06);
  border-left: 2px solid var(--cyan);
  border-radius: 2px;
  margin-bottom: 18px;
  display: none;
}
.npc-response.show {
  display: block;
  animation: scene-fade-in 0.4s ease-out;
}

.npc-choices {
  display: flex; flex-direction: column; gap: 8px;
}
.npc-choice {
  background: rgba(248, 216, 120, 0.04);
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 18px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.npc-choice:hover {
  background: rgba(248, 216, 120, 0.12);
  border-left-width: 4px;
  padding-left: 22px;
}
.npc-choice.outcome-victory { border-left-color: var(--green); color: var(--green); }
.npc-choice.outcome-victory:hover { background: rgba(123, 255, 154, 0.08); }
.npc-choice.outcome-dark { border-left-color: var(--red); color: #ff8899; }
.npc-choice.outcome-dark:hover { background: rgba(255, 68, 102, 0.08); }

.npc-dismiss {
  width: 100%;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-void);
  padding: 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: 6px;
}
.npc-dismiss:hover {
  background: transparent;
  color: var(--gold);
}
