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

:root {
    --bg: #ece1d3;
    --accent: #e8998d;
    --accent-soft: #f4b8ad;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-hover: rgba(255, 255, 255, 0.26);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

/* Fundo com imagem do usuário + escurecimento + blur sutil */
.bg-blur {
    position: fixed;
    inset: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.75);
    transform: scale(1.2);
    z-index: -3;
}

.bg-photo {
    position: fixed;
    inset: 0;
    background-image: var(--bg-image, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.92);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,20,15,0.1) 0%, rgba(30,20,15,0.4) 75%, rgba(30,20,15,0.55) 100%);
    z-index: -1;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Avatar com anel animado */
.avatar-wrap {
    position: relative;
    width: 128px;
    height: 128px;
    margin-bottom: 20px;
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-soft), transparent, var(--accent));
    animation: spin 6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.avatar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg);
    background: #2a231e center/cover no-repeat;
}

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

.name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0 0 4px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.bio {
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 0 32px;
    max-width: 320px;
    line-height: 1.5;
}

/* Botões de link em vidro */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

.link-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}

.link-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.link-title {
    flex: 1;
    text-align: center;
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer a {
    color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
    .avatar-ring { animation: none; }
}
