/* PNP_WEBINAR_PRIVATE_THREADS_CSS_V1
 * Style prywatnych wątków per osoba — tylko namespace .pnp-pt-*
 * Ładowany po layout CSS (D-4 loader). Zero globalnego resetu.
 */

/* ── root / wspólne ───────────────────────────────────────────────────── */
.pnp-pt-root,
.pnp-pt-host,
.pnp-pt-participant {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.45;
  color: var(--pnp-text-main, #d8e4f2);
}

.pnp-pt-hint,
.pnp-pt-empty {
  font-size: 16px;
  line-height: 1.5;
  color: var(--pnp-text-muted, #7a99bb);
  text-align: center;
  padding: 16px 12px;
}

/* ── host: lista osób + rozmowa ───────────────────────────────────────── */
.pnp-pt-host {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
}

.pnp-pt-host__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px 2px 4px;
  border-bottom: 1px solid var(--pnp-navy-border, #2a4066);
}

.pnp-pt-host__body {
  flex: 1 1 auto;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
}

/* desktop: 2 kolumny — lista | rozmowa */
@media (min-width: 640px) {
  .pnp-pt-host {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
  }

  .pnp-pt-host__list {
    flex: 0 0 38%;
    max-width: 220px;
    max-height: none;
    border-bottom: none;
    border-right: 1px solid var(--pnp-navy-border, #2a4066);
    padding-right: 10px;
  }

  .pnp-pt-host__body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 160px;
  }
}

/* ── przycisk wątku (osoba) ───────────────────────────────────────────── */
.pnp-pt-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--pnp-navy-border, #2a4066);
  border-radius: var(--pnp-radius-sm, 8px);
  background: var(--pnp-navy-mid, #162440);
  color: var(--pnp-text-main, #d8e4f2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.pnp-pt-thread:hover,
.pnp-pt-thread:focus-visible {
  border-color: var(--pnp-navy-border-lt, #3a5480);
  background: var(--pnp-navy-light, #1e3155);
  outline: none;
}

.pnp-pt-thread.is-active {
  border-color: var(--pnp-gold, #c9a84c);
  background: rgba(201, 168, 76, 0.14);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.pnp-pt-thread__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.pnp-pt-thread__badge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

/* ── wiadomości ───────────────────────────────────────────────────────── */
.pnp-pt-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: var(--pnp-radius-sm, 8px);
  background: var(--pnp-navy-mid, #162440);
  border: 1px solid var(--pnp-navy-border, #2a4066);
}

.pnp-pt-msg--self {
  align-self: flex-end;
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
}

.pnp-pt-msg__who {
  font-size: 14px;
  font-weight: 700;
  color: var(--pnp-gold-light, #e8cc80);
  letter-spacing: 0.01em;
}

.pnp-pt-msg--self .pnp-pt-msg__who {
  color: var(--pnp-gold, #c9a84c);
}

.pnp-pt-msg__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--pnp-text-main, #d8e4f2);
  overflow-wrap: break-word;
  word-break: normal;
}

/* ── participant: jeden wątek ─────────────────────────────────────────── */
.pnp-pt-participant {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
}

.pnp-pt-participant__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pnp-text-main, #d8e4f2);
  padding: 4px 2px 6px;
  border-bottom: 1px solid var(--pnp-navy-border, #2a4066);
}

.pnp-pt-participant__body {
  flex: 1 1 auto;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
}

/* ── mobile: więcej miejsca na listę w overlay (tylko gdy moduł aktywny) ─ */
#pnpQuestionsListOverlay:has(.pnp-pt-host),
#pnpQuestionsListOverlay:has(.pnp-pt-participant),
#pnpQuestionsListOverlay:has(.pnp-pt-root) {
  max-height: min(52vh, 360px) !important;
  min-height: 140px;
  flex: 1 1 auto;
}

#pnpQuestionsList:has(.pnp-pt-host),
#pnpQuestionsList:has(.pnp-pt-participant),
#pnpQuestionsList:has(.pnp-pt-root) {
  padding: 8px 12px;
  gap: 10px;
}

/* /PNP_WEBINAR_PRIVATE_THREADS_CSS_V1 */
