/* dicionario-acordes.css — ferramenta em /dicionario-de-acordes/. Namespace .dic-* */

.dic-head { margin: 4px 0 16px; }
.dic-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dic-head__date { font-size: 12px; color: var(--text-muted); }
.dic-head .rr-pill--outline { border-color: var(--border); color: var(--text-muted); }
.dic-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;
}

.dic-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);
}
.dic-byline img {
  /* estilos.css tem img{width:100%} global */
  width: 40px; height: 40px; border-radius: 9px;
  flex-shrink: 0; display: block; object-fit: cover;
}
.dic-byline a { color: var(--text); }

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

.dic__grupo { margin-bottom: 16px; }
.dic__label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 8px;
}
.dic__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dic__chip {
  border: 1px solid #2f322e; background: #1a1d19; color: #d1d5db;
  border-radius: 8px; padding: 8px 12px;
  font-size: 0.86rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease;
}
.dic__chip:hover { background: #232722; }
.dic__chip.is-on { background: #30df47; border-color: #30df47; color: #08240f; }

.dic__resultado {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid #23261f;
  text-align: center;
}
.dic__nome {
  font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; color: #fff; line-height: 1;
}
.dic__notas { font-size: 0.82rem; color: #9ca3af; margin-top: 8px; line-height: 1.5; }

.dic__diagramas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 18px;
}
.dic__card {
  background: #161a15; border: 1px solid #2f322e; border-radius: 10px;
  padding: 12px 8px 10px; cursor: pointer;
  transition: border-color 0.12s ease;
}
.dic__card:hover { border-color: #30df47; }
.dic__card-lbl {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: #6b7280; text-align: center; margin-bottom: 6px;
}
.dic__svg { width: 100%; height: auto; display: block; max-width: 150px; margin: 0 auto; }
.dic__nut { fill: #e5e7eb; }
.dic__str, .dic__fret { stroke: #4b5048; stroke-width: 1.2; }
.dic__dot { fill: #30df47; }
.dic__open { fill: none; stroke: #9ca3af; stroke-width: 1.5; }
.dic__mark { fill: #6b7280; font-size: 11px; text-anchor: middle; font-family: inherit; }
.dic__fret-num { fill: #9ca3af; font-size: 10px; font-family: inherit; font-weight: 700; }
.dic__vazio { color: #6b7280; font-size: 0.85rem; margin: 0; }

.dic__tocar {
  margin-top: 16px; width: 100%; height: 48px;
  border: none; border-radius: 10px;
  background: #30df47; color: #08240f;
  font-size: 0.98rem; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: background 0.12s ease;
}
.dic__tocar:hover { background: #4ae85f; }
.dic__tocar:disabled { background: #2f322e; color: #6b7280; cursor: default; }

.dic__hint { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.6; color: #6b7280; text-align: center; }

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

@media (max-width: 420px) {
  .dic { padding: 18px 14px; }
  .dic__chip { padding: 7px 10px; font-size: 0.8rem; }
  .dic__diagramas { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}
