/* ============================================
   Link Hub - Frontend Styles
   A beautiful Linktree alternative
   ============================================ */

.link-hub-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--lh-bg, #0a0a0a);
    font-family: var(--lh-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    box-sizing: border-box;
    margin: 0;
}

.link-hub-wrapper *,
.link-hub-wrapper *::before,
.link-hub-wrapper *::after {
    box-sizing: border-box;
}

.link-hub-card {
    width: 100%;
    max-width: 420px;
    background: var(--lh-card-bg, #1a1a1a);
    border-radius: calc(var(--lh-radius, 12px) + 4px);
    padding: 40px 28px 28px;
    text-align: center;
    color: var(--lh-text, #ffffff);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.link-hub-avatar {
    margin: 0 auto 20px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--lh-accent, #e91e63);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.15);
}

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

.link-hub-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--lh-text, #ffffff);
    line-height: 1.3;
}

.link-hub-bio {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
    opacity: 0.75;
    color: var(--lh-text, #ffffff);
}

.link-hub-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-hub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--lh-link-bg, #2a2a2a);
    color: var(--lh-link-color, #ffffff);
    text-decoration: none;
    border-radius: var(--lh-radius, 12px);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-hub-link-bordered {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-hub-link:hover {
    background: var(--lh-accent, #e91e63);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.25);
    border-color: var(--lh-accent, #e91e63);
}

.link-hub-link:active {
    transform: translateY(0);
}

.link-hub-link-title {
    flex: 1;
    text-align: left;
}

.link-hub-link-arrow {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.link-hub-link:hover .link-hub-link-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.link-hub-link-arrow svg {
    display: block;
}

.link-hub-empty-message {
    text-align: center;
    opacity: 0.5;
    font-size: 15px;
    padding: 20px;
}

.link-hub-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.link-hub-footer p {
    font-size: 13px;
    opacity: 0.4;
    margin: 0;
    color: var(--lh-text, #ffffff);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
    .link-hub-wrapper {
        padding: 20px 16px;
        min-height: 100dvh;
    }

    .link-hub-card {
        padding: 28px 20px 20px;
    }

    .link-hub-avatar {
        width: 80px;
        height: 80px;
    }

    .link-hub-name {
        font-size: 21px;
    }

    .link-hub-link {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* ============================================
   Animations
   ============================================ */

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

.link-hub-link {
    animation: linkHubFadeIn 0.4s ease forwards;
    opacity: 0;
}

.link-hub-link:nth-child(1) { animation-delay: 0.05s; }
.link-hub-link:nth-child(2) { animation-delay: 0.10s; }
.link-hub-link:nth-child(3) { animation-delay: 0.15s; }
.link-hub-link:nth-child(4) { animation-delay: 0.20s; }
.link-hub-link:nth-child(5) { animation-delay: 0.25s; }
.link-hub-link:nth-child(6) { animation-delay: 0.30s; }
.link-hub-link:nth-child(7) { animation-delay: 0.35s; }
.link-hub-link:nth-child(8) { animation-delay: 0.40s; }
.link-hub-link:nth-child(9) { animation-delay: 0.45s; }
.link-hub-link:nth-child(10) { animation-delay: 0.50s; }
.link-hub-link:nth-child(11) { animation-delay: 0.55s; }
.link-hub-link:nth-child(12) { animation-delay: 0.60s; }
.link-hub-link:nth-child(13) { animation-delay: 0.65s; }
.link-hub-link:nth-child(14) { animation-delay: 0.70s; }
.link-hub-link:nth-child(15) { animation-delay: 0.75s; }
