/* ═══════════════════════════════════════════
   STANDARD SHELL — debug / transparency view.
   Shows traversal tree, engine decisions, and
   final question result in a log-style panel.
   BEM-lite naming: std-*
═══════════════════════════════════════════ */


/* 1. LAYOUT */

#standardLayout {
  max-width: 600px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2rem;
}


/* 2. LOG — scrollable decision trail */

.std-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 120px;
  margin-bottom: 1rem;
}

.std-log-empty {
  color: var(--text-dim, #888);
  text-align: center;
  font-size: 0.85rem;
  padding: 2rem 0;
  font-style: italic;
}


/* 3. LOG ENTRIES */

.std-entry {
  background: var(--surface2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  animation: stdFadeIn 0.3s ease;
}

.std-entry--pick {
  border-left: 3px solid var(--acc, #c9a84c);
}

.std-entry--auto {
  border-left: 3px solid var(--text-dim, #666);
  opacity: 0.8;
}

.std-entry--result {
  border-left: 3px solid var(--acc, #c9a84c);
  background: var(--acc-dim, rgba(201,168,76,0.08));
}

.std-entry--error {
  border-left: 3px solid #e04020;
  background: rgba(224,64,32,0.06);
}

.std-entry-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.std-entry-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

.std-entry-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #888);
  font-weight: 600;
}

.std-entry-body {
  font-size: 0.85rem;
  color: var(--text, #eee);
  line-height: 1.5;
}


/* 4. OPTIONS GRID (for pickRequired) */

.std-options {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.std-option-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface, #121224);
  border: 1px solid var(--border, #333);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text, #eee);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  font-family: inherit;
}

.std-option-btn:hover {
  border-color: var(--acc, #c9a84c);
  background: var(--acc-dim, rgba(201,168,76,0.08));
}

.std-option-btn:active {
  transform: scale(0.98);
}

.std-option-count {
  font-size: 0.7rem;
  color: var(--text-dim, #888);
  white-space: nowrap;
  margin-left: 0.75rem;
}

.std-option-btn--chosen {
  border-color: var(--acc, #c9a84c);
  background: var(--acc-dim, rgba(201,168,76,0.08));
  pointer-events: none;
}

.std-option-btn--chosen::after {
  content: '✓';
  margin-left: 0.5rem;
  color: var(--acc, #c9a84c);
  font-weight: bold;
}


/* 5. RESULT DISPLAY */

.std-result-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #eee);
  margin: 0.4rem 0;
  line-height: 1.4;
}

.std-result-meta {
  font-size: 0.72rem;
  color: var(--text-dim, #888);
  margin-top: 0.3rem;
}

.std-result-meta span {
  margin-right: 0.75rem;
}


/* 6. PATH SUMMARY */

.std-path-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.std-path-chip {
  background: var(--surface, #121224);
  border: 1px solid var(--border, #333);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  color: var(--text-dim, #888);
}

.std-path-arrow {
  color: var(--text-dim, #666);
  font-size: 0.6rem;
}


/* 7. START BUTTON (reuse spin-both pattern) */

.std-start-row {
  text-align: center;
  margin-top: 0.75rem;
}


/* 8. STATS ROW */

.std-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-dim, #888);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border, #333);
  margin-bottom: 0.75rem;
}

.std-stats span {
  white-space: nowrap;
}


/* 9. ANIMATIONS */

@keyframes stdFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* 10. RESPONSIVE */

@media (max-width: 420px) {
  #standardLayout {
    padding: 0.5rem 0.65rem 2rem;
  }

  .std-entry {
    padding: 0.5rem 0.65rem;
  }

  .std-result-question {
    font-size: 1rem;
  }
}
