/* ==========================================================================
   MyLinks v2.0 - Stylesheet Standalone
   Independente dos estilos do tema
   ========================================================================== */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--lt-bg, #F8F1E0);
    color: #3D2314;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient background */
body.bg-gradient {
    background-attachment: fixed;
}

/* ===== Container ===== */
.mylinks-wrapper {
    width: 100%;
    max-width: 680px;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* ===== Perfil ===== */
.mylinks-profile {
    text-align: center;
    margin-bottom: 32px;
}

.mylinks-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lt-btn, #994B28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Avatar animado */
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(153, 75, 40, 0.4), 0 2px 8px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 0 12px rgba(153, 75, 40, 0), 0 2px 8px rgba(0,0,0,0.1); }
}

.mylinks-avatar--animated {
    animation: avatarPulse 2s ease-in-out infinite;
}

.mylinks-nome {
    color: var(--lt-btn, #994B28);
    font-size: 22px;
    font-weight: 400;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

.mylinks-subtitulo {
    color: #5a4a40;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
    max-width: 400px;
}

/* ===== Items Container ===== */
.mylinks-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ===== Link Buttons ===== */
.mylinks-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    background-color: var(--lt-btn, #994B28);
    color: var(--lt-btn-text, #FFFFFF);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    position: relative;
    border: 2px solid transparent;
}

.mylinks-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.mylinks-link:active {
    transform: scale(0.98);
}

.mylinks-link i {
    margin-right: 10px;
    font-size: 18px;
}

/* ===== Button Style: Outline ===== */
.mylinks-link--outline {
    background-color: transparent;
    border: 2px solid var(--lt-btn, #994B28);
    color: var(--lt-btn, #994B28);
}

.mylinks-link--outline:hover {
    background-color: var(--lt-btn, #994B28);
    color: var(--lt-btn-text, #FFFFFF);
}

/* ===== Button Style: Shadow ===== */
.mylinks-link--shadow {
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--lt-btn, #994B28);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mylinks-link--shadow:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== Button Radius ===== */
.mylinks-link--rounded { border-radius: 8px; }
.mylinks-link--pill    { border-radius: 50px; }
.mylinks-link--square  { border-radius: 0; }

/* ===== Highlighted Link ===== */
@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--lt-btn, #994B28), 0 0 15px rgba(153, 75, 40, 0.2); }
    50% { box-shadow: 0 0 0 4px var(--lt-btn, #994B28), 0 0 25px rgba(153, 75, 40, 0.45); }
}

.mylinks-link--highlighted {
    border: 2px solid var(--lt-btn-text, #FFFFFF);
    box-shadow: 0 0 0 2px var(--lt-btn, #994B28), 0 0 15px rgba(153, 75, 40, 0.2);
}

/* ===== Thumbnail ===== */
.mylinks-link.has-thumb {
    justify-content: flex-start;
    padding-left: 8px;
}

.mylinks-link-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.mylinks-link-label {
    flex: 1;
    text-align: center;
    padding-right: 44px; /* Compensar a thumbnail para centralizar o texto */
}

.mylinks-link:not(.has-thumb) .mylinks-link-label {
    padding-right: 0;
}

/* ===== Section Headings ===== */
.mylinks-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lt-btn, #994B28);
    margin: 20px 0 4px;
    width: 100%;
    text-align: center;
    opacity: 0.8;
}

/* ===== Dividers ===== */
.mylinks-divider {
    width: 50%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 8px 0;
}

/* ===== Redes Sociais ===== */
.mylinks-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    padding: 0 20px;
}

.mylinks-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-btn, #994B28);
    border: 2px solid var(--lt-btn, #994B28);
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mylinks-social-link:hover {
    background-color: var(--lt-btn, #994B28);
    color: var(--lt-btn-text, #FFFFFF);
    transform: scale(1.1);
}

/* ===== Rodape ===== */
.mylinks-footer {
    margin-top: auto;
    padding: 30px 20px 20px;
    text-align: center;
}

.mylinks-footer p {
    font-size: 11px;
    color: #9a8e86;
    letter-spacing: 0.5px;
}

.mylinks-footer a {
    color: #9a8e86;
    text-decoration: none;
}

.mylinks-footer a:hover {
    color: var(--lt-btn, #994B28);
}

/* ===== Responsivo ===== */
@media (min-width: 768px) {
    .mylinks-wrapper {
        padding: 60px 20px 20px;
    }

    .mylinks-avatar {
        width: 110px;
        height: 110px;
    }

    .mylinks-nome {
        font-size: 26px;
    }

    .mylinks-subtitulo {
        font-size: 15px;
    }

    .mylinks-link {
        padding: 16px 28px;
        font-size: 17px;
    }

    .mylinks-link.has-thumb {
        padding-left: 10px;
    }

    .mylinks-link-thumb {
        width: 48px;
        height: 48px;
    }

    .mylinks-link-label {
        padding-right: 48px;
    }
}

/* ===== Animacoes de Entrada ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mylinks-profile {
    animation: fadeInUp 0.5s ease forwards;
}

.mylinks-items > *:not(.mylinks-link--highlighted) {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

/* Highlighted: fadeIn + pulse contínuo (ambas animações) */
.mylinks-items > .mylinks-link--highlighted {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards, highlightPulse 2s ease-in-out 0.5s infinite;
}

/* Delays de entrada - para items normais */
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(1)  { animation-delay: 0.1s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(2)  { animation-delay: 0.15s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(3)  { animation-delay: 0.2s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(4)  { animation-delay: 0.25s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(5)  { animation-delay: 0.3s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(6)  { animation-delay: 0.35s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(7)  { animation-delay: 0.4s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(8)  { animation-delay: 0.45s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(9)  { animation-delay: 0.5s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(10) { animation-delay: 0.55s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(11) { animation-delay: 0.6s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(12) { animation-delay: 0.65s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(13) { animation-delay: 0.7s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(14) { animation-delay: 0.75s; }
.mylinks-items > *:not(.mylinks-link--highlighted):nth-child(15) { animation-delay: 0.8s; }

/* Delays de entrada - para highlighted (fadeIn + pulse, precisa de 2 delays) */
.mylinks-items > .mylinks-link--highlighted:nth-child(1)  { animation-delay: 0.1s, 0.6s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(2)  { animation-delay: 0.15s, 0.65s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(3)  { animation-delay: 0.2s, 0.7s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(4)  { animation-delay: 0.25s, 0.75s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(5)  { animation-delay: 0.3s, 0.8s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(6)  { animation-delay: 0.35s, 0.85s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(7)  { animation-delay: 0.4s, 0.9s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(8)  { animation-delay: 0.45s, 0.95s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(9)  { animation-delay: 0.5s, 1.0s; }
.mylinks-items > .mylinks-link--highlighted:nth-child(10) { animation-delay: 0.55s, 1.05s; }

.mylinks-social {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.6s;
}
