/* --- Variáveis de Estilo e Cores (Fácil de Customizar) --- */
:root {
    --background-start: #1a2a6c;
    --background-mid: #b21f1f;
    --background-end: #fdbb2d;
    --card-background: rgba(255, 255, 255, 0.1);
    --card-hover-background: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --primary-font: 'Poppins', sans-serif;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.25);
}

/* --- Animação do Fundo Gradiente --- */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Estilos Gerais e Fundo --- */
body {
    font-family: var(--primary-font);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    background: linear-gradient(-45deg, var(--background-start), var(--background-mid), var(--background-end));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- Container Principal --- */
.container {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

/* --- Cabeçalho do Perfil --- */
.profile-header {
    margin-bottom: 40px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    object-fit: cover;
}

.profile-name {
    font-size: 2em;
    font-weight: 700;
    margin: 15px 0 5px;
    text-shadow: 2px 2px 5px var(--shadow-color);
}

.profile-description {
    font-size: 1em;
    font-weight: 400;
    opacity: 0.9;
}


/* --- Cartão de Link (O mais importante) --- */
.link-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    overflow: hidden; /* Garante que os cantos arredondados sejam respeitados */
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* --- Animação de entrada dos cartões --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação com delay para cada cartão (se desejar, ative no JS) */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
/* ...e assim por diante */

.main-link {
    display: block;
    padding: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-link:hover {
    background-color: var(--card-hover-background);
    transform: scale(1.03);
}

/* --- Campos Copiáveis --- */
.copyable-field {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

.copy-text {
    text-align: left;
}

.copy-btn {
    background-color: var(--text-color);
    color: var(--background-start);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 700;
    font-family: var(--primary-font);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0; /* Impede que o botão encolha */
    margin-left: 10px;
}

.copy-btn:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

/* --- Mensagem para quando não há links --- */
.no-links-message {
    background: var(--card-background);
    padding: 20px;
    border-radius: 15px;
}

/* --- Rodapé --- */
.footer {
    margin-top: 40px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* --- Responsividade para Telas Menores --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .profile-name {
        font-size: 1.5em;
    }

    .profile-description {
        font-size: 0.9em;
    }

    .copyable-field {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .copy-text {
        text-align: center;
    }
}