/* ============================================================
   LinkTree Lumina — folha de estilo
   Branding: Lumina UI Kit v2 · Light (julho/2026)
   Não é preciso mexer aqui. Edite apenas config.js.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ── Rampa primária oficial ── */
  --primary-100: #A6E2FB;
  --primary-300: #33BEF4;
  --primary:     #0EA5E9;   /* ciano primário */
  --blue:        #0A84FF;
  --blue-deep:   #00489B;

  /* ── Superfícies ── */
  --bg:        #F8FCFF;
  --bg-tint:   #EFF8FE;
  --surface:   #FFFFFF;
  --border:    #E3EEF6;
  --border-2:  #CFE3EF;

  /* ── Texto ── */
  --text:      #0B1F2E;
  --text-2:    #39566B;
  --text-3:    #9DB4C4;

  /* ── Gradiente de ação (botão primário do UI Kit) ── */
  --grad: linear-gradient(100deg, var(--primary-300) 0%, var(--primary) 48%, var(--blue) 100%);

  /* ── Elevação: difusa, tingida de azul, nunca dura ── */
  --sh-card:       0 1px 2px rgba(11,31,46,0.04), 0 8px 24px rgba(11,31,46,0.06);
  --sh-card-hover: 0 2px 6px rgba(11,31,46,0.05), 0 16px 40px rgba(14,165,233,0.16);
  --sh-panel:      0 4px 12px rgba(11,31,46,0.05), 0 24px 64px rgba(11,31,46,0.09);
  --ring:          0 0 0 3px rgba(14,165,233,0.28);

  /* ── Geometria ── */
  --panel-max:    450px;
  --panel-radius: 24px;
  --card-radius:  16px;

  --t: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-2);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 2rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Hero radial claro ─── */
.bg-gradient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(72% 44% at 72% 0%,
      rgba(166,226,251,0.55)  0%,
      rgba(166,226,251,0.30) 32%,
      rgba(239,248,254,0.16) 58%,
      rgba(248,252,255,0)    82%),
    radial-gradient(64% 40% at 12% 6%,
      rgba(51,190,244,0.16)  0%,
      rgba(239,248,254,0.10) 46%,
      rgba(248,252,255,0)    76%),
    linear-gradient(180deg, #EFF8FE 0%, #F8FCFF 42%, #FFFFFF 100%);
}

/* ─── Painel principal ─── */
.glass-panel {
  width: 100%;
  max-width: var(--panel-max);
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--sh-panel);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Perfil / marca ─── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.5rem;
}

.profile-img {
  width: var(--avatar-size, 110px);
  height: var(--avatar-size, 110px);
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: var(--avatar-pad, 12px);
  background: var(--avatar-bg, #FFFFFF);
  box-shadow: 0 2px 6px rgba(11,31,46,0.05), 0 12px 32px rgba(14,165,233,0.14);
  margin-bottom: 1.25rem;
  transition: transform var(--t), box-shadow var(--t);
}
.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(11,31,46,0.06), 0 18px 44px rgba(14,165,233,0.24);
}

.profile-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.profile-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-2);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* ─── Redes sociais (topo) ─── */
.social-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.social-btn {
  display: flex;
  text-decoration: none;
  color: var(--text-2);
  flex: 1 1 0%;
  padding: 0.6rem 0.1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 12px;
  transition: transform var(--t), background var(--t);
}
.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(166,226,251,0.20);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: color var(--t), filter var(--t);
}
.social-btn:hover svg {
  color: var(--social-color, var(--primary));
  filter: drop-shadow(0 2px 8px var(--social-glow, rgba(14,165,233,0.45)));
}

.social-btn span {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-2);
  transition: color var(--t);
  text-wrap: balance;
}
.social-btn:hover span { color: var(--text); }

/* ─── Cards de link ─── */
.large-btn-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.glass-btn {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  transition: var(--t);
  box-shadow: var(--sh-card);
  overflow: hidden;
  position: relative;
}

/* Brilho que varre no hover */
.glass-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(166,226,251,0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
  pointer-events: none;
  z-index: 3;
}
.glass-btn:hover::after { left: 150%; }

.glass-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--primary-300);
}

.large-btn {
  flex-direction: column;
  text-align: center;
  padding: 1.15rem 1.2rem;
  gap: 0.35rem;
  justify-content: center;
}

.large-btn .btn-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
}

.large-btn .btn-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
  font-weight: 500;
  transition: color var(--t);
}
.glass-btn:hover .btn-subtitle { color: var(--primary); }

.btn-subtitle svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Card em destaque: gradiente de ação do UI Kit ─── */
.glass-btn.destaque {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(10,132,255,0.20), 0 14px 34px rgba(14,165,233,0.30);
}
.glass-btn.destaque .btn-title,
.glass-btn.destaque .btn-subtitle { color: #FFFFFF; }
.glass-btn.destaque .btn-subtitle { opacity: 0.86; }
.glass-btn.destaque:hover {
  box-shadow: 0 4px 10px rgba(10,132,255,0.24), 0 20px 46px rgba(14,165,233,0.40);
  border-color: transparent;
}
.glass-btn.destaque:hover .btn-subtitle { color: #FFFFFF; }
.glass-btn.destaque::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
}

/* ─── Card com imagem (preview) ─── */
.preview-btn {
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  gap: 0;
}

.btn-preview-img {
  width: 100%;
  height: var(--preview-h, 150px);
  background-size: cover;
  background-position: center center;
  background-color: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s;
  flex-shrink: 0;
}
.preview-btn:hover .btn-preview-img { transform: scale(1.05); }

.preview-btn .btn-content {
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}
.destaque.preview-btn .btn-preview-img { border-bottom-color: rgba(255,255,255,0.25); }

/* ─── Rodapé da página ─── */
.page-footer {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.25rem;
}
.page-footer a { color: var(--text-3); text-decoration: none; transition: color var(--t); }
.page-footer a:hover { color: var(--primary); }

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .glass-panel { padding: 2rem 1.25rem; border-radius: 20px; }
  .profile-img { width: calc(var(--avatar-size, 110px) * 0.82); height: calc(var(--avatar-size, 110px) * 0.82); }
  .profile-title { font-size: 1.45rem; }
  .social-btn span { font-size: 0.6rem; }
  .large-btn .btn-title { font-size: 0.95rem; }
  .large-btn .btn-subtitle { font-size: 0.78rem; }
}

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

.glass-btn:focus-visible,
.social-btn:focus-visible,
.page-footer a:focus-visible,
.profile-img:focus-visible {
  outline: 1px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--ring);
}
