/* Forge | play.css — LFG + sessions */

.lfg-hero {
  background: linear-gradient(135deg,
    rgba(79,126,255,0.14) 0%,
    rgba(139,92,246,0.14) 50%,
    rgba(236,72,153,0.14) 100%);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.lfg-hero .lh-title {
  font-size: 20px; font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lfg-hero .lh-sub {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.5;
}

/* Slot picker (dots) */
.slot-picker {
  display: flex; gap: 8px; justify-content: center;
  padding: 12px 0;
}
.slot-picker button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700; font-size: 15px;
  transition: all var(--t-fast) var(--ease-in);
}
.slot-picker button.on {
  background: var(--gradient-forge);
  border-color: transparent;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(79,126,255,0.35);
}

/* Applicant row in detail view */
.applicant-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  animation: row-in 320ms var(--ease-in) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.applicant-row .ap-body { flex: 1; min-width: 0; }
.applicant-row .ap-name {
  font-weight: 600; font-size: 14px;
  color: var(--text-strong);
}
.applicant-row .ap-handle {
  font-size: 12px; color: var(--muted);
}
.applicant-row .ap-message {
  font-size: 13px; color: var(--text);
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
  line-height: 1.4;
  word-wrap: break-word;
}
.applicant-row .ap-actions {
  display: flex; gap: 6px;
  margin-top: 10px;
}
.applicant-row .ap-actions button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
}
.applicant-row .ap-status {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.applicant-row .ap-status.accepted {
  background: rgba(34,197,94,0.15);
  color: var(--success);
}
.applicant-row .ap-status.declined {
  background: rgba(239,68,68,0.12);
  color: var(--error);
}
.applicant-row .ap-status.pending {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Session row inside a group info page */
.session-item {
  display: flex; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  animation: row-in 320ms var(--ease-in) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.session-item .si-date {
  width: 52px; flex-shrink: 0;
  background: var(--primary-soft);
  border-radius: 10px;
  color: var(--primary);
  text-align: center;
  padding: 6px 0;
}
.session-item .si-day {
  font-size: 18px; font-weight: 800; line-height: 1;
}
.session-item .si-month {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 3px;
}
.session-item .si-body { flex: 1; min-width: 0; }
.session-item .si-title {
  font-weight: 600; font-size: 14px;
  color: var(--text-strong);
  line-height: 1.3;
}
.session-item .si-meta {
  font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.session-item .si-meta b { color: var(--primary); font-weight: 600; }

/* RSVP mini buttons */
.rsvp-mini {
  display: flex; gap: 4px;
  margin-top: 8px;
}
.rsvp-mini button {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease-in);
}
.rsvp-mini button.on {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Play Chats sub-tab ---------- */
.play-chat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  cursor: pointer;
  animation: row-in 320ms var(--ease-in) both;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: background var(--t-fast) var(--ease-in),
              border-color var(--t-fast) var(--ease-in);
}
.play-chat-row:active { background: var(--surface-2); }

.play-chat-row .pcr-body { flex: 1; min-width: 0; }
.play-chat-row .pcr-name {
  font-weight: 600; font-size: 14.5px;
  color: var(--text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play-chat-row .pcr-sub {
  font-size: 12.5px; color: var(--muted);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play-chat-row .pcr-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.play-chat-row .pcr-time {
  font-size: 11px; color: var(--muted);
}
.play-chat-row .pcr-badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--primary); color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.play-chat-row .pcr-tag {
  display: inline-flex; align-items: center;
  gap: 4px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
}
.play-chat-row .pcr-tag.session {
  color: var(--accent-pink);
  background: rgba(236,72,153,0.12);
}

/* Status label (replaces the button-looking OPEN chip) */
.lfg-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.lfg-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lfg-status.open  { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.lfg-status.full  { color: var(--warning); background: rgba(245,158,11,0.14); border-color: transparent; }
.lfg-status.closed { color: var(--muted); }

/* ---------- LFG discussion thread ---------- */
.lfg-thread {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-top: 16px;
}
.lfg-thread-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.lfg-thread-head .lth-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.lfg-thread-head .lth-icon svg { width: 14px; height: 14px; }
.lfg-thread-head .lth-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-strong);
  flex: 1;
}
.lfg-thread-head .lth-count {
  font-size: 11px; color: var(--muted);
  font-weight: 500;
}

.lfg-thread-msgs {
  max-height: 380px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  scroll-behavior: smooth;
}
.lfg-thread-msgs::-webkit-scrollbar { width: 4px; }
.lfg-thread-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Thread message bubble — a bit smaller than chat */
.th-msg {
  display: flex; gap: 8px; align-items: flex-start;
  animation: bubble-in 220ms var(--ease-in);
}
.th-msg.mine { flex-direction: row-reverse; }
.th-msg .th-av {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-forge);
  color: #fff; font-weight: 600; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.th-msg .th-av img { width: 100%; height: 100%; object-fit: cover; }
.th-msg .th-bubble {
  max-width: 76%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.th-msg.mine .th-bubble {
  background: var(--gradient-forge);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.th-msg:not(.mine) .th-bubble {
  border-bottom-left-radius: 4px;
}
.th-msg .th-name {
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.th-msg .th-time {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 3px;
}
.th-msg.mine .th-time { text-align: right; }

/* System message inside the thread */
.th-system {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 4px auto;
  max-width: 90%;
  font-weight: 500;
}

/* Thread composer */
.lfg-thread-composer {
  display: flex; gap: 8px; align-items: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.lfg-thread-composer textarea {
  flex: 1;
  min-height: 40px; max-height: 100px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-in);
}
.lfg-thread-composer textarea:focus { border-color: var(--primary); }
.lfg-thread-composer .th-mic,
.lfg-thread-composer .th-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-in), opacity var(--t-fast) var(--ease-in),
              background var(--t-fast) var(--ease-in), color var(--t-fast) var(--ease-in);
}
.lfg-thread-composer .th-mic {
  background: var(--surface-2);
  color: var(--text);
}
.lfg-thread-composer .th-mic:active { transform: scale(0.94); }
.lfg-thread-composer .th-send {
  background: var(--gradient-forge);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79,126,255,0.32);
}
.lfg-thread-composer .th-send:disabled { opacity: 0.4; box-shadow: none; }
.lfg-thread-composer .th-send:active:not(:disabled) { transform: scale(0.94); }
.lfg-thread-composer .th-mic svg,
.lfg-thread-composer .th-send svg { width: 18px; height: 18px; }

/* Recording bar (thread version — smaller) */
.th-rec-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px;
}
.th-rec-bar .thr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--error);
  animation: rec-pulse 1.2s infinite;
  flex-shrink: 0;
}
.th-rec-bar .thr-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600;
  color: var(--text-strong);
  min-width: 44px;
}
.th-rec-bar .thr-wave {
  flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 22px;
  overflow: hidden;
}
.th-rec-bar .thr-wave span {
  display: block; width: 3px;
  background: var(--primary);
  border-radius: 2px;
  min-height: 2px;
}
.th-rec-bar button {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-in), transform var(--t-fast) var(--ease-in);
}
.th-rec-bar button svg { width: 16px; height: 16px; }
.th-rec-bar button.cancel { background: rgba(239,68,68,0.14); color: var(--error); }
.th-rec-bar button.send { background: var(--primary); color: #fff; }
.th-rec-bar button:active { transform: scale(0.92); }
