/* Estilos que o Bulma não cobre: layout Linktree, hover e acessibilidade. */

:root {
  --lt-max-width: 28rem;
  --lt-bg: #f4f1ec;
  --lt-surface: #ffffff;
  --lt-ink: #1b1b1b;
  --lt-muted: #5c5c5c;
  --lt-border: #e4dfd7;
  --lt-shadow: 0 10px 30px rgba(27, 27, 27, 0.08);
  --lt-radius: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lt-bg: #121212;
    --lt-surface: #1c1c1c;
    --lt-ink: #f5f5f5;
    --lt-muted: #b5b5b5;
    --lt-border: #2e2e2e;
    --lt-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

html {
  background-color: var(--lt-bg);
}

body {
  min-height: 100dvh;
  color: var(--lt-ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 42%),
    var(--lt-bg);
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 42%),
      var(--lt-bg);
  }
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.linktree {
  width: 100%;
  max-width: var(--lt-max-width);
  margin: 0 auto;
}

.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border-radius: 50%;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--lt-surface);
  box-shadow: var(--lt-shadow);
}

.profile-name {
  letter-spacing: -0.02em;
}

.profile-bio {
  max-width: 24rem;
  margin-inline: auto;
  color: var(--lt-muted);
  line-height: 1.55;
}

.link-group {
  margin-top: 1.85rem;
}

.link-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lt-muted);
}

.link-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lt-border);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links li {
  list-style: none;
}

.link-button.button {
  position: relative;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  padding-inline: 3.25rem;
  border-color: var(--lt-border);
  border-radius: var(--lt-radius);
  background-color: var(--lt-surface);
  color: var(--lt-ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(27, 27, 27, 0.04);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.link-button .icon {
  position: absolute;
  left: 1.1rem;
  color: var(--lt-ink);
}

.link-button:hover,
.link-button:focus-visible {
  border-color: var(--lt-ink);
  background-color: var(--lt-surface);
  color: var(--lt-ink);
  box-shadow: var(--lt-shadow);
  transform: translateY(-2px);
}

.link-button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}

.link-button:focus-visible {
  outline: 2px solid var(--lt-ink);
  outline-offset: 3px;
}

.site-footer.footer {
  margin-top: auto;
  padding: 2.5rem 0 0;
  background-color: transparent;
  color: var(--lt-muted);
}

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

  .link-button:hover,
  .link-button:focus-visible,
  .link-button:active {
    transform: none;
  }
}
