/* Reset Básico */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container Principal com Margens Mobile */
.profile-container {
    width: 100%;
    max-width: 680px; /* Largura máxima estilo Linktree */
    margin: 0 auto;
    padding: 40px 20px; /* 20px nas laterais para mobile */
    flex: 1; /* Ocupa todo espaço disponível */
    display: flex;
    flex-direction: column;
}

/* --- HEADER (Hierarquia) --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 35px;
}

/* Foto */
.profile-img, .profile-img-fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c2);
    color: var(--c7);
    font-size: 2rem;
    font-weight: bold;
}

/* Nome e @ (Sem margem entre eles) */
.identity-group {
    margin-bottom: 12px;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px; /* Margem mínima */
}

.profile-username {
    font-size: 0.9rem;
    font-weight: 700; /* Negrito pedido */
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Bio */
.profile-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    color: var(--text-primary);
}

/* --- LISTA DE LINKS --- */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 40px; /* Espaço antes do footer */
}

.link-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px;
    border-radius: 12px; /* Bordas arredondadas modernas */
    display: flex;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-2px);
    background-color: var(--card-hover);
}

/* Destaque */
.link-card.highlighted {
    background: var(--highlight-bg);
    color: #fff; /* Texto branco no destaque */
    border: none;
    animation: pulse 2s infinite;
}
.link-card.highlighted .link-desc { color: rgba(255,255,255,0.9); }

/* Ícone do Link */
.link-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 12px;
}

/* Textos do Link */
.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
}

.link-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Seta */
.link-action {
    opacity: 0.5;
}

/* --- FOOTER (Sticky) --- */
.profile-footer {
    margin-top: auto; /* Empurra para o final da tela */
    text-align: center;
    padding-top: 20px;
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Animação de Destaque */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}


/* Estilo para os Títulos de Seção */
.section-header h3 {
    letter-spacing: 2px; /* Espaçamento entre letras para elegância */
    margin: 0;
    padding-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Linha sutil opcional */
    padding-bottom: 5px;
    display: inline-block; /* A linha fica só no tamanho do texto */
}


/* Modal de Compartilhamento Customizado */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background: #fff;
    width: 90%;
    max-width: 350px;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fundo Escuro (Overlay) */
.share-modal-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fundo escuro transparente */
    backdrop-filter: blur(8px); /* Efeito de desfoque no fundo */
    z-index: 9999; /* Fica acima de tudo */
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Quando estiver visível (adicionado via JS se quiser animação, ou apenas display flex) */
.share-modal-overlay[style*="display: flex"] {
    opacity: 1;
}

/* Caixa do Conteúdo */
.share-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 350px;
    border-radius: 24px; /* Bordas bem arredondadas */
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Botão de Fechar (X) */
.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

.share-modal-close:hover {
    background: #e0e0e0;
}

/* Animação de Entrada */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Ajuste para o Container do QR Code */
#qrcode-profile {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#qrcode-profile img {
    border-radius: 12px; /* Arredonda levemente o QR Code */
}
