/* =========================================================
   Dr. Renato Ramos — Página de links
   Identidade visual baseada em mikeflix.com.br
   ========================================================= */

:root {
  /* Cores */
  --bg: #05061a;
  --surface: #0b0d26;
  --surface-2: #121536;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f3f8;
  --muted: #979ab3;

  --accent: #3a45d9;
  --accent-light: #7d86f2;
  --accent-dark: #2a2fb0;
  --gold: #f5d27a;
  --gold-deep: #d9a43a;

  --gradient-accent: linear-gradient(135deg, #5d66f0 0%, var(--accent) 50%, var(--accent-dark) 100%);
  --gradient-text: linear-gradient(100deg, #a5acff, #4d57ee 50%, #a5acff);
  --gradient-gold: linear-gradient(135deg, #fff1c2 0%, var(--gold) 40%, var(--gold-deep) 100%);

  /* Tipografia */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Forma */
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* ---------- Fundo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 0),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%);
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.bg__glow--indigo {
  width: 520px;
  height: 520px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(58, 69, 217, 0.55), transparent 70%);
}

.bg__glow--gold {
  width: 360px;
  height: 360px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(217, 164, 58, 0.16), transparent 70%);
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  padding-top: max(56px, env(safe-area-inset-top));
}

/* ---------- Perfil ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 22px;
}

.avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent-light), var(--accent), var(--gold), var(--accent-light));
  animation: spin 10s linear infinite;
}

.avatar__ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.avatar__photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: scale(1.75);
  transform-origin: 50% 30%;
}

.avatar__badge {
  position: absolute;
  right: 2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 14px rgba(58, 69, 217, 0.6);
}

.avatar__badge svg { width: 16px; height: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 210, 122, 0.28);
  border-radius: 999px;
  background: rgba(245, 210, 122, 0.06);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.name {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 2.9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: pan 6s ease-in-out infinite alternate;
}

.bio {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats__sep {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
}

.socials svg { width: 20px; height: 20px; }

.socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 134, 242, 0.5);
  background: rgba(58, 69, 217, 0.18);
  color: #fff;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 21, 54, 0.72), rgba(11, 13, 38, 0.72));
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* reflexo de luz ao passar o mouse */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}

.link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 134, 242, 0.45);
  box-shadow: 0 12px 32px -12px rgba(58, 69, 217, 0.55);
}

.link:hover::before { transform: translateX(100%); }
.link:active { transform: translateY(0) scale(0.99); }

.link__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(58, 69, 217, 0.16);
  border: 1px solid rgba(125, 134, 242, 0.22);
  color: var(--accent-light);
}

.link__icon svg { width: 22px; height: 22px; }

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

.link__title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.link__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.link__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s, background 0.35s;
}

.link__arrow svg { width: 16px; height: 16px; }

.link:hover .link__arrow {
  transform: translate(2px, -2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Destaque principal (WhatsApp) */
.link--primary {
  min-height: 76px;
  border-color: rgba(165, 172, 255, 0.35);
  background: var(--gradient-accent);
  background-size: 160% 160%;
  box-shadow: 0 14px 36px -14px rgba(58, 69, 217, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: pan 5s ease-in-out infinite alternate;
}

.link--primary::before {
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  animation: shine 4s ease-in-out infinite;
  transition: none;
}

.link--primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(125, 134, 242, 0.55);
  animation: ring 2.4s ease-out infinite;
}

.link--primary .link__icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.link--primary .link__title { font-size: 16.5px; }
.link--primary .link__sub { color: rgba(255, 255, 255, 0.78); }
.link--primary .link__arrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

.link--primary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 44px -14px rgba(58, 69, 217, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Card MikeFlix */
.link--feature {
  flex-wrap: wrap;
  padding: 18px 14px 14px 16px;
  border-color: rgba(245, 210, 122, 0.22);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(217, 164, 58, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(18, 21, 54, 0.85), rgba(11, 13, 38, 0.85));
}

.link--feature:hover {
  border-color: rgba(245, 210, 122, 0.5);
  box-shadow: 0 12px 32px -12px rgba(217, 164, 58, 0.4);
}

.link__logo {
  flex-basis: 100%;
  width: auto;
  height: 30px;
  margin-bottom: 4px;
  object-fit: contain;
  object-position: left center;
}

.link__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: #2a1a02;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link--feature .link__arrow { align-self: flex-end; }

/* Foco por teclado */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Rodapé ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

.footer__seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__seal svg { width: 14px; height: 14px; color: var(--gold); }
.footer__note { max-width: 300px; opacity: 0.8; }

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.is-ready .reveal {
  opacity: 1;
  transform: none;
}

/* sem JS, tudo visível */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes shine {
  0%, 55% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(125, 134, 242, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(125, 134, 242, 0); }
}

/* ---------- Responsivo ---------- */
@media (min-width: 768px) {
  .page { padding-top: 80px; }
  .avatar { width: 128px; height: 128px; }
}

@media (max-width: 360px) {
  .link { gap: 12px; }
  .link__icon { width: 40px; height: 40px; }
  .link__title { font-size: 15px; }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
