/* Ensephra — Poster Wall: kindness notes + visitor testimonials,
   live, on the homepage itself — not hidden behind a toolkit click. */

.poster-wall {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pw-form-card {
  max-width: 560px;
  margin: 0 auto 3.5rem;
  background: #fff;
  border: 1px solid var(--border, rgba(122,158,135,0.18));
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(20,30,24,0.08);
  text-align: left;
}

.pw-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; }
.pw-tab {
  flex: 1;
  background: var(--mist, #F5F7F5);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft, #3D4E41);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pw-tab.active { background: var(--sage, #7A9E87); color: #fff; }

.pw-field-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage, #7A9E87); font-weight: 600; margin: 0.9rem 0 0.4rem; display: block; }
.pw-name-input, .pw-textarea {
  width: 100%;
  border: 1px solid rgba(122,158,135,0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: var(--sans, inherit);
  font-size: 0.87rem;
  color: var(--ink, #1E2820);
  background: #fff;
}
.pw-textarea { min-height: 76px; resize: none; margin-top: 0.4rem; }
.pw-name-input:focus, .pw-textarea:focus { outline: none; border-color: var(--sage, #7A9E87); }

.pw-form-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.7rem; }
.pw-colors { display: flex; gap: 0.4rem; }
.pw-color-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.pw-color-dot[data-color="sage"] { background: #7A9E87; }
.pw-color-dot[data-color="gold"] { background: #B8956A; }
.pw-color-dot[data-color="rose"] { background: #B0777F; }
.pw-color-dot.active { border-color: var(--ink, #1E2820); }

.pw-branch-row { display: flex; gap: 0.4rem; margin-top: 0.4rem; flex-wrap: wrap; }
.pw-branch-btn {
  background: var(--mist, #F5F7F5); border: 1px solid transparent; border-radius: 100px;
  padding: 0.35rem 0.85rem; font-size: 0.74rem; font-weight: 500; color: var(--ink-soft, #3D4E41);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.pw-branch-btn.active { background: var(--sage, #7A9E87); color: #fff; }
.pw-form-right { display: flex; align-items: center; gap: 0.75rem; }
.pw-charcount { font-size: 0.72rem; color: #9aa39b; }
.pw-btn-post {
  background: var(--sage, #7A9E87); color: #fff; border: none; border-radius: 100px;
  padding: 0.55rem 1.2rem; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.pw-btn-post:hover { background: #6a8c77; transform: translateY(-1px); }
.pw-btn-post[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }
.pw-status { font-size: 0.75rem; color: var(--sage, #7A9E87); min-height: 1.1rem; margin-top: 0.5rem; }
.pw-status.pw-error { color: #b0575f; }
.pw-privacy { font-size: 0.68rem; color: #9aa39b; margin-top: 0.6rem; display: flex; align-items: center; gap: 0.35rem; }
.pw-privacy svg { width: 11px; height: 11px; stroke: #9aa39b; fill: none; stroke-width: 1.6; flex-shrink: 0; }

.pw-live-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage, #7A9E87); font-weight: 600; margin-bottom: 1.75rem; }
.pw-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7A9E87; box-shadow: 0 0 0 0 rgba(122,158,135,0.6); animation: pwPulse 2s ease-out infinite; }
@keyframes pwPulse { 0% { box-shadow: 0 0 0 0 rgba(122,158,135,0.55); } 70% { box-shadow: 0 0 0 7px rgba(122,158,135,0); } 100% { box-shadow: 0 0 0 0 rgba(122,158,135,0); } }

.pw-board {
  columns: 4 220px;
  column-gap: 1rem;
  text-align: left;
}
@media (max-width: 700px) { .pw-board { columns: 2 160px; } }

.pw-note {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 4px 4px 10px 10px;
  padding: 1rem 1.1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #2b352d;
  position: relative;
  box-shadow: 0 10px 24px rgba(20,30,24,0.1);
  animation: pwNoteIn 0.5s ease both;
}
.pw-note::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(20,30,24,0.25), inset 0 -2px 2px rgba(0,0,0,0.08);
}
.pw-note:nth-child(4n+1) { transform: rotate(-1.4deg); }
.pw-note:nth-child(4n+2) { transform: rotate(1.1deg); }
.pw-note:nth-child(4n+3) { transform: rotate(-0.7deg); }
.pw-note:nth-child(4n+4) { transform: rotate(1.6deg); }
@keyframes pwNoteIn { from { opacity: 0; transform: translateY(12px) scale(0.95) rotate(0deg); } to { opacity: 1; } }

.pw-note[data-color="sage"] { background: #EAF2EC; border: 1px solid rgba(122,158,135,0.25); }
.pw-note[data-color="gold"] { background: #F5EEE3; border: 1px solid rgba(184,149,106,0.3); }
.pw-note[data-color="rose"] { background: #F5EAEB; border: 1px solid rgba(176,119,127,0.3); }
.pw-note[data-kind="testimonial"] { background: #fff; border: 1px solid rgba(122,158,135,0.3); }

.pw-note-badge {
  display: inline-block;
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage, #7A9E87); font-weight: 700; margin-bottom: 0.4rem;
}
.pw-note-author { display: block; margin-top: 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--ink, #1E2820); }

.pw-note-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.55rem; }
.pw-note-time { font-size: 0.63rem; color: #9aa39b; }
.pw-heart-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer; padding: 0.15rem 0.3rem;
  color: #9aa39b; transition: color 0.2s ease, transform 0.15s ease;
}
.pw-heart-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s ease; }
.pw-heart-btn:hover { color: #B0777F; transform: scale(1.08); }
.pw-heart-btn.pw-hearted { color: #B0777F; }
.pw-heart-btn.pw-hearted svg { fill: #B0777F; }
.pw-heart-count { font-size: 0.68rem; font-variant-numeric: tabular-nums; }

.pw-empty { text-align: center; padding: 2rem 1rem; color: #9aa39b; font-size: 0.85rem; column-span: all; }

@media (prefers-reduced-motion: reduce) {
  .pw-note { animation: none; }
  .pw-live-dot { animation: none; }
}
