/* ---------- Bottom navbar ---------- */
.bp-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.08);
    padding: 6px 8px;
}

/* gradient top border like Instagram */
.bp-bottom-navbar::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

/* icons container */
.bp-bottom-navbar a, .bp-bottom-navbar button.bp-nav-btn {
    flex: 1;
    text-align: center;
    color: #222;
    text-decoration: none;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    cursor: pointer;
}

/* profile avatar */
.bp-bottom-navbar .bp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
}

/* center camera button - gradient ring like Instagram */
.bp-center-wrap {
    position: relative;
    width: 84px;  /* space for lifted button */
    display:flex;
    justify-content:center;
    align-items:center;
    pointer-events:none; /* let inner button handle clicks */
}
.bp-camera-btn {
    pointer-events: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top: -28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    border: 3px solid rgba(255,255,255,0.65);
}

/* camera icon white inside */
.bp-camera-btn svg { width: 28px; height: 28px; color: #fff; fill: #fff; }

/* small icon sizes */
.bp-bottom-navbar svg { width: 24px; height: 24px; fill: currentColor; }

/* popup overlay */
.bp-popup {
    display: none;
    position: fixed;
    z-index: 100000;
    inset: 0; /* top:0;right:0;bottom:0;left:0; */
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* popup inner card */
.bp-popup .bp-popup-card {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    text-align: left;
}

/* close button */
.bp-popup .bp-close {
    float: right;
    font-size: 20px;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* search input & results */
#bp-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-sizing: border-box;
}
.bp-search-results { margin-top: 10px; max-height: 320px; overflow:auto; }
.bp-search-results .item {
    display:flex;
    gap:10px;
    align-items:center;
    padding: 8px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}
.bp-search-results .item:hover { background: #fafafa; }
.bp-search-results .item img { width:40px; height:40px; border-radius:50%; object-fit:cover; }

/* camera popup controls */
.bp-popup .bp-file-input { width:100%; margin-top:8px; }
.bp-popup .bp-preview { margin-top:12px; max-height:320px; overflow:auto; }
.bp-popup .bp-preview img, .bp-popup .bp-preview video { width:100%; border-radius:8px; display:block; }
.bp-popup textarea { width:100%; min-height:68px; margin-top:8px; border-radius:8px; padding:10px; border:1px solid #e6e6e6; resize:vertical; }
.bp-popup .bp-post-btn { margin-top:10px; width:100%; padding:10px; background: linear-gradient(90deg,#f58529,#dd2a7b); color:#fff; border:none; border-radius:8px; cursor:pointer; }

/* small screens adjust */
@media (max-width:420px) {
    .bp-camera-btn { width:56px; height:56px; margin-top:-26px; }
}
