/* ask_directions.css — IT122 talk-panel directions picker styles.
 *
 * Styled to match the IT115 talk-mode reply-chip aesthetic.
 * Byte-identical (zero DOM) when no focus NPC is set.
 */

/* --------------------------------------------------------------------------
 * Container — mounts inside / below the focus-NPC row in talk mode
 * -------------------------------------------------------------------------- */

.ask-directions-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 8px 8px;
  gap: 4px;
}

/* --------------------------------------------------------------------------
 * Wrap — holds the button + the drop-down picker together
 * -------------------------------------------------------------------------- */

.ask-directions-wrap {
  position: relative;
  display: inline-block;
}

/* --------------------------------------------------------------------------
 * Main trigger button — reuses .reply-chip base style
 * -------------------------------------------------------------------------- */

.ask-directions-btn {
  font-size: 0.82rem;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  /* Soft "directions" accent — slightly amber to stand out from speech chips */
  border-color: rgba(200, 160, 60, 0.5);
  color: #c8a03c;
}

.ask-directions-btn:hover {
  border-color: rgba(200, 160, 60, 0.9);
  color: #e0b84a;
}

/* --------------------------------------------------------------------------
 * Drop-down picker panel
 * -------------------------------------------------------------------------- */

.ask-directions-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 200;
  background: rgba(20, 18, 14, 0.97);
  border: 1px solid rgba(200, 160, 60, 0.4);
  border-radius: 6px;
  padding: 6px 4px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --------------------------------------------------------------------------
 * Group labels ("Active quests", "Nearby")
 * -------------------------------------------------------------------------- */

.ask-directions-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180, 160, 100, 0.6);
  padding: 4px 8px 2px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Destination items — also use .reply-chip for base, overridden here
 * -------------------------------------------------------------------------- */

.ask-directions-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 5px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(220, 210, 180, 0.9);
  border-radius: 4px;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-directions-item:hover {
  background: rgba(200, 160, 60, 0.15);
  color: #e8d080;
}

/* Main-story quest item — gold star */
.ask-directions-item.ask-directions-main {
  color: #e0b84a;
}

.ask-directions-item.ask-directions-main:hover {
  background: rgba(220, 180, 50, 0.2);
}

/* Rare quest item — soft blue/purple */
.ask-directions-item.ask-directions-rare {
  color: #88a8e0;
}

.ask-directions-item.ask-directions-rare:hover {
  background: rgba(100, 130, 200, 0.15);
}

/* --------------------------------------------------------------------------
 * Separator between destinations and free-text row
 * -------------------------------------------------------------------------- */

.ask-directions-sep {
  border-top: 1px solid rgba(200, 160, 60, 0.2);
  margin: 4px 8px;
}

/* --------------------------------------------------------------------------
 * Free-text input row
 * -------------------------------------------------------------------------- */

.ask-directions-free-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 2px;
}

.ask-directions-free-input {
  flex: 1;
  background: rgba(30, 26, 18, 0.95);
  border: 1px solid rgba(200, 160, 60, 0.4);
  border-radius: 4px;
  color: rgba(220, 210, 180, 0.9);
  font-size: 0.8rem;
  padding: 4px 8px;
  outline: none;
  min-width: 0;
}

.ask-directions-free-input:focus {
  border-color: rgba(200, 160, 60, 0.85);
}

.ask-directions-free-input::placeholder {
  color: rgba(180, 160, 100, 0.45);
  font-style: italic;
}

.ask-directions-free-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 4px 10px;
}

/* --------------------------------------------------------------------------
 * Empty state
 * -------------------------------------------------------------------------- */

.ask-directions-empty {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: rgba(180, 160, 100, 0.5);
  font-style: italic;
}

/* --------------------------------------------------------------------------
 * Talk-mode accent: when body is in talk mode, picker is slightly brighter
 * -------------------------------------------------------------------------- */

body[data-ui-mode="talk"] .ask-directions-picker {
  border-color: rgba(200, 160, 60, 0.65);
}

body[data-ui-mode="talk"] .ask-directions-btn {
  opacity: 1;
}
