/* ==========================================================================
   fb-profile.css — Facebook-parity dark profile (2026-09-24, per Fabian).
   Mobile-first FB dark theme. Loaded only on the profile page with ?v=.
   Does NOT touch tiktok-social.css or the minified bundles.
   ========================================================================== */

.fbp-wrap {
    background: #18191a;
    color: #e4e6eb;
    max-width: 680px;
    margin: 0 auto;
}

/* --- Cover -------------------------------------------------------------- */
.fbp-cover {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #242526;
}
.fbp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fbp-cover-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4e6eb;
    border: 0;
}
.fbp-cover-edit:hover { color: #fff; background: rgba(0, 0, 0, 0.75); }
.fbp-cover-edit ion-icon { font-size: 20px; }

/* --- Avatar (keeps .profile-avatar-wrap story-ring hooks) --------------- */
.fbp-avatar-row {
    display: flex;
    justify-content: center;
    margin-top: -76px;
    position: relative;
    z-index: 2;
}
.fbp-avatar-wrap {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 4px solid #242526;
    background: #242526;
    overflow: visible;
}
.fbp-avatar-wrap img.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.fbp-avatar-edit {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a3b3c;
    border: 2px solid #242526;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4e6eb;
}
.fbp-avatar-edit ion-icon { font-size: 18px; }

/* --- Name / counts / bio ------------------------------------------------- */
.fbp-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0 16px;
}
.fbp-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fbp-name-row .verified-badge { flex-shrink: 0; }
.fbp-counts {
    text-align: center;
    color: #b0b3b8;
    font-size: 15px;
    margin-top: 6px;
    padding: 0 16px;
}
.fbp-counts b { color: #e4e6eb; font-weight: 600; }
.fbp-bio {
    text-align: center;
    color: #e4e6eb;
    font-size: 15px;
    margin: 10px 16px 0;
    line-height: 1.35;
}
.fbp-bio.clamped .description-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fbp-bio .description-content a { color: #2d88ff; }
.fbp-see-more {
    color: #b0b3b8;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}
.fbp-see-more:hover { color: #e4e6eb; }
.fbp-creator-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #b0b3b8;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}
.fbp-creator-badge ion-icon { font-size: 18px; }

/* --- Action buttons ------------------------------------------------------ */
.fbp-actions { padding: 14px 16px 4px; }
.fbp-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.fbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 12px;
}
.fbp-btn:hover { text-decoration: none; }
.fbp-btn-blue { background: #2d88ff; color: #fff; flex: 1.5; }
.fbp-btn-blue:hover { background: #1f6fe0; color: #fff; }
.fbp-btn-gray { background: #3a3b3c; color: #e4e6eb; flex: 1; }
.fbp-btn-gray:hover { background: #4e4f50; color: #fff; }
.fbp-btn-block { width: 100%; }
.fbp-btn ion-icon { font-size: 18px; }

/* --- Tabs ---------------------------------------------------------------- */
.fbp-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 12px 4px;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #18191a;
}
.fbp-tabs::-webkit-scrollbar { display: none; }
.fbp-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #b0b3b8;
    text-decoration: none;
    border: 0;
    background: transparent;
}
.fbp-tab:hover { color: #e4e6eb; text-decoration: none; background: #3a3b3c; }
.fbp-tab.active { color: #2d88ff; background: rgba(45, 136, 255, 0.15); }

/* --- Detail sections ------------------------------------------------------ */
.fbp-section {
    background: #242526;
    border-radius: 8px;
    margin: 12px 12px 0;
    padding: 14px 16px;
}
.fbp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fbp-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.fbp-section-edit {
    color: #b0b3b8;
    font-size: 20px;
    display: inline-flex;
}
.fbp-section-edit:hover { color: #e4e6eb; }
.fbp-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    color: #e4e6eb;
    font-size: 15px;
}
.fbp-detail-row ion-icon {
    font-size: 24px;
    color: #b0b3b8;
    flex-shrink: 0;
}
.fbp-detail-row a { color: #e4e6eb; }
.fbp-detail-row a:hover { color: #fff; }
.fbp-detail-muted { color: #b0b3b8; }

/* --- All posts / composer / pills ---------------------------------------- */
.fbp-posts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
}
.fbp-posts-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0; }
.fbp-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 12px;
}
.fbp-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fbp-composer-pill {
    flex: 1;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background: #3a3b3c;
    color: #b0b3b8;
    font-size: 15px;
    text-decoration: none;
}
.fbp-composer-pill:hover { background: #4e4f50; color: #e4e6eb; text-decoration: none; }
.fbp-composer-photo {
    color: #45bd62;
    font-size: 26px;
    display: inline-flex;
    flex-shrink: 0;
}
.fbp-pills {
    display: flex;
    gap: 10px;
    padding: 2px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.fbp-pills::-webkit-scrollbar { display: none; }
.fbp-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 19px;
    background: #3a3b3c;
    color: #e4e6eb;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    text-decoration: none;
}
.fbp-pill:hover { background: #4e4f50; color: #fff; text-decoration: none; }
.fbp-pill ion-icon { font-size: 20px; }
.fbp-pill-reel ion-icon { color: #f02849; }
.fbp-pill-channel ion-icon { color: #2d88ff; }
.fbp-pill-live ion-icon { color: #f02849; }
.fbp-manage { padding: 0 16px 6px; }

/* --- Events -------------------------------------------------------------- */
.fbp-event {
    display: block;
    background: #242526;
    border-radius: 8px;
    margin: 10px 12px 0;
    padding: 14px 16px;
    color: #e4e6eb;
    text-decoration: none;
}
.fbp-event:hover { color: #e4e6eb; text-decoration: none; background: #2f3031; }
.fbp-event-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.fbp-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b3b8;
    font-size: 14px;
}
.fbp-event-meta ion-icon { font-size: 18px; }
.fbp-event-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    flex-shrink: 0;
}
.fbp-event-status.scheduled { background: rgba(45, 136, 255, 0.18); color: #2d88ff; }
.fbp-event-status.live { background: rgba(240, 40, 73, 0.18); color: #f02849; }
.fbp-event-status.ended { background: #3a3b3c; color: #b0b3b8; }
.fbp-empty {
    text-align: center;
    color: #b0b3b8;
    padding: 48px 24px;
    font-size: 15px;
}
.fbp-empty ion-icon { font-size: 48px; display: block; margin: 0 auto 12px; color: #65676b; }

/* --- Post-card insights bar (own profile) -------------------------------- */
.fbp-insights {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 16px 10px;
    margin-top: -4px;
}
.fbp-insights-link {
    color: #2d88ff;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}
.fbp-insights-link:hover { color: #5aa2ff; text-decoration: underline; }
.fbp-boost-btn {
    background: #2d88ff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    height: 36px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.fbp-boost-btn:hover { background: #1f6fe0; color: #fff; text-decoration: none; }

/* --- Desktop: keep it app-like ------------------------------------------- */
@media (min-width: 768px) {
    .fbp-cover { height: 240px; }
    .fbp-avatar-wrap { width: 168px; height: 168px; }
    .fbp-avatar-row { margin-top: -84px; }
}

/* Canvas continuity (2026-09-24): see fb-dashboard.css note. */
body:has(.fbp-wrap){background-color:#18191a;}
