/* Public profile page — shared styles used by j2.public_profile.html */

#title {
    width: 600px;
}

#title.card {
    margin-top: 4px !important;
}

/* Anonymous/owner landing header with logo and Log In / Sign Up buttons */
.public-profile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 0;
}

.public-profile-header__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-profile-header__inner > a:first-child {
    margin-left: -12px;
}

/* Body offsets — reset padding from the base flat template so fixed header
   and hero card line up correctly. Scoped via this CSS file being included
   only on public profile page. */
body {
    padding-top: 92px !important;
    margin: 0 !important;
    background: #eef2f6;
}

main.main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#top-container.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Creator hero — full-bleed portrait with bottom overlay (name, location, connect) */
.public-creator-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    overflow: hidden;
}

.public-creator-hero__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 210px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.public-creator-hero__info {
    color: #fff;
    min-width: 0;
}

.public-creator-hero__name {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.public-creator-hero__location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.public-creator-hero__connect {
    margin-left: 12px;
    flex-shrink: 0;
}

/* Linktree-style button for generic links on public profile */
.public-profile-link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    color: #000 !important;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.public-profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.06);
}

.public-profile-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
}
