/* Creator profile at /@handle.
   Rails, tiles and the signup gate all come from vault-rail.css; everything
   here is the header that sits above them. Same palette as the vault so the
   page reads as one surface with /discover. */

.profile-page {
    min-height: 100vh;
    padding-bottom: 80px;
    background: #0d0d0f;
    color: #f4f4f5;
}

.profile-page .vault-rail { margin-top: 34px; }

/* Clip titles on a profile are secondary to the face at the top of the page,
   so they sit tighter than they do on the landing rail. */
.profile-page .vault-tile--clip .vault-tile__meta { padding-top: 8px; }
.profile-page .vault-tile--clip .vault-tile__title { font-size: 13px; }

/* --- Hero ---------------------------------------------------------------- */

.profile-hero {
    position: relative;
    padding: 34px 0 38px;
    overflow: hidden;
}

.profile-hero__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Matches the landing hero deliberately: same clip can head either surface,
   and it should not read as two different treatments. */
.profile-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.98) brightness(0.78);
}

.profile-hero__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(13, 13, 15, 0.06) 0%, rgba(13, 13, 15, 0.58) 72%),
        linear-gradient(180deg, rgba(13, 13, 15, 0.22) 0%, #0d0d0f 97%);
}

.profile-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-hero__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #17171a;
    border: 2px solid rgba(255, 255, 255, 0.16);
}

.profile-hero__name {
    margin: 14px 0 0;
    font-size: 30px;
    line-height: 1.15;
    color: #fff;
}

.profile-hero__actions { margin-top: 20px; }

.profile-share {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-share:hover {
    border-color: #db2f49;
    background: rgba(219, 47, 73, 0.12);
}

/* --- Badges -------------------------------------------------------------- */

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.profile-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(244, 244, 245, 0.86);
}

/* --- Creator-authored block (only rendered once approved) ---------------- */

.profile-meta {
    max-width: 620px;
    margin-top: 18px;
}

.profile-meta__tagline {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.profile-meta__bio {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(244, 244, 245, 0.76);
    white-space: pre-line;
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.profile-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(244, 244, 245, 0.9);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.profile-social:hover {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

/* --- Stats --------------------------------------------------------------- */

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 0;
}

.profile-stat {
    min-width: 96px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-stat dt {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(244, 244, 245, 0.54);
}

.profile-stat dd {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 600px) {
    .profile-hero { padding-top: 22px; }
    .profile-hero__name { font-size: 24px; }
    .profile-stat { min-width: 82px; padding: 10px 14px; }
    .profile-stat dd { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-share { transition: none; }
    .profile-social { transition: none; }
}
