/* Master Sport — Links */
:root {
  --accent: #ffffff;
  --accent-light: #d4d4d8;
  --accent-strong: #e4e4e7;
  --accent-ink: #0c0c0d;
  --bg: #0c0c0d;
  --card: #18181b;
  --card-hover: #222226;
  --line: #2e2e33;
  --text: #f4f6f2;
  --muted: #a1a1aa;
  --gray: #6d6e70;
  --radius: 14px;
  --skew: -8deg;
  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Fundo com listras diagonais, lembrando a textura do tecido */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .09), transparent 60%),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
    var(--bg);
}

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(40px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Perfil ---------- */
.profile { text-align: center; }

.profile__logo {
  display: block;
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .55));
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both;
}

.profile__name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.profile__bio {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Botões ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  animation: rise .45s ease both;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}

/* faixa diagonal verde na lateral esquerda */
.link::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--accent);
  transform: skewX(var(--skew));
  opacity: 0;
  transition: opacity .18s ease;
}

.link:hover,
.link:focus-visible {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.link:hover::before,
.link:focus-visible::before { opacity: 1; }

.link:active { transform: translateY(0) scale(.99); }

.link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.link__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--accent-light);
}
.link__icon svg { width: 22px; height: 22px; }

.link__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link__title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}

.link__subtitle {
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.link:hover .link__arrow { transform: translateX(3px); color: var(--accent-light); }

/* Destaque (ex.: orçamento) */
.link--featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.link--featured::before { display: none; }
.link--featured .link__icon { background: rgba(0, 0, 0, .08); color: var(--accent-ink); }
.link--featured .link__title { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.link--featured .link__subtitle,
.link--featured .link__arrow { color: rgba(0, 0, 0, .6); }
.link--featured:hover,
.link--featured:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 10px 30px rgba(255, 255, 255, .12);
}
.link--featured:hover .link__arrow { color: var(--accent-ink); }

/* ---------- Redes sociais ---------- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.socials a:hover,
.socials a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}
.socials a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.socials svg { width: 22px; height: 22px; }

/* ---------- Rodapé ---------- */
.footer {
  text-align: center;
  color: var(--gray);
  font-size: .8rem;
}
.footer p { margin: 0; }

.noscript {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
}
.noscript a { color: var(--accent); }

/* ---------- Animações ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 768px) {
  .page { padding-top: 64px; gap: 32px; }
  .profile__name { font-size: 1.9rem; }
}

/* Oculto visualmente, mas lido por leitores de tela e buscadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
