/* =========================================================
   LinkedIn Post Formatter — tool-specific styles.
   Layered on /tools/_shared/tool.css.
   ========================================================= */

.post-editor { margin-bottom: var(--space-5); }
.post-editor textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-inset);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  transition: var(--transition-colors);
}
.post-editor textarea::placeholder { color: var(--text-subtle); }
.post-editor textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
}
@media (min-width: 560px) {
  .post-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.post-count strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.post-count strong.is-warn { color: var(--warning); }
.post-count strong.is-over { color: var(--danger); }

.post-syntax {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 11px;
}
.post-syntax code {
  font-size: 11px;
  padding: 1px 6px;
}

.post-preview-wrap { margin-bottom: var(--space-5); }
.post-preview {
  padding: var(--space-5);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 120px;
  max-height: 360px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
  transition: var(--transition-colors);
}
.post-preview-placeholder {
  color: var(--text-subtle);
  margin: 0;
}
