/* log-panel.css — Phase 55 log-entries HUD styles (slim).
 *
 * Per-section styling for the left column's JOURNAL accordion.
 * Shares the accordion framework with missions.css + comms.css via
 * column-accordions.css (read that first if touching accordion
 * behavior).
 *
 * This file owns ONLY:
 *   - .apex-log-section + body / head chrome
 *   - .apex-log__list / .apex-log__empty
 *   - .apex-log row chrome (header, title, kind chip, sol pill, body, image)
 */

/* ── Section container ─────────────────────────────────────────── */

.apex-log-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 8px -10px 0;
  border-top: 1px solid rgba(120, 150, 175, 0.18);
}
.apex-log-section[data-expanded="true"] {
  flex: 1 1 0;
  min-height: 0;
}

/* ── Header button ─────────────────────────────────────────────── */

.apex-log-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 30px;
  box-sizing: border-box;
  padding: 0 10px;
  margin: 0;
  width: 100%;
  background: rgba(20, 28, 40, 0.6);
  border: 0;
  border-bottom: 1px solid rgba(120, 150, 175, 0.25);
  color: rgba(220, 235, 250, 0.85);
  font-size: 12px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
}
.apex-log-section__head:hover {
  background: rgba(28, 38, 52, 0.7);
}
.apex-log__label {
  font-weight: 600;
  color: rgba(220, 235, 250, 0.95);
  flex: 1 1 auto;
  text-align: left;
}
.apex-log__badge {
  background: rgba(180, 220, 245, 0.22);
  border: 1px solid rgba(180, 220, 245, 0.6);
  color: #c4dff5;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.apex-log__chev {
  opacity: 0.6;
  font-size: 11px;
  width: 12px;
  text-align: center;
}

/* ── Body (scrollable) ─────────────────────────────────────────── */

.apex-log-section__body {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 10px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 150, 175, 0.45) transparent;
}
.apex-log-section[data-expanded="true"] .apex-log-section__body {
  display: block;
}
.apex-log-section__body::-webkit-scrollbar         { width: 6px; }
.apex-log-section__body::-webkit-scrollbar-track   { background: transparent; }
.apex-log-section__body::-webkit-scrollbar-thumb   { background: rgba(120, 150, 175, 0.4); border-radius: 3px; }
.apex-log-section__body::-webkit-scrollbar-thumb:hover { background: rgba(120, 150, 175, 0.65); }

.apex-log__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.apex-log__empty {
  opacity: 0.55;
  font-style: italic;
  font-size: 12px;
  padding: 6px 2px;
  color: #d8e2ee;
}

/* ── Log row ──────────────────────────────────────────────────── */

.apex-log {
  background: rgba(22, 30, 42, 0.65);
  border-left: 2px solid rgba(120, 150, 175, 0.5);
  border-radius: 2px;
}
.apex-log[data-kind="mission_log"]   { border-left-color: rgba(112, 191, 255, 0.85); }
.apex-log[data-kind="dream"]         { border-left-color: rgba(196, 158, 230, 0.85); }
.apex-log[data-kind="photo"]         { border-left-color: rgba(245, 220, 130, 0.85); }
.apex-log[data-kind="radio_capture"] { border-left-color: rgba(140, 230, 170, 0.85); }
.apex-log[data-kind="ocr"]           { border-left-color: rgba(245, 176, 86, 0.85); }
.apex-log[data-unread="true"]        { background: rgba(40, 52, 70, 0.78); }

.apex-log__header {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}
.apex-log__header:hover { background: rgba(255, 255, 255, 0.04); }

.apex-log__title-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.apex-log__kind {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(120, 150, 175, 0.9);
}
.apex-log__kind--mission_log   { color: #b9d8f5; }
.apex-log__kind--dream         { color: #d6bcec; }
.apex-log__kind--photo         { color: #f5e69c; }
.apex-log__kind--radio_capture { color: #b6ecc7; }
.apex-log__kind--ocr           { color: #f8d59c; }
.apex-log__title {
  font-size: 12px;
  font-weight: 600;
  color: #e6f7f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apex-log[data-unread="true"] .apex-log__title::before {
  content: "•";
  margin-right: 5px;
  color: #c4dff5;
}
.apex-log__sol {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(164, 236, 223, 0.85);
  flex: 0 0 auto;
}
.apex-log__chev {
  opacity: 0.55;
  font-size: 10px;
}

.apex-log__body {
  padding: 4px 12px 10px 14px;
  border-top: 1px solid rgba(120, 150, 175, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apex-log__image {
  max-width: 100%;
  border-radius: 2px;
  border: 1px solid rgba(120, 150, 175, 0.25);
}
.apex-log__text {
  font-size: 12px;
  line-height: 1.5;
  color: #d8e2ee;
  word-wrap: break-word;
}
.apex-log__text p { margin: 0 0 8px 0; }
.apex-log__text p:last-child { margin-bottom: 0; }
.apex-log__text code {
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 11px;
}
.apex-log__plain {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
}
.apex-log__read {
  align-self: flex-start;
  background: rgba(180, 220, 245, 0.2);
  border: 1px solid rgba(180, 220, 245, 0.55);
  color: #c4dff5;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.apex-log__read:hover { background: rgba(180, 220, 245, 0.32); }
