/* ============================================================
   Linktree — Wagner Danielli | Links Oficiais
   CSS escopado (prefixo lt-), mobile-first, tema escuro premium
   coerente com o portal (--wd-*). Sem dependências externas.
   Comportamento de aplicativo: a página ocupa 100% da viewport
   (100dvh) em qualquer tela — os cards crescem e distribuem o
   espaço vertical disponível (flex-grow), e todos os tamanhos
   são fluidos via clamp() com unidades de viewport. Sem sobras
   de espaço em nenhuma direção; se houver links demais para a
   tela, a página rola normalmente.
   ============================================================ */

.lt-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(60rem 32rem at 85% -10%, rgba(45, 212, 191, 0.14), transparent 60%),
        radial-gradient(52rem 30rem at -10% 22%, rgba(14, 165, 233, 0.16), transparent 60%),
        radial-gradient(46rem 30rem at 55% 115%, rgba(34, 211, 238, 0.10), transparent 60%),
        #020617;
    color: #f8fafc;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    overscroll-behavior: none;
}

/* ---------- Página: preenche a tela toda, conteúdo distribuído ---------- */

.lt-page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2.5vh, 1.75rem) clamp(0.625rem, 2.5vw, 1.25rem);
    display: flex;
    flex-direction: column;
}

/* ---------- Perfil (fluido com a altura da tela) ---------- */

.lt-profile {
    text-align: center;
    margin-bottom: clamp(0.5rem, 2vh, 1.25rem);
}

.lt-avatar {
    width: clamp(3rem, 10vh, 5.5rem);
    height: clamp(3rem, 10vh, 5.5rem);
    border-radius: 9999px;
    margin: 0 auto clamp(0.375rem, 1.2vh, 0.75rem);
    display: block;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 6px 18px rgba(2, 6, 23, 0.55);
}

.lt-name {
    margin: 0 0 clamp(0.0625rem, 0.4vh, 0.25rem);
    font-size: clamp(1.15rem, 3.2vh, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.lt-bio {
    margin: 0;
    color: #94a3b8;
    font-size: clamp(0.78rem, 2vh, 0.95rem);
}

.lt-intro {
    text-align: center;
    color: #cbd5e1;
    font-size: clamp(0.78rem, 2vh, 0.95rem);
    font-weight: 500;
    margin: 0 0 clamp(0.5rem, 2vh, 1.25rem);
}

/* ---------- Lista e cards: ocupam todo o espaço vertical restante ---------- */

.lt-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.lt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1.4vh, 0.85rem);
}

.lt-item {
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    min-height: 3.25rem;
}

.lt-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.6vh, 0.9rem);
    padding: clamp(0.45rem, 1.6vh, 0.9rem) clamp(0.65rem, 2vw, 1rem);
    border-radius: clamp(0.75rem, 2vh, 1.1rem);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(2, 6, 23, 0.45), 0 2px 4px -2px rgba(2, 6, 23, 0.45);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.lt-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 10px 18px -6px rgba(2, 6, 23, 0.6), 0 0 20px rgba(14, 165, 233, 0.14);
}

.lt-card:active {
    transform: translateY(-1px) scale(0.997);
}

.lt-card:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

.lt-card-media {
    flex-shrink: 0;
    width: clamp(2.5rem, 7.5vh, 3.25rem);
    height: clamp(2.5rem, 7.5vh, 3.25rem);
    border-radius: clamp(0.55rem, 1.5vh, 0.8rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1221;
    color: #38bdf8;
}

.lt-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lt-card-texts {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
    flex: 1 1 auto;
}

.lt-card-title {
    font-size: clamp(0.9rem, 2.4vh, 1.08rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-card-desc {
    font-size: clamp(0.74rem, 1.9vh, 0.86rem);
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-card-action {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.3rem, 0.8vh, 0.5rem);
    flex-shrink: 0;
    padding: clamp(0.3rem, 1vh, 0.5rem) clamp(0.6rem, 1.8vw, 0.9rem);
    border-radius: 9999px;
    font-size: clamp(0.7rem, 1.9vh, 0.8rem);
    font-weight: 600;
    color: #020617;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

.lt-ext {
    display: inline-block;
    vertical-align: -0.125em;
}

/* ---------- Rodapé: grudado na base da tela ---------- */

.lt-footer {
    margin-top: clamp(0.5rem, 2vh, 1.25rem);
    text-align: center;
    color: #64748b;
    font-size: clamp(0.68rem, 1.8vh, 0.8rem);
}

.lt-footer p {
    margin: 0;
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
    .lt-card {
        transition: none;
    }

    .lt-card:hover,
    .lt-card:active {
        transform: none;
    }
}
