/* transpositor.css — ferramenta em /transpositor-de-cifra/. Namespace .trp-* */

.trp-head { margin: 4px 0 16px; }
.trp-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.trp-head__date { font-size: 12px; color: var(--text-muted); }
.trp-head .rr-pill--outline { border-color: var(--border); color: var(--text-muted); }
.trp-head__title {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.18;
  color: var(--text); margin: 0; text-wrap: pretty;
}

.trp-byline {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem; color: var(--text-muted);
}
.trp-byline img {
  /* o estilos.css tem img{width:100%} global; sem largura o avatar estica */
  width: 40px; height: 40px; border-radius: 9px;
  flex-shrink: 0; display: block; object-fit: cover;
}
.trp-byline a { color: var(--text); }

/* ── Ferramenta ── */
.trp { background: #0f1210; border-radius: 12px; padding: 22px 20px; color: #fff; }

.trp__barra {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px; padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid #23261f;
}
.trp__tom {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.82rem; color: #6b7280;
}
.trp__tom strong { font-size: 1.15rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.trp__tom .trp__seta { color: #30df47; font-weight: 700; }
.trp__tom .trp__destino { color: #30df47; }

.trp__stepper { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.trp__step {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid #2f322e; background: #1a1d19; color: #fff;
  font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background 0.12s ease;
}
.trp__step:hover { background: #232722; }
.trp__passo {
  min-width: 58px; text-align: center;
  font-size: 0.95rem; font-weight: 800; color: #30df47;
  font-variant-numeric: tabular-nums;
}
.trp__passo-lbl { font-size: 0.68rem; color: #6b7280; display: block; font-weight: 600; letter-spacing: 0.08em; }

.trp__notacao { display: flex; gap: 6px; }
.trp__nota-btn {
  border: 1px solid #2f322e; background: #1a1d19; color: #9ca3af;
  border-radius: 8px; padding: 7px 12px;
  font-size: 0.82rem; font-weight: 700; font-family: inherit; cursor: pointer;
}
.trp__nota-btn.is-on { background: #30df47; border-color: #30df47; color: #08240f; }

.trp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trp__campo { display: flex; flex-direction: column; min-width: 0; }
.trp__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 7px;
}
.trp__entrada, .trp__saida {
  min-height: 260px;
  background: #161a15; border: 1px solid #2f322e; border-radius: 10px;
  padding: 14px;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.86rem; line-height: 1.65; color: #e5e7eb;
  white-space: pre; overflow: auto; tab-size: 4;
}
.trp__entrada { width: 100%; resize: vertical; }
.trp__entrada::placeholder { color: #4b5048; }
.trp__saida { margin: 0; }
.trp__saida:empty::before { content: 'A cifra transposta aparece aqui.'; color: #4b5048; }

.trp__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trp__btn {
  border: 1px solid #2f322e; background: #1a1d19; color: #fff;
  border-radius: 9px; padding: 10px 16px;
  font-size: 0.86rem; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 0.12s ease;
}
.trp__btn:hover { background: #232722; }
.trp__btn--principal { background: #30df47; border-color: #30df47; color: #08240f; }
.trp__btn--principal:hover { background: #4ae85f; }

.trp__aviso {
  margin: 12px 0 0; padding: 10px 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  font-size: 0.8rem; line-height: 1.55; color: #fdba74;
}
.trp__hint { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.6; color: #6b7280; }

.trp :focus-visible { outline: 2px solid #30df47; outline-offset: 2px; }

@media (max-width: 700px) {
  .trp__grid { grid-template-columns: 1fr; }
  .trp__entrada, .trp__saida { min-height: 200px; font-size: 0.8rem; }
  .trp__stepper { margin-left: 0; }
}
@media (max-width: 420px) {
  .trp { padding: 18px 14px; }
}
