/**
 * global.css — Fran Vieira · Ateliê
 * Tokens, reset, animações e componentes compartilhados (linktree).
 * Importar em todas as páginas como primeiro stylesheet.
 */

/* ================================================================
   TOKENS — Design System
   ================================================================ */
:root {
  /* Cores principais */
  --rose:         #ec88c0;
  --rose-dark:    #d84a8a;
  --rose-light:   #f0a8d0;
  --rose-pale:    #fce8f5;

  /* Neutros quentes */
  --cream:        #FDF8F2;
  --warm-dark:    #2D1435;
  --warm-mid:     #5C3D2E;
  --text-body:    #3D2B1F;
  --text-muted:   #7A5C4A;

  /* Dourado */
  --gold:         #D4A853;
  --gold-light:   #F0D090;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);

  /* Sombras */
  --shadow-sm:    0 2px 8px  rgba(236,136,192,0.08);
  --shadow-md:    0 4px 16px rgba(236,136,192,0.12);
  --shadow-card:  0 2px 12px rgba(236,136,192,0.06);
  --shadow-hover: 0 8px 24px rgba(236,136,192,0.14);
  --shadow-cta:   0 8px 20px rgba(236,136,192,0.35);
  --shadow-cta-lg:0 12px 32px rgba(236,136,192,0.45);

  /* Tipografia */
  --font-serif: 'Playfair Display', serif;
  --font-sans:  'DM Sans', sans-serif;

  /* Bordas */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-pill: 50px;

  /* Transições */
  --transition:        all 0.22s ease;
  --transition-slow:   all 0.35s ease;
  --transition-bounce: all 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ================================================================
   ANIMAÇÕES COMPARTILHADAS
   ================================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  to { transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 20px rgba(236,136,192,0.35); }
  50%       { box-shadow: 0 8px 32px rgba(236,136,192,0.65), 0 0 0 8px rgba(236,136,192,0.12); }
}
@keyframes pulse-glow-dark {
  0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
  50%       { box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 8px rgba(255,255,255,0.15); }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   FUNDO DECORATIVO
   ================================================================ */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 50% at 50% -10%, rgba(236,136,192,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 100%, rgba(212,168,83,0.10) 0%, transparent 60%),
    var(--cream);
}
.bg-dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(236,136,192,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ================================================================
   LINKTREE — Componentes compartilhados
   ================================================================ */

/* Layout */
body {
  font-family: var(--font-sans);
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  background: var(--cream);
  overflow-x: hidden;
  padding-bottom: 48px;
}

.wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px;
  padding: 48px 24px 0;
  display: flex; flex-direction: column; align-items: center;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
  animation: fadeDown 0.6s ease both;
}
.avatar-ring {
  width: 96px; height: 96px; border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  box-shadow: var(--shadow-cta);
}
.avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid var(--cream); display: block;
}
.avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--rose-pale); border: 3px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--rose);
}
.avatar-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 28px; height: 28px;
  background: var(--gold); border-radius: 50%; border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: white; box-shadow: 0 2px 8px rgba(212,168,83,0.4);
}

/* Perfil */
.profile-name {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900;
  color: var(--warm-dark); text-align: center; margin-bottom: 4px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.profile-role {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose); text-align: center; margin-bottom: 8px;
  animation: fadeUp 0.6s 0.15s ease both;
}
.profile-bio {
  font-size: 13px; color: var(--text-muted); text-align: center;
  line-height: 1.6; margin-bottom: 28px; max-width: 280px; font-style: italic;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* Social strip */
.social-strip {
  display: flex; gap: 10px; margin-bottom: 32px;
  animation: fadeUp 0.6s 0.25s ease both;
}
.social-btn {
  height: 38px; padding: 0 14px; border-radius: var(--radius-pill);
  background: white; border: 1px solid rgba(236,136,192,0.15);
  display: flex; align-items: center; gap: 7px;
  color: var(--rose); text-decoration: none;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.social-btn:hover { background: var(--rose-pale); transform: translateY(-2px); }

/* Divider */
.divider {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; animation: fadeUp 0.6s 0.3s ease both;
}
.divider-line { flex: 1; height: 1px; background: rgba(236,136,192,0.15); }
.divider-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Link Cards */
.links { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.link-card {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1px solid rgba(236,136,192,0.1);
  border-radius: var(--radius-md); padding: 16px 18px;
  text-decoration: none; color: var(--text-body);
  box-shadow: var(--shadow-card); transition: var(--transition);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}
.link-card:nth-child(1) { animation-delay: 0.35s; }
.link-card:nth-child(2) { animation-delay: 0.45s; }
.link-card:nth-child(3) { animation-delay: 0.55s; }
.link-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(236,136,192,0) 0%, rgba(236,136,192,0.04) 100%);
  opacity: 0; transition: opacity 0.2s;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(236,136,192,0.25);
}
.link-card:hover::before { opacity: 1; }
.link-card:active { transform: scale(0.98); }

/* Featured */
.link-card.featured {
  background: linear-gradient(135deg, #4A8FD4 0%, #1E3D6B 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(30,61,107,0.35);
}
.link-card.featured::before { display: none; }
.link-card.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,61,107,0.45);
}

/* Ícone */
.link-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--rose); background: var(--rose-pale);
  transition: background 0.2s;
}
.link-card.featured .link-icon { background: rgba(255,255,255,0.2); color: white; }

/* Texto */
.link-text { flex: 1; }
.link-label { font-weight: 600; font-size: 15px; color: var(--warm-dark); margin-bottom: 2px; line-height: 1.3; }
.link-card.featured .link-label { color: white; }
.link-sub { font-size: 12px; color: var(--text-muted); }
.link-card.featured .link-sub { color: rgba(255,255,255,0.85); }

/* Badge e seta */
.link-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold); color: white; padding: 3px 8px;
  border-radius: var(--radius-pill); flex-shrink: 0;
}
.link-arrow { color: rgba(236,136,192,0.4); flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
.link-card:hover .link-arrow { transform: translateX(3px); color: var(--rose); }
.link-card.featured .link-arrow,
.link-card.featured:hover .link-arrow { color: rgba(255,255,255,0.7); }

/* Rodapé */
.page-footer {
  margin-top: 36px; text-align: center;
  animation: fadeUp 0.6s 0.7s ease both; opacity: 0;
}
.page-footer-logo {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; color: var(--warm-mid); margin-bottom: 6px;
}
.page-footer-copy { font-size: 10px; color: var(--text-muted); opacity: 0.6; }
