/* Shared comments for diary reflections and Financial Wisdom posts.
 * Feature Map
 * [BLOCK post-comments-layout] Comment list with YourChoice-style tiles and compact form
 * [BLOCK post-comments-controls] Form, publish, and author-delete controls
 * [BLOCK post-comments-mobile] Small-screen spacing
 */

/* [BLOCK post-comments-layout] */
.comments-section {
  width: min(760px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: 22px 0 0;
  color: var(--ink, #34231d);
  border-top: 1px solid var(--line, rgba(139, 90, 43, 0.25));
}

.comments-section > h3 {
  margin: 0 0 6px;
  color: var(--ink, #34231d);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.comment-status {
  min-height: 0;
  margin: 6px 0;
  color: var(--ink-soft, #654b40);
  font-size: 0.84rem;
}

.comment-status:empty { display: none; }
.comment-list { display: grid; gap: 14px; margin: 14px 0 20px; }
.comment-list:empty { margin: 0; }

.comment-item {
  padding: 16px;
  background: var(--yc-gold-gradient, linear-gradient(155deg, #FBF4E6 0%, #F2DFC0 36%, #E3C295 70%, #D1AB7A 100%));
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(78, 52, 46, 0.12);
}

.comment-item header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}

.comment-meta { display: flex; gap: 10px; align-items: center; }
.comment-item time { color: #6D4C41; font-size: 0.75rem; }
.comment-item p { margin: 8px 0 0; color: var(--yc-dark, #4E342E); line-height: 1.58; white-space: pre-wrap; }
/* [END BLOCK post-comments-layout] */

/* [BLOCK post-comments-controls] */
.comment-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(234, 212, 174, 0.3);
  border: 1px solid var(--line, rgba(139, 90, 43, 0.25));
  border-radius: 12px;
}

.comment-form h4 {
  margin: 0;
  color: var(--ink, #34231d);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.comment-identity { display: flex; gap: 16px; padding: 0; border: 0; }
.comment-identity legend { margin-bottom: 6px; font-weight: 700; }
.comment-identity label,
.comment-consent { cursor: pointer; }
.comment-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-name-fields[hidden] { display: none; }
.comment-field { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 700; }

.comment-field input,
.comment-field textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink, #34231d);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line, rgba(139, 90, 43, 0.25));
  border-radius: 8px;
  font: 400 0.94rem/1.45 Inter, sans-serif;
}

.comment-field textarea { resize: vertical; }
.comment-field input:focus,
.comment-field textarea:focus { outline: 3px solid rgba(177, 118, 48, 0.18); border-color: #8b5a2b; }
.comment-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.comment-consent { font-size: 0.8rem; line-height: 1.4; }
.comment-guidance { margin: -3px 0 0; color: var(--ink-soft, #654b40); font-size: 0.76rem; }

.comment-submit-button {
  justify-self: start;
  min-height: 42px;
  padding: 9px 16px;
  color: #fff;
  background: #8b5a2b;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(78, 52, 46, 0.22);
  font: 600 0.9rem Inter, sans-serif;
  cursor: pointer;
}

.comment-submit-button:disabled { opacity: 0.65; cursor: wait; }
.comment-delete-button {
  padding: 2px 0;
  color: #8f3428;
  background: transparent;
  border: 0;
  font: 600 0.75rem Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.comment-delete-button:disabled { opacity: 0.55; cursor: wait; }
/* [END BLOCK post-comments-controls] */

/* [BLOCK post-comments-mobile] */
@media (max-width: 600px) {
  .comments-section { margin-top: 30px; padding-top: 16px; }
  .comment-form { gap: 10px; padding: 14px 12px; }
  .comment-identity { flex-direction: column; gap: 6px; }
  .comment-name-fields { grid-template-columns: 1fr; }
  .comment-item { padding: 12px; }
  .comment-item header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .comment-meta { width: 100%; justify-content: space-between; }
}
/* [END BLOCK post-comments-mobile] */


