/* HinduHum dashboard — plain CSS, no preprocessor/build step. Mobile-first. */

#hh-dashboard-root {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1c1b19;
}

#hh-post-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

#hh-post-form input[type="text"],
#hh-post-form input[type="number"],
#hh-post-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #c9c3ba;
  border-radius: 6px;
  box-sizing: border-box;
}

#hh-post-form textarea {
  resize: vertical;
  min-height: 220px;
}

.hh-image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #d8d2c8;
}

.hh-image-row input[type="number"] {
  width: 5rem;
  display: inline-block;
}

#hh-word-count {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #6b6459;
}

#hh-word-count.hh-invalid {
  color: #b3441f;
  font-weight: 600;
}

#hh-post-form button[type="submit"],
#hh-add-image {
  background: #8a3324;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}

#hh-add-image {
  background: transparent;
  color: #8a3324;
  border: 1px solid #8a3324;
  margin-bottom: 1rem;
}

.hh-remove-image {
  background: none;
  border: none;
  color: #b3441f;
  text-decoration: underline;
  cursor: pointer;
}

#hh-submit-status {
  margin-top: 1rem;
  font-weight: 600;
}

/* Q&A upvote widget */
.hh-solution {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e7e2d8;
}

.hh-upvote-btn {
  background: #f4f1ea;
  border: 1px solid #c9c3ba;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
}

.hh-upvote-btn.hh-voted {
  background: #8a3324;
  color: #fff;
  border-color: #8a3324;
}

.hh-danger-btn {
  background: #b3441f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

#hh-delete-confirm-modal {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b3441f;
  border-radius: 8px;
  background: #fff6f2;
}
