/* ==========================================================================
   css/ideas.css — the Ideas board (DECISIONS 255, js/ui/ideas.js)
   A form panel, then cards with the vote button on the left like a forum's upvote, the title and
   status pill on one line, the text, the admin's note in a soft box, who and when underneath.
   ========================================================================== */
.idea-form { display: flex; flex-direction: column; gap: 8px; }
.idea-form h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.idea-form h4 svg { color: var(--accent-light, #f08c8c); }
.idea-form p { margin: 0; }
.idea-text { resize: vertical; min-height: 64px; }
.idea-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.idea-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-chip {
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: inherit;
}
.idea-chip.active { border-color: var(--accent, #d64545); background: var(--accent-soft, rgba(214, 69, 69, 0.16)); }

.idea-list { display: flex; flex-direction: column; gap: 8px; }
.idea-card {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 10px 12px; border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.idea-vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 54px; border-radius: var(--radius-sm, 8px); cursor: pointer; font: inherit; color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
}
.idea-vote b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.idea-arrow { font-size: 0.8rem; color: var(--muted, #9aa3b8); }
.idea-vote.active { border-color: var(--accent, #d64545); background: var(--accent-soft, rgba(214, 69, 69, 0.16)); }
.idea-vote.active .idea-arrow { color: var(--accent-light, #f08c8c); }
.idea-vote:disabled { cursor: default; opacity: 0.7; }
.idea-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.idea-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.idea-head h4 { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.idea-body { margin: 0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }   /* the writer's line breaks stay (MASTER KZ-29) */
/* A bug report on the board (MASTER KZ-11): the red chip in front of the title, and the checkbox under the form. */
.idea-tag-bug { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(229, 72, 77, 0.22); color: #ff9a9d; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.idea-bug-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.idea-note { margin: 2px 0 0; padding: 6px 9px; border-radius: 6px; background: rgba(157, 180, 63, 0.1); border: 1px solid rgba(157, 180, 63, 0.3); font-size: 0.86rem; }
.idea-status {
  flex: none; padding: 1px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid rgba(255, 255, 255, 0.2);
}
.idea-status.st-planned { color: #a9c9f5; border-color: rgba(90, 143, 214, 0.5); background: rgba(90, 143, 214, 0.14); }
.idea-status.st-done { color: #9db43f; border-color: rgba(157, 180, 63, 0.5); background: rgba(157, 180, 63, 0.14); }
.idea-status.st-declined { color: var(--muted, #9aa3b8); }
.idea-card.st-declined { opacity: 0.7; }
.idea-admin { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px; margin-top: 4px; }

/* Notes under an idea (DECISIONS 341): a small thread with a line on its left, like replies. */
.idea-thread { display: flex; flex-direction: column; gap: 3px; padding-left: 9px; border-left: 2px solid rgba(255, 255, 255, 0.12); font-size: 0.84rem; }
.idea-thread:empty { display: none; }
.idea-thread-note { line-height: 1.4; overflow-wrap: anywhere; }
.idea-thread-more, .idea-thread-add { padding: 0; border: 0; background: none; color: var(--accent-light, #f08c8c); font: inherit; cursor: pointer; }
.idea-thread-more { align-self: flex-start; font-size: 0.8rem; }
.idea-thread-more:hover, .idea-thread-add:hover { text-decoration: underline; }
.idea-thread-x {
  margin-left: 6px; padding: 0 5px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(214, 69, 69, 0.18); color: #f08c8c; font: inherit; line-height: 1.35;
}
.idea-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 3px; }
/* "Reply" as a real button under every idea (owner, 24 September, DECISIONS 346): the old "Add a note" link at the
   end of the grey line was not seen as something to press. */
.idea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.idea-reply-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
}
.idea-reply-btn:hover { background: rgba(255, 255, 255, 0.13); }
/* #ideas?id=12 (from the pop-up or a toast): the card glows once. */
.idea-card.flash { animation: idea-flash 1.8s ease-out; }
@keyframes idea-flash { from { box-shadow: 0 0 0 2px var(--accent, #d64545); } to { box-shadow: 0 0 0 2px transparent; } }

/* The pop-up for the author: their idea, its new status and XBlinxX's note (DECISIONS 341). */
.idea-news { display: flex; flex-direction: column; gap: 10px; }
.idea-news-item {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.idea-news-item p { margin: 0; }

@media (max-width: 600px) {
  .idea-card { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .idea-admin { grid-template-columns: 1fr; }
}
