.ideas-container {
  width: 100%;
  max-width: 700px;
  text-align: left;
}

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.sort-btns { display: flex; gap: 2px; }
.sort-btn {
  padding: 5px 12px; background: #1a1a1a; border: 1px solid #333; color: #888; font-size: 11px; cursor: pointer;
  font-family: monospace;
}
.sort-btn:first-child { border-radius: 4px 0 0 4px; }
.sort-btn:last-child { border-radius: 0 4px 4px 0; }
.sort-btn.active { background: #333; color: #fff; border-color: #444; }
.add-btn {
  padding: 6px 16px; background: #3d2b6b; border: none; color: #fff; font-size: 12px;
  border-radius: 4px; cursor: pointer; font-weight: 600; font-family: monospace;
}
.add-btn:hover { background: #4e3a80; }

.ideas-grid { display: flex; flex-direction: column; gap: 10px; }

.idea-card {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; padding: 14px; cursor: pointer;
  transition: border-color 0.15s;
}
.idea-card:hover { border-color: #444; }
.idea-card.expanded { cursor: default; }

.idea-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.idea-title { font-size: 14px; color: #e0e0e0; font-weight: 600; flex: 1; word-break: break-word; }
.idea-meta { font-size: 10px; color: #555; flex-shrink: 0; font-family: monospace; }

.idea-desc {
  font-size: 12px; color: #999; margin-top: 8px; line-height: 1.5; word-break: break-word;
}
.idea-desc.truncated { max-height: 40px; overflow: hidden; }

.idea-images { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.idea-images img {
  height: 60px; border-radius: 4px; object-fit: cover; border: 1px solid #2a2a2a; cursor: pointer;
}
.idea-images.collapsed img:not(:first-child) { display: none; }
.idea-card.expanded .idea-images img { height: 120px; max-width: 100%; }

.idea-votes {
  display: flex; align-items: center; gap: 4px; margin-top: 10px;
}
.vote-btn {
  background: #1a1a1a; border: 1px solid #333; color: #888; font-size: 14px; width: 28px; height: 28px;
  border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0;
}
.vote-btn:hover { border-color: #555; color: #fff; }
.vote-btn.voted-up { background: #2b1f4a; border-color: #5a3d9e; color: #a78bfa; }
.vote-btn.voted-down { background: #3a1a1a; border-color: #6a2a2a; color: #f87171; }
.vote-score {
  font-size: 13px; font-weight: 600; min-width: 30px; text-align: center; font-family: monospace;
}
.vote-score.positive { color: #a78bfa; }
.vote-score.negative { color: #f87171; }
.vote-score.zero { color: #666; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.idea-modal {
  background: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}
.idea-modal h2 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}
.idea-modal label {
  font-size: 11px;
  color: #888;
  display: block;
  margin-bottom: 4px;
  margin-top: 10px;
}
.idea-modal input[type="text"],
.idea-modal textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #ccc;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.idea-modal textarea {
  min-height: 80px;
  resize: vertical;
}
.idea-modal input[type="text"]:focus,
.idea-modal textarea:focus {
  border-color: #555;
  outline: none;
}

.idea-modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}
.idea-modal-cancel {
  padding: 6px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}
.idea-modal-submit {
  padding: 6px 14px;
  background: #3d2b6b;
  border: none;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.idea-modal-submit:hover { background: #4e3a80; }
.idea-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.file-input-wrap { margin-top: 4px; }
.file-input-wrap input[type="file"] { font-size: 11px; color: #888; }
.file-hint { font-size: 10px; color: #555; margin-top: 2px; }

.img-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000;
  align-items: center; justify-content: center; cursor: pointer;
}
.img-lightbox.show { display: flex; }
.img-lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; }

.empty-state { text-align: center; color: #555; font-size: 13px; padding: 40px 0; font-family: monospace; }
.idea-rules {
  margin-top: 12px;
  padding: 10px 12px;
  background: #1a1a2a;
  border: 1px solid #2a2a4a;
  border-radius: 4px;
  font-size: 11px;
  color: #8888aa;
  line-height: 1.5;
  white-space: pre-wrap;
  display: none;
}

.error-msg { color: #f87171; font-size: 11px; margin-top: 8px; }

@media (max-width: 991px) {
  .ideas-container { padding: 0 10px; }
}
