/* ============================================
   LINK PAGE - Emanuela Silva
   Estilo Linktree Premium Dark/Gold
   ============================================ */

:root {
    --link-brown: #966741;
    --link-brown-dark: #82502E;
    --link-brown-light: #b07a52;
    --link-cream: #f5e6d3;
    --link-cream-soft: #efe0cc;
    --link-dark-card: rgba(130, 80, 46, 0.35);
    --link-dark-card-border: rgba(245, 230, 211, 0.25);
    --link-white: #ffffff;
    --link-gray: #d4c4b0;
    --link-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* ---- Scrollbar Moderna ---- */
body.link-page::-webkit-scrollbar {
    width: 6px;
}

body.link-page::-webkit-scrollbar-track {
    background: transparent;
}

body.link-page::-webkit-scrollbar-thumb {
    background: rgba(245, 230, 211, 0.35);
    border-radius: 10px;
}

body.link-page::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 230, 211, 0.6);
}

/* Firefox */
body.link-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 230, 211, 0.35) transparent;
}

body.link-page {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #966741;
    background-attachment: fixed;
    color: var(--link-white);
    min-height: 100vh;
    display: block;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ---- Partículas Canvas ---- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Container Principal ---- */
.link-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgb(130, 80, 46);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

/* ---- Foto de Perfil ---- */
.link-avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.link-avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(
        var(--link-cream),
        var(--link-brown-light),
        var(--link-cream-soft),
        var(--link-cream),
        var(--link-brown-light),
        var(--link-cream)
    );
    animation: rotateGlow 4s linear infinite;
    filter: blur(2px);
}

.link-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.25) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 0;
}

.link-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--link-brown-dark);
    z-index: 1;
}

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

/* ---- Info do Perfil ---- */
.link-profile-info {
    text-align: center;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

.link-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--link-white);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.link-profile-handle {
    font-size: 0.95rem;
    color: var(--link-cream);
    font-weight: 500;
    margin-bottom: 8px;
}

.link-profile-bio {
    font-size: 0.85rem;
    color: var(--link-gray);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Links ---- */
.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.link-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease forwards;
}

.link-item:nth-child(1) { animation-delay: 0.3s; }
.link-item:nth-child(2) { animation-delay: 0.45s; }
.link-item:nth-child(3) { animation-delay: 0.6s; }
.link-item:nth-child(4) { animation-delay: 0.75s; }
.link-item:nth-child(5) { animation-delay: 0.9s; }
.link-item:nth-child(6) { animation-delay: 1.05s; }

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--link-dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--link-dark-card-border);
    text-decoration: none;
    color: var(--link-white);
    position: relative;
    overflow: hidden;
    transition: all var(--link-transition);
    cursor: pointer;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 230, 211, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    background: rgba(245, 230, 211, 0.12);
    border-color: rgba(245, 230, 211, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(130, 80, 46, 0.25);
}

.link-card:active {
    transform: translateY(-1px);
}

.link-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: rgba(245, 230, 211, 0.12);
    color: var(--link-cream);
    transition: all var(--link-transition);
}

.link-card:hover .link-card-icon {
    background: rgba(245, 230, 211, 0.22);
    transform: scale(1.08);
}

.link-card-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.link-card-arrow {
    font-size: 0.8rem;
    color: var(--link-gray);
    transition: all var(--link-transition);
}

.link-card:hover .link-card-arrow {
    color: var(--link-cream);
    transform: translateX(4px);
}

/* Ripple Effect */
.link-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 230, 211, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ---- Redes Sociais ---- */
.link-social {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 1.1s forwards;
}

.link-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--link-dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--link-dark-card-border);
    color: var(--link-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--link-transition);
}

.link-social-btn:hover {
    background: rgba(245, 230, 211, 0.18);
    border-color: var(--link-cream);
    color: var(--link-cream);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(130, 80, 46, 0.25);
}

/* ---- Footer ---- */
.link-footer {
    text-align: center;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 1.3s forwards;
}

.link-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.link-footer a {
    color: rgba(245, 230, 211, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.link-footer a:hover {
    color: var(--link-cream);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse sutil no glow */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; filter: blur(3px); }
    50% { opacity: 1; filter: blur(5px); }
}

.link-avatar-glow {
    animation: rotateGlow 4s linear infinite, pulseGlow 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .link-container {
        padding: 40px 16px 30px;
    }

    .link-avatar {
        width: 105px;
        height: 105px;
    }

    .link-profile-name {
        font-size: 1.25rem;
    }

    .link-card {
        padding: 14px 16px;
    }

    .link-card-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .link-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .link-container {
        padding: 30px 14px 24px;
    }

    .link-avatar {
        width: 95px;
        height: 95px;
    }

    .link-profile-name {
        font-size: 1.15rem;
    }

    .link-profile-bio {
        font-size: 0.8rem;
    }

    .link-list {
        gap: 12px;
    }

    .link-card {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .link-card-text {
        font-size: 0.8rem;
    }

    .link-social-btn {
        width: 44px;
        height: 44px;
    }
}
