/* ===== Vinicius Carlos · Links — tema dark rock ===== */
:root {
  --bg: #0d0d0d;
  --bg-2: #3b0000;
  --bg-3: #8b0000;
  --accent: #e10600;        /* bordas, brilho, detalhes */
  --accent-text: #ff5247;   /* vermelho legível para textos pequenos */
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --card: rgba(22, 22, 22, 0.88);
  --card-border: rgba(255, 255, 255, 0.10);
  --radius: 18px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", 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;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(139, 0, 0, 0.55) 0%, rgba(59, 0, 0, 0.35) 45%, transparent 75%),
    radial-gradient(ellipse 90% 40% at 50% 108%, rgba(59, 0, 0, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, #120404 0%, var(--bg) 40%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.icon { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.page {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 20px 32px;
}

/* ---------- Botão compartilhar ---------- */
.share {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(13, 13, 13, 0.6);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.share:hover { border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 14px rgba(225, 6, 0, .35); }

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

.avatar {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(225, 6, 0, 0.18), 0 0 32px rgba(225, 6, 0, 0.45);
  background: #1a1a1a;
}

.name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 2.7rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.title {
  margin: 10px auto 0;
  max-width: 30em;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
}

.nw { white-space: nowrap; }

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.location .icon { color: var(--accent-text); }

.bio {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: .95rem;
  color: #d6d6d6;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  font-size: 21px;
  border: 1px solid var(--card-border);
  background: rgba(22, 22, 22, 0.7);
  transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.socials a:hover { color: #fff; border-color: var(--accent); box-shadow: 0 0 16px rgba(225, 6, 0, .5); transform: translateY(-2px); }

/* ---------- Seções ---------- */
.section { margin-top: 34px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(225, 6, 0, .7);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 6, 0, .45), transparent);
}

/* ---------- Botões de link ---------- */
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}
.link:hover {
  border-color: var(--accent);
  background: rgba(30, 10, 10, 0.92);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, .35), 0 6px 26px rgba(225, 6, 0, .28);
  transform: translateY(-2px);
}
.link:active { transform: translateY(0); }

.link-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.12);
  color: var(--accent-text);
  transition: background-color .2s, color .2s;
}
.link:hover .link-icon { background: var(--accent); color: #fff; }

.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.link-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.link-desc {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.4;
}

.link-arrow { font-size: 18px; color: #7a7a7a; transition: color .2s, transform .2s; }
.link:hover .link-arrow { color: var(--accent-text); transform: translate(2px, -2px); }

/* Destaque (Portfólio) */
.link--featured {
  border-color: rgba(225, 6, 0, .55);
  background: linear-gradient(135deg, rgba(139, 0, 0, .45), rgba(22, 22, 22, .92) 60%);
}
.link--featured .link-icon { background: var(--accent); color: #fff; }

/* Seção discreta (Em breve) */
.section--muted .section-title { font-size: .9rem; color: var(--muted); }
.link--muted {
  min-height: 52px;
  padding: 10px 16px;
  border-style: dashed;
  background: rgba(22, 22, 22, 0.5);
}
.link--muted .link-title { font-weight: 500; font-size: .9rem; color: var(--muted); }
.link--muted .link-icon { width: 34px; height: 34px; padding: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.footer p { margin: 4px 0; }
.tagline {
  font-family: var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Acessibilidade ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .link:hover, .socials a:hover { transform: none; }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
  .page {
    margin: 40px auto;
    padding: 56px 40px 36px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 13, 13, 0.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(139, 0, 0, .15);
    backdrop-filter: blur(6px);
  }
}
