/* ============================================================
   OCYÁ LINKTREE — Design System
   Paleta extraída de ocya.com.br
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --color-navy: #2c3279;
  --color-navy-dark: #1e2257;
  --color-navy-mid: #3d4499;
  --color-peach: #fbe4c5;
  --color-peach-dark: #f5c99a;
  --color-bg: #f5f5f5;
  --color-text: #2c3279;
  --color-muted: #7a80b8;
  --color-white: #ffffff;

  --radius-pill: 200px;
  --radius-card: 16px;

  --font-serif: 'Kumbh Sans', sans-serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(44, 50, 121, 0.08);
  --shadow-md: 0 6px 24px rgba(44, 50, 121, 0.14);
  --shadow-hover: 0 12px 32px rgba(44, 50, 121, 0.22);
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 40px;

  /* Subtle wave texture via CSS */
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(44, 50, 121, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(251, 228, 197, 0.18) 0%, transparent 60%);
}

/* ── Layout ─────────────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Avatar ─────────────────────────────────────────────── */
.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile {
  text-align: center;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.profile-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  color: var(--color-navy);
  margin-top: 0;
  letter-spacing: 0.02em;
}

/* ── Social Icons ───────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-navy);
  transition: opacity var(--transition), transform var(--transition);
}

.social-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.social-icons svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ── Links List ─────────────────────────────────────────── */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

/* ── Link Button ────────────────────────────────────────── */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 18px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    color var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Default: navy fill */
  background-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);

  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i, 0) * 0.07s + 0.25s) forwards;
}

.link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px) scale(1.012);
  box-shadow: var(--shadow-hover);
  background-color: var(--color-navy-mid);
  outline: none;
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-sm);
}



/* ── Footer ─────────────────────────────────────────────── */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-muted);
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.footer a {
  color: var(--color-navy);
  text-decoration: none;
  opacity: 0.6;
}

.footer a:hover {
  opacity: 1;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Loading state ──────────────────────────────────────── */
.links-loading {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.9rem;
  padding: 24px 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 400px) {
  body {
    padding: 36px 16px 32px;
  }

  .profile-name {
    font-size: 1.7rem;
  }

  .link-btn {
    font-size: 1rem;
    padding: 13px 18px;
  }
}