/* === NorthStar Quest v1.0 — Additional Styles === */
/* ADDITIVE — append to questionnaire.css or load as separate file */

/* ============================================
   INTRO SCREEN
   ============================================ */

.ns-intro-screen {
  text-align: center;
  padding: 12px 0;
}

.ns-intro-screen h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ns-intro-screen p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ns-intro-icon {
  margin-bottom: 20px;
}

.ns-intro-warning {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px !important;
  color: var(--text-primary) !important;
}

.ns-intro-warning strong {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================
   TRIPLE INPUT (3 cele)
   ============================================ */

.ns-triple-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.ns-triple-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ns-triple-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  min-width: 24px;
  text-align: center;
}

.ns-triple-field {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  font-weight: 300;
  transition: border-color var(--transition-med);
}

.ns-triple-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.ns-triple-field::placeholder {
  color: var(--text-secondary);
}

/* ============================================
   RANK CLICK (priorytetyzacja)
   ============================================ */

.ns-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.ns-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-med);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ns-rank-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.ns-rank-item:active {
  transform: scale(0.98);
}

.ns-rank-item.ns-rank-selected {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.ns-rank-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-med);
}

.ns-rank-selected .ns-rank-badge {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-primary);
}

.ns-rank-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.4;
}

/* ============================================
   TRIPLE SLIDER (bliskość per cel)
   ============================================ */

.ns-slider-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.ns-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ns-slider-goal {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-slider-wrap {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ns-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.ns-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--gold-glow);
  transition: transform var(--transition-fast);
}

.ns-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ns-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.ns-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 300;
}

.ns-slider-value {
  width: 36px;
  min-width: 36px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}

/* ============================================
   RESULT SCREEN (after synthesis)
   ============================================ */

.ns-result-screen {
  text-align: center;
  padding: 16px 0 24px;
}

.ns-result-icon {
  margin-bottom: 16px;
}

.ns-result-label {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 12px;
}

.ns-result-statement {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.ns-result-strengths {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .ns-slider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .ns-slider-goal {
    white-space: normal;
    font-size: 14px;
  }

  .ns-slider-wrap {
    flex: 1;
  }

  .ns-slider-value {
    align-self: flex-end;
  }

  .ns-rank-text {
    font-size: 14px;
  }

  .ns-triple-field {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* ============================================
   NS PANEL (persistent, above tabs)
   ============================================ */

.ns-panel {
  margin: 8px 16px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-med);
  -webkit-tap-highlight-color: transparent;
}

.ns-panel:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.ns-panel:active {
  transform: scale(0.99);
}

.ns-panel-active {
  border-color: var(--gold-glow);
}

.ns-panel-empty {
  border-style: dashed;
  opacity: 0.7;
}

.ns-panel-empty:hover {
  opacity: 1;
}

.ns-panel-compass-mini {
  min-width: 28px;
}

.ns-panel-compass {
  min-width: 36px;
  position: relative;
}

.ns-compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid var(--gold);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform-origin: 0 50%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ns-panel-text {
  flex: 1;
  min-width: 0;
}

.ns-panel-label {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 2px;
}

.ns-panel-hint {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
}

.ns-panel-statement {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-panel-goal {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 2px;
}

.ns-panel-arrow {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 300;
  min-width: 16px;
  text-align: center;
}

/* ============================================
   NS DETAIL OVERLAY — goals list
   ============================================ */

.ns-detail-compass {
  display: inline-block;
  cursor: pointer;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ns-detail-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-detail-goal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ns-detail-goal-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.ns-detail-goal-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.4;
}

.ns-detail-goal-prox {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}
