/* ===========================================
   pagePartials/header.css - Profile Header
   Classic + Banner variants
   =========================================== */

.page-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.page-profile-photo-container {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    border: none;
}

.page-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Text info (shared by both formats) ---- */
.page-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.page-profile-name {
    font-size: 23px;
    font-weight: 700;
    color: var(--page-text-primary);
    margin: 0;
    line-height: 1.3;
}

.page-profile-bio {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--page-text-muted);
    line-height: 1.5;
    margin-top: 8px;
    text-align: center;
    max-width: 420px;
    word-wrap: break-word;
}

/* ============================================
   Classic: centered photo above name
   =========================================== */

.page-profile-photo-wrap--centered {
    padding-top: 36px;
    display: flex;
    justify-content: center;
}

.page-profile-photo-wrap--centered .page-profile-photo-container {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/* ===========================================
   Banner: cover image + overlapping photo
   =========================================== */

.page-banner-wrap {
    overflow: hidden;
    position: relative;
    margin: -24px -16px 0;
    width: calc(100% + 32px);
    border-radius: 0;
}

.page-banner-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

.page-banner-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, #e0e7ef 0%, #c9d6e3 100%);
}

.page-profile-photo-wrap--banner {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.page-profile-photo-wrap--banner .page-profile-photo-container {
    width: 96px;
    height: 96px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Space between overlapping photo and name */
.page-profile-photo-wrap--banner + .page-profile-info {
    margin-top: 12px;
}

/* ===========================================
   Desktop (768px+)
   =========================================== */

@media screen and (min-width: 680px) {
    .page-banner-wrap {
        margin: 0;
        width: 100%;
        border-radius: var(--page-radius, 12px);
    }

    .page-banner-img,
    .page-banner-placeholder {
        border-radius: var(--page-radius, 12px);
    }
}

@media screen and (min-width: 768px) {
    .page-profile-photo-wrap--centered {
        padding-top: 44px;
    }

    .page-profile-photo-wrap--centered .page-profile-photo-container {
        width: 116px;
        height: 116px;
        margin-bottom: 22px;
    }

    .page-profile-name {
        font-size: 26px;
    }

    .page-profile-bio {
        font-size: 15.5px;
        margin-top: 9px;
    }

    .page-banner-wrap {
        margin-top: 24px;
    }

    .page-profile-photo-wrap--banner .page-profile-photo-container {
        width: 106px;
        height: 106px;
    }

    .page-profile-photo-wrap--banner {
        margin-top: -53px;
    }
}
