/* ═══════════════════════════════════════════════════════════════════
   Раздел «Идеи» — пользователи предлагают улучшения и голосуют (#758).

   Правило (AGENTS.md §3.1, Issue #473): файл раздела не имеет права
   трогать общие селекторы приложения — `.tab-bar`, `#app`, голые
   `body` / `html`, экраны чужих разделов, общую нижнюю навигацию `.jbn`.

   Сторож: tests/test_css_scope.js — нарушение роняет scripts/test.sh.
   ═══════════════════════════════════════════════════════════════════ */

.idea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.idea-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.idea-propose-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.idea-propose-btn:active {
  opacity: .85;
}

.idea-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.idea-form[hidden] {
  display: none;
}
.idea-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
}
.idea-form-input,
.idea-form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bg2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg2);
  resize: vertical;
}
.idea-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.idea-form-cancel,
.idea-form-submit {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.idea-form-cancel {
  background: var(--bg2);
  color: var(--text);
}
.idea-form-submit {
  background: var(--btn);
  color: var(--btn-text);
}
.idea-form-submit:disabled {
  opacity: .6;
  cursor: default;
}
.idea-form-note {
  font-size: 11px;
  color: var(--hint);
  margin-top: 2px;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.idea-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--hint);
  font-size: 14px;
}
.idea-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 12px 14px;
}
.idea-card-main {
  flex: 1 1 auto;
  min-width: 0;
}
.idea-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.idea-status-done {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--hint);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.idea-card-body {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hint);
  word-break: break-word;
}
.idea-vote-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  border: 1px solid var(--bg2);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.idea-vote-btn:disabled {
  opacity: .6;
  cursor: default;
}
.idea-vote-arrow {
  font-size: 13px;
  line-height: 1;
}
.idea-vote-count {
  font-size: 13px;
  font-weight: 700;
}
.idea-vote-btn.idea-voted {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-text);
}
