:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --btn-bg: #0f172a; /* Azul bem escuro */
    --btn-border: #1e3a8a;
    --btn-hover: #1e40af;
    --accent-color: #3b82f6;
    --thumb-size: 45px; /* Tamanho das imagens dos links */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Glow radial sutil no topo */
    background-image: radial-gradient(circle at 50% 0%, #0f172a 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.linktree-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--btn-border), var(--accent-color));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.link-item {
    display: flex;
    align-items: center;
    /* Alinhamento flex para manter imagem à esquerda e texto centralizado */
    justify-content: flex-start; 
    position: relative;
    padding: 0.8rem; /* Reduzido o padding vertical para compensar a imagem */
    padding-left: 1rem;
    background-color: var(--btn-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--btn-border);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Nova classe para a imagem do link */
.link-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem; /* Espaço entre imagem e texto */
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Impede a imagem de achatar */
}

/* Centraliza o texto no espaço restante */
.link-item span {
    flex-grow: 1;
    text-align: center;
    margin-right: calc(var(--thumb-size) + 1rem); /* Compensa a imagem à esquerda para centralizar o texto perfeitamente */
}

.link-item:hover {
    background-color: var(--btn-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.5);
    border-color: var(--accent-color);
}

/* Efeito na imagem ao passar o mouse */
.link-item:hover .link-thumb {
    border-color: #ffffff;
    transform: rotate(5deg);
}

/* Destaque para link principal (ex: Painel) */
.link-item.highlight {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    border: none;
}

.link-item.highlight:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: auto;
    padding-bottom: 1rem;
}