/* ==========================================================================
   DEV-CREDIT — faixa de crédito de criação (componente reutilizável)

   Para usar em outro projeto: copie este arquivo + o bloco HTML
   "CRÉDITO DE CRIAÇÃO" do index.html (o ícone é SVG inline, sem
   dependências). Ajuste as cores pelas variáveis abaixo. A fonte é
   herdada do site.
   ========================================================================== */

.dev-credit {
  --dev-credit-bg: #ffffff;
  --dev-credit-border: rgba(20, 20, 20, .07);
  --dev-credit-text: #737373;
  --dev-credit-name: #3d3d3d;
  --dev-credit-accent: #c13584;   /* tom do Instagram, usado com sutileza */
  --dev-credit-transition: 250ms ease;

  width: 100%;
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: var(--dev-credit-bg);
  border-top: 1px solid var(--dev-credit-border);
  box-shadow: 0 -1px 8px rgba(20, 20, 20, .025);
}

.dev-credit__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .55rem;
  max-width: 100%;
  margin: 0;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--dev-credit-text);
  text-align: center;
}

/* "Desenvolvido por Max Willian" fica junto; se faltar espaço, só o
   @ desce para a linha de baixo, centralizado. */
.dev-credit__by {
  white-space: nowrap;
}

.dev-credit__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 32px;            /* área de toque confortável sem engordar a faixa */
  padding: 0 .15rem;
  border-radius: 4px;
  text-decoration: none;
  transition: color var(--dev-credit-transition), opacity var(--dev-credit-transition);
  -webkit-tap-highlight-color: transparent;
}

.dev-credit__link--name {
  font-weight: 700;
  color: var(--dev-credit-name);
}

.dev-credit__link--handle {
  font-weight: 600;
  color: var(--dev-credit-accent);
  opacity: .85;
}

.dev-credit__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dev-credit__link:focus-visible {
  outline: 2px solid var(--dev-credit-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .dev-credit__link--name:hover {
    color: var(--dev-credit-accent);
  }

  .dev-credit__link--handle:hover {
    opacity: 1;
  }
}

.dev-credit__link:active {
  opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
  .dev-credit__link {
    transition: none;
  }
}
