/**
 * Link Hub — Linktree-style card. Standalone page (no site header/footer),
 * so we explicitly reset body/ul margins and box-sizing to avoid the theme
 * stylesheets (kit-global.css / style.css) shifting the layout.
 */
:root {
    --ec-linkhub-bg:        #f5f5f7;
    --ec-linkhub-card:      #ffffff;
    --ec-linkhub-border:    #ececef;
    --ec-linkhub-ink:       #1a1a1a;
    --ec-linkhub-ink-soft:  #6b7280;
    --ec-linkhub-radius:    28px;
    --ec-linkhub-shadow:    0 18px 60px rgba(15, 23, 42, 0.08);
    --ec-linkhub-btn-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

html, body.ec-linkhub-page {
    margin: 0;
    padding: 0;
    background: var(--ec-linkhub-bg);
    min-height: 100%;
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ec-linkhub-ink);
}

.ec-linkhub,
.ec-linkhub *,
.ec-linkhub *::before,
.ec-linkhub *::after {
    box-sizing: border-box;
}

.ec-linkhub {
    background: var(--ec-linkhub-bg);
    min-height: 100vh;
    padding: 40px 16px 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.ec-linkhub__card {
    background: var(--ec-linkhub-card);
    border-radius: var(--ec-linkhub-radius);
    box-shadow: var(--ec-linkhub-shadow);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--ec-linkhub-border);
}

/* Banner ---------------------------------------------------------------- */
.ec-linkhub__banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e7e6f5;
}

/* Circular avatar overlapping the banner -------------------------------- */
.ec-linkhub__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin: -55px auto 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-linkhub__avatar img {
    width: 84%;
    height: 84%;
    object-fit: contain;
}

/* Body ------------------------------------------------------------------- */
.ec-linkhub__body {
    padding: 22px 28px 36px;
    text-align: center;
}

.ec-linkhub__title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ec-linkhub-ink);
    letter-spacing: -0.01em;
}

.ec-linkhub__tagline {
    font-size: 0.92rem;
    color: var(--ec-linkhub-ink-soft);
    margin: 0 0 24px;
    line-height: 1.55;
}

/* Link list — explicit reset to neutralise theme `ul` rules ------------ */
.ec-linkhub__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ec-linkhub__item {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.ec-linkhub__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 56px;
    background: #ffffff;
    border: 1px solid var(--ec-linkhub-border);
    border-radius: 14px;
    color: var(--ec-linkhub-ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: var(--ec-linkhub-btn-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    opacity: 0;
    transform: translateY(8px);
    animation: ec-linkhub-rise 0.45s ease forwards;
    animation-delay: var(--ec-linkhub-delay, 0s);
}

.ec-linkhub__btn:hover,
.ec-linkhub__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
    color: var(--ec-linkhub-ink);
    text-decoration: none;
}

.ec-linkhub__btn-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--ec-linkhub-ink);
}

.ec-linkhub__btn-label {
    display: inline-block;
    text-align: center;
}

/* Variants — coloured tints matching the brand of each link ------------- */
.ec-linkhub__btn--website .ec-linkhub__btn-icon { background: rgba(0, 51, 153, 0.08); color: #0a2540; }

.ec-linkhub__btn--trial {
    background: linear-gradient(135deg, #00C48C 0%, #3D8B7A 100%);
    color: #fff;
    border-color: transparent;
}
.ec-linkhub__btn--trial:hover,
.ec-linkhub__btn--trial:focus-visible { color: #fff; }
.ec-linkhub__btn--trial .ec-linkhub__btn-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.ec-linkhub__btn--demo { background: #fffaf2; border-color: #f7e8d0; }
.ec-linkhub__btn--demo .ec-linkhub__btn-icon { background: rgba(234, 152, 38, 0.14); color: #c87a13; }

.ec-linkhub__btn--blog { background: #f4f7ff; border-color: #e1e8ff; }
.ec-linkhub__btn--blog .ec-linkhub__btn-icon { background: rgba(63, 81, 181, 0.12); color: #3f51b5; }

.ec-linkhub__btn--faq { background: #f3fbf6; border-color: #d8efe0; }
.ec-linkhub__btn--faq .ec-linkhub__btn-icon { background: rgba(46, 125, 50, 0.12); color: #2e7d32; }

.ec-linkhub__btn--partnership { background: #fff5f8; border-color: #f9d8e2; }
.ec-linkhub__btn--partnership .ec-linkhub__btn-icon { background: rgba(216, 27, 96, 0.12); color: #ad1457; }

.ec-linkhub__btn--whatsapp { background: #effaf1; border-color: #cce8d4; }
.ec-linkhub__btn--whatsapp .ec-linkhub__btn-icon { background: #25D366; color: #fff; }

.ec-linkhub__btn--instagram { background: #fff1f5; border-color: #f6d6e0; }
.ec-linkhub__btn--instagram .ec-linkhub__btn-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.ec-linkhub__btn--facebook { background: #eff5ff; border-color: #d3e2fb; }
.ec-linkhub__btn--facebook .ec-linkhub__btn-icon { background: #1877F2; color: #fff; }

.ec-linkhub__btn--login .ec-linkhub__btn-icon { background: rgba(15, 23, 42, 0.06); color: #0f172a; }

/* Animation ------------------------------------------------------------- */
@keyframes ec-linkhub-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ec-linkhub__btn {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Mobile tweaks --------------------------------------------------------- */
@media (max-width: 540px) {
    .ec-linkhub { padding: 24px 12px 40px; }
    .ec-linkhub__avatar { width: 92px; height: 92px; margin-top: -46px; border-width: 5px; }
    .ec-linkhub__body { padding: 18px 18px 28px; }
    .ec-linkhub__title { font-size: 1.4rem; }
    .ec-linkhub__btn { padding: 14px 52px; font-size: 0.95rem; }
    .ec-linkhub__btn-icon { width: 34px; height: 34px; left: 10px; }
}
