/*
 * meta-tag-generator.css — per-tool styles only.
 * Reuses global .field / .input / .btn / .empty-state / .table-wrap.
 * Tokens only; no inline styles (CSP: style-src 'self').
 */

/* Section dividers inside the form. */
.mtg-section {
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mtg-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Label row with an inline live character counter. */
.mtg-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.mtg-counter {
  flex: none;
  font: 500 12px/1 var(--font-mono);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.mtg-counter.is-good { color: var(--green-600); }
.mtg-counter.is-warn { color: var(--warning-700); }
.mtg-counter.is-over { color: var(--error-600); }

.mtg-textarea {
  resize: vertical;
  min-height: 2.5rem;
  line-height: 1.5;
}

/* Grouped OG/Twitter override fields (shown only when "mirror" is off). */
.mtg-social-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Result header: tag count on the left, copy button on the right. */
.mtg-tags-count {
  margin-right: auto;
  font: 500 13px/1.4 var(--font-sans);
  color: var(--text-secondary);
}

/* Generated snippet: monospace, wraps long URLs, never scrolls the page. */
.mtg-code {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.mtg-code code {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm-size);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-primary);
}
