/* Form wrapper */
#spill-form-wrapper {
  max-width: 700px;
  margin: 2em auto;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}
#spill-form textarea,
.spill-edit-form textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 0.5em;
  font-family: inherit;
  font-size: 1em;
}
#spill-form select,
.spill-edit-form select {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 0.5em;
}
#spill-form input[type="file"] {
  margin-bottom: 0.5em;
}
#spill-form button,
.spill-edit-form button {
  background: #222;
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}
#spill-message {
  margin-top: 0.5em;
  font-weight: bold;
}

/* Feed */
#spill-feed {
  max-width: 700px;
  margin: 2em auto;
  font-family: Arial, sans-serif;
}
.spill-post {
  border: 1px solid #ddd;
  padding: 1em;
  margin-bottom: 1em;
  background: #fffefc;
  border-radius: 4px;
}
.spill-post .meta {
  font-size: 0.85em;
  color: #777;
  margin-top: 0.5em;
}
.spill-post .meta .edit-post-btn {
  cursor: pointer;
  color: #0073aa;
}
.reactions span {
  cursor: pointer;
  margin-right: 1em;
  font-size: 1.2em;
}
.reacted {
  opacity: 0.6;
}
.spill-image {
  margin: 0.5em 0;
  text-align: center;
}
.spill-comments {
  margin-top: 1em;
  border-top: 1px solid #eee;
  padding-top: 1em;
}
.spill-comments .comment {
  margin-bottom: 0.5em;
}
.spill-comment-form textarea {
  width: 100%;
  height: 60px;
  margin-bottom: 0.5em;
}
.spill-comment-form button {
  background: #444;
  color: #fff;
  padding: 0.4em 0.8em;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

/* Load more */
#load-more-wrapper {
  text-align: center;
  margin-bottom: 2em;
}
#load-more-posts {
  background: #222;
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
/* add beside your .edit-post-btn styling: */
.spill-post .meta .delete-post-btn {
  cursor: pointer;
  color: #a00;
  margin-left: 0.5em;
}
#spill-loading {
  display: none;
  text-align: center;
  font-weight: bold;
  color: #222;
  margin-top: 0.5em;
}
#spill-loading {
  display: none;
}

/* Filters */
#spill-filters {
  max-width: 700px;
  margin: 1em auto 2em auto;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  flex-wrap: wrap;
}

#spill-filters select {
  flex: 1 1 48%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1em;
}
.loading-message,
.error-message,
.no-posts-msg {
  text-align: center;
  padding: 1em;
  font-weight: bold;
  color: #555;
}

.error-message {
  color: #c00;
}
/* Bookmark buttons */
.save-bookmark-btn,
#return-to-bookmark {
  background: #0073aa;
  color: #fff;
  padding: 0.4em 1em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.95em;
  margin-top: 0.5em;
}

.save-bookmark-btn:hover,
#return-to-bookmark:hover {
  background: #005f8c;
}

/* Optional visual highlight when jumping to bookmark */
.spill-post[data-post-id].highlight-bookmark {
  border: 2px solid #0073aa;
  background: #eef9ff;
}
