/* ==========================================================================
   FILE: page-profile.css
   ROLE: page
   Profile pages: hero, tabs, stat rows and favourite cards.
   Loaded on: /u/<name>, /user/<name>, /profile, /favorites, /editprofile.
   ========================================================================== */

/* Profile pages */

/* profile content container (no bootstrap tab classes needed) */
.profile-content {
    margin: 0;
    padding: 0;
}.profile-pane[hidden] {
    display: none !important;
}/* ==========================================================================
   Site footer: match the solid elevated header — no translucent gradient
   ========================================================================== */
.hp-site-footer {
    background: rgb(var(--hp-color-surface-2-rgb)) !important;
    border-top: 1px solid rgba(var(--hp-color-white-rgb), 0.07) !important;
    box-shadow: 0 -10px 28px rgba(var(--hp-color-black-rgb), 0.45) !important;
}.hp-site-footer__logo img {
    opacity: 0.9;
}/* profile hero (moved from the album block) */
/* ==========================================================================
   PROFILE HERO (/u/) — cover banner + overlapping avatar
   ========================================================================== */
.fd-profile-hero {
    position: relative;
    margin: 8px 0 18px;
    border: 1px solid var(--hp-color-border);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg,
            rgba(var(--hp-color-white-rgb), 0.055) 0%,
            rgba(var(--hp-color-white-rgb), 0.015) 100%);
    box-shadow: 0 18px 48px rgba(var(--hp-color-black-rgb), 0.38);
}/* one accent hairline instead of the old cover band */
.fd-profile-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(var(--hp-color-accent-rgb), 0) 0%,
            rgba(var(--hp-color-accent-rgb), 0.9) 26%,
            rgba(var(--hp-color-accent-soft-rgb), 0.6) 60%,
            rgba(var(--hp-color-accent-rgb), 0) 100%);
    pointer-events: none;
}.fd-profile-hero__body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}.fd-profile-hero__avatar {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid rgba(var(--hp-color-white-rgb), 0.10);
    object-fit: cover;
    background: var(--hp-color-surface);
    box-shadow: 0 12px 30px rgba(var(--hp-color-black-rgb), 0.45);
}.fd-profile-hero__info {
    flex: 1 1 auto;
    min-width: 0;
}.fd-profile-hero__name {
    margin: 0;
    color: var(--hp-color-white);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}.fd-profile-hero__verified,
.hp-verified-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--hp-color-verified);
}.fd-profile-hero__verified .hp-icon {
    width: 15px !important;
    height: 15px !important;
}.fd-profile-hero__handle {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-color-text-muted);
    font-size: 13px;
}.fd-profile-hero__bio {
    margin: 10px 0 0;
    max-width: 560px;
    color: var(--hp-color-text-soft);
    font-size: 13.5px;
    line-height: 1.55;
}.fd-profile-hero__right {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0;
}.fd-profile-hero__stats {
    display: flex;
    align-items: center;
    gap: 18px;
}.fd-profile-hero__stat {
    flex: 0 0 auto;
    min-width: 78px;
    text-align: center;
}.fd-profile-hero__stat + .fd-profile-hero__stat {
    border-left: 1px solid rgba(var(--hp-color-white-rgb), 0.14);
}.fd-profile-hero__stat b {
    display: block;
    color: var(--hp-color-white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}.fd-profile-hero__stat span {
    display: block;
    margin-top: 4px;
    color: var(--hp-color-text-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}.fd-profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    padding-right: 12px;
}.fd-profile-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid rgba(var(--hp-color-white-rgb), 0.10);
    border-radius: 10px;
    background: rgba(var(--hp-color-white-rgb), 0.04);
    color: var(--hp-color-text-soft);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}.fd-profile-hero__btn .hp-icon {
    width: 15px !important;
    height: 15px !important;
}.fd-profile-hero__btn:hover {
    border-color: rgba(var(--hp-color-accent-rgb), 0.45);
    background: rgba(var(--hp-color-accent-rgb), 0.14);
    color: var(--hp-color-white);
}.fd-profile-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 24px 18px;
    border-top: 1px solid rgba(var(--hp-color-white-rgb), 0.07);
}.fd-profile-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--hp-color-accent-soft);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}.fd-profile-hero__link .hp-icon {
    width: 14px !important;
    height: 14px !important;
}.fd-profile-hero__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(var(--hp-color-white-rgb), 0.10);
    background: rgba(var(--hp-color-white-rgb), 0.05);
}.fd-profile-hero__chip:hover {
    border-color: rgba(var(--hp-color-accent-rgb), 0.45);
    background: rgba(var(--hp-color-accent-rgb), 0.16);
}@media screen and (max-width: 767px) {.fd-profile-hero {
        border-radius: 18px;
    }.fd-profile-hero__body {
        flex-wrap: wrap;
        gap: 12px 14px;
        padding: 18px 16px;
    }.fd-profile-hero__avatar {
        width: 84px;
        height: 84px;
        border-width: 2px;
    }.fd-profile-hero__info {
        flex: 1 1 140px;
    }.fd-profile-hero__name {
        font-size: 19px;
    }.fd-profile-hero__bio {
        font-size: 13px;
    }.fd-profile-hero__right {
        flex: 1 1 100%;
        align-items: stretch;
        gap: 18px;
        padding-top: 8px;
    }.fd-profile-hero__stats {
        gap: 0;
        justify-content: space-between;
    }.fd-profile-hero__stat {
        flex: 1 1 0;
        min-width: 0;
    }.fd-profile-hero__stat span {
        font-size: 9px;
        letter-spacing: 0.08em;
    }.fd-profile-hero__actions {
        justify-content: center;
        padding-right: 0;
    }.fd-profile-hero__meta {
        padding: 12px 16px 16px;
    }}/* /u/ hero avatar overrides */
/* /u/ hero avatar uses the tu-hero avatar component */
.fd-profile-hero__avatar.tu-hero__avatar {
    flex: 0 0 auto;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(var(--hp-color-white-rgb), 0.14);
    box-shadow: 0 0 0 3px rgba(var(--hp-color-accent-rgb), 0.55), 0 18px 40px rgba(var(--hp-color-black-rgb), 0.5);
    background: var(--hp-color-surface);
}@media screen and (max-width: 767px) {.fd-profile-hero__avatar.tu-hero__avatar {
        width: 112px;
        height: 112px;
    }}
