/* =========================================================
   HelpFisio — Bio Link Page
   Sistema visual B (ferramenta/conversão): fundo claro,
   azul/teal, hierarquia limpa, "fichas" como motivo de marca.
   v2 — compacto para caber em 1 tela (1920x1080), com efeitos.
   ========================================================= */

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #f7f7f2;
  --card: #ffffff;
  --ink: #1d2a2e;
  --ink-soft: #5b6b6f;
  --blue: #3e85c9;
  --blue-dark: #2e6ba8;
  --teal: #4fb3a2;
  --pink: #eaa8c3;
  --amber: #f2b84b;
  --border: #e7eef0;
  --shadow: 0 1px 2px rgba(29, 42, 46, 0.04), 0 8px 24px rgba(29, 42, 46, 0.06);
  --shadow-hover: 0 2px 4px rgba(29, 42, 46, 0.06), 0 16px 32px rgba(29, 42, 46, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(79, 179, 162, 0.10), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(62, 133, 201, 0.10), transparent 40%),
    radial-gradient(circle at 90% 8%, rgba(234, 168, 195, 0.10), transparent 35%);
}

.wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) 20px 18px;
}

/* ---------- Entrance animation ---------- */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile,
.ficha,
.social,
footer {
  animation: fade-in-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile { animation-delay: 0.03s; }
.ficha:nth-child(1) { animation-delay: 0.12s; }
.ficha:nth-child(2) { animation-delay: 0.18s; }
.ficha:nth-child(3) { animation-delay: 0.24s; }
.ficha:nth-child(4) { animation-delay: 0.30s; }
.social  { animation-delay: 0.38s; }
footer   { animation-delay: 0.44s; }

/* ---------- Header / Avatar ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.avatar-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from var(--angle), var(--teal), var(--blue), var(--pink), var(--teal));
  margin-bottom: 10px;
  animation: rotate-ring 7s linear infinite;
}

@keyframes rotate-ring {
  to { --angle: 360deg; }
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  display: block;
  object-fit: cover;
  background: #fff;
}

.profile h1 {
  font-family: "Quicksand", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.profile .handle {
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.86rem;
  margin: 0 0 6px;
}

.profile .greeting {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 34ch;
  margin: 0;
}

/* ---------- Ficha / Link Cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ficha {
  --tab: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 16px 9px 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.ficha::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--tab);
}

/* shine sweep on hover */
.ficha::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.ficha:hover::after,
.ficha:focus-visible::after {
  left: 130%;
}

.ficha:hover,
.ficha:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--tab);
}

.ficha:focus-visible {
  outline: 2px solid var(--tab);
  outline-offset: 2px;
}

.ficha .thumb {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.ficha .body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ficha .tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tab);
}

.ficha .title {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.22;
}

.ficha .arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink-soft);
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ficha:hover .arrow { transform: translateX(3px); opacity: 1; }

.ficha--blue   { --tab: var(--blue); }
.ficha--teal   { --tab: var(--teal); }
.ficha--pink   { --tab: var(--pink); }
.ficha--amber  { --tab: var(--amber); }

/* ---------- Social row ---------- */

.social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  transform: translateY(-3px) scale(1.06);
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Footer ---------- */

footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: -2px;
}

footer a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { text-decoration: underline; }

footer .credit {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.65;
}

/* ---------- Small screens (fallback: allow scroll) ---------- */

@media (max-height: 700px), (max-width: 380px) {
  html, body { height: auto; }
  body { align-items: flex-start; }
  .wrap { padding-top: 24px; }
}
