/* =============================================================================
   Athlete Condition — Activity Feed (Phase 4)
   Renders the Daily Brief cards inside the existing message thread.
   border-radius: 0 everywhere. Bold teal type labels — NOT icons.
   ============================================================================= */

.acf-thread {
  background: #fff;
}

.acf-thread-loading,
.acf-thread-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

.acf-thread-error {
  padding: 14px;
  background: #FCEBEB;
  border: 0.5px solid #f5c0c0;
  font-size: 12px;
  color: #791F1F;
}

/* ----- DAILY BRIEF CARD ----- */
.acf-brief-card {
  padding: 12px 16px;
  border-bottom: 0.5px solid #e0e0dc;
}
.acf-brief-card:last-child { border-bottom: none; }
.acf-brief-card.unread { border-left: 2px solid #14b8a6; }

.acf-brief-hdr {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a18;
}

.acf-brief-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.acf-brief-line:last-child { margin-bottom: 0; }

/* Type labels: bold teal text. NOT icons. NOT emoji.
   font-size: 11px; font-weight: 600; color: #14b8a6; min-width: 68px. */
.acf-bl-type {
  font-size: 11px;
  font-weight: 600;
  color: #14b8a6;
  white-space: nowrap;
  min-width: 68px;
  flex-shrink: 0;
}
.acf-bl-content {
  color: #1a1a18;
  font-size: 13px;
  flex: 1;
}
.acf-bl-note {
  color: #666;
  font-size: 12px;
}
.acf-bl-link {
  color: #14b8a6;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
  background: none;
  border: none;
  font-family: inherit;
}
.acf-bl-link:hover { text-decoration: underline; }

/* ----- DIRECT MESSAGE BUBBLES ----- */
/* Bubbles render on lone-message days (no wellness/training rolled-up brief
   card on the same date). On mixed days, messages appear as preview brief
   lines inside the Daily Brief card instead. */
.acf-bubble-group {
  padding: 12px 0 6px;
  display: flex;
  flex-direction: column;
}
.acf-bubble-date-label {
  font-size: 10px;
  color: #999;
  text-align: center;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.acf-msg-in,
.acf-msg-out {
  padding: 8px 12px;
  margin: 4px 16px;
  max-width: 75%;
  font-size: 13px;
  border-radius: 0;
  border: none;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.acf-msg-in  { background: var(--color-background-secondary, #f9fafb); margin-right: auto; align-self: flex-start; }
.acf-msg-out { background: #E1F5EE; margin-left: auto;  align-self: flex-end; }
.acf-msg-meta { font-size: 10px; color: #999; margin-top: 4px; }

/* ----- INLINE COMPOSE AREA ----- */
/* Always-visible compose at the bottom of the Messages tab. No modal. */
.acf-compose {
  padding: 12px 16px;
  border-top: 1px solid #e0e0dc;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
}
.acf-compose-input {
  flex: 1;
  padding: 8px 10px;
  border: 0.5px solid #ccc;
  background: transparent;
  color: #1a1a18;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  min-height: 36px;
  max-height: 120px;
  border-radius: 0;
}
.acf-compose-input:focus {
  outline: none;
  border-color: #14b8a6;
}
.acf-compose-send {
  padding: 8px 16px;
  background: #14b8a6;
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  white-space: nowrap;
}
.acf-compose-send:hover {
  background: #0F6E56;
}
.acf-compose-send:disabled {
  background: #b2c8c0;
  cursor: not-allowed;
}

/* ----- ATHLETE DIRECTORY BADGE DOTS (Phase 4 add-on) -----
   Round dots — exception to the border-radius: 0 rule because badges are
   UI indicator dots, not content elements. */
.acf-badges {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}
.acf-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: default;
}
.acf-badge-wellness { background: #14b8a6; }
.acf-badge-training { background: #185FA5; }
.acf-badge-message  { background: #BA7517; }
.acf-badge-label {
  font-size: 10px;
  color: #888;
  margin-left: 2px;
}
