/* Private listing notes — status chips on cards, and the notes panel on detail
   pages. Loaded alongside favorites.css, whose conventions this follows.

   Chip colours are deliberately a NEUTRAL grey-blue family, not the
   paid/unpaid/equity palette used by .tag-* on the same cards. Those tags
   describe the listing and are the same for every visitor; these describe only
   what YOU did about it. Reusing those colours would make a private status read
   as a property of the audition itself. */

/* --- Status chip (list cards + favorites rows) -------------------------- */

.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #c9d3dd;
  background: #eef2f6;
  color: #3d4a57;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.note-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8795a3;
}

.note-chip--interested::before { background: #2f80ed; }
.note-chip--prepared::before   { background: #f2994a; }
.note-chip--submitted::before  { background: #27ae60; }

/* Not-interested is muted rather than coloured: it marks something you've
   consciously passed on, so it should recede, not compete for attention. */
.note-chip--not_interested {
  background: #f4f4f6;
  border-color: #dcdce2;
  color: #78787f;
}
.note-chip--not_interested::before { background: #b4b4bd; }

/* A note with no status still deserves a marker, or the only way to know you
   wrote something is to open the listing. */
.note-chip--note-only::before { background: none; content: '🗒'; width: auto; height: auto; }

/* On a listing card the chip sits in the tag row. Keep it off the heart. */
.audition-box .note-chip,
.event-box .note-chip,
.opportunity-box .note-chip {
  margin-top: 6px;
}

/* --- Notes panel (detail pages) ----------------------------------------- */

.notes-panel {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-left: 4px solid #8e44ad;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.notes-panel h2 {
  margin: 0 0 2px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.notes-panel .notes-privacy {
  margin: 0 0 14px;
  color: #777;
  font-size: 0.85rem;
}

.notes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.notes-field { display: flex; flex-direction: column; gap: 4px; }

.notes-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.notes-panel select,
.notes-panel textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
}

.notes-panel textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.notes-panel select:focus-visible,
.notes-panel textarea:focus-visible {
  outline: 2px solid #8e44ad;
  outline-offset: 1px;
}

.notes-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.notes-save-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 5px;
  background: #8e44ad;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.notes-save-btn:hover { background: #9b59b6; }

.notes-hint { color: #888; font-size: 0.82rem; margin: 0; }

.notes-flash {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  border-left: 4px solid;
}
.notes-flash-ok  { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.notes-flash-err { background: #ffebee; color: #c62828; border-color: #c62828; }

/* --- Prompt for signed-out visitors ------------------------------------ */

.notes-signin {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: #faf7fc;
  border: 1px dashed #d5c2e0;
  border-radius: 8px;
  color: #5b4668;
  font-size: 0.92rem;
}
.notes-signin a { color: #8e44ad; font-weight: 600; }

/* --- "Report inaccurate information" ----------------------------------- */

/* A quiet text link on purpose. It must be findable when something is wrong,
   without competing with the submit/browse calls to action. */
.report-link {
  display: inline-block;
  color: #7a7a85;
  font-size: 0.85rem;
  text-decoration: underline;
}
.report-link:hover { color: #c0392b; }

.results-count-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Favorites page: notes section ------------------------------------- */

.notes-list { list-style: none; margin: 0; padding: 0; }

.notes-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.notes-list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.notes-list-head a { color: #8e44ad; font-weight: 600; text-decoration: none; }
.notes-list-head a:hover { text-decoration: underline; }

.notes-list-type {
  color: #999;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notes-list-sub { margin: 2px 0 0; color: #666; font-size: 0.88rem; }

.notes-list-text {
  margin: 6px 0 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 600px) {
  .notes-panel { margin-left: 12px; margin-right: 12px; padding: 14px 16px; }
  .notes-row { flex-direction: column; align-items: stretch; }
}
