/* =============================================
   Author Profile - banglastock.com
   Place at: public/assets/templates/basic/css/author-profile.css
   ============================================= */

/* ── Cover Photo — BOXED + RADIUS ─────────── */
.user-profile {
    min-height: 280px;
    background-color: #b0b8c8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    max-width: 1200px;
    margin: 16px auto 0 auto;
    border-radius: 15px;
}
.user-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: rgba(4, 5, 22, 0.15);
    z-index: -1;
}

/* ── Profile Bar — BOXED ───────────────────── */
.profile-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Main flex row ─────────────────────────── */
.profile-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 10px;
    padding-bottom: 24px;
}

/* ── Left side ─────────────────────────────── */
.profile-bar__left {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: nowrap;
    overflow: visible;
}

.profile-bar__avatar-wrap {
    flex-shrink: 0;
    overflow: visible;
    margin-top: -35px;
    padding-left: 65px;
}

/* ── Avatar ─────────────────────────────────── */
.user-profile__img {
    width: 220px !important;
    height: 220px !important;
    border-radius: 20% !important;
    border: none !important;
    box-shadow: 0px 0px 0 10px rgba(255,255,255,0.25), 0 8px 32px rgb(0 0 0 / 0%) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    background: #e5e7eb !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: hidden !important;
}
.user-profile__img-is {
    border-radius: 14% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.user-profile__upload {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    bottom: 10px !important;
    right: 10px !important;
    position: absolute !important;
}

/* ── Info block ─────────────────────────────── */
.profile-bar__info {
    padding-top: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.profile-bar__name {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 5px 0 !important;
    line-height: 1.2;
}
.profile-bar__since {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px 0;
    line-height: 1.5;
}
.profile-bar__edit-btn {
    display: inline-grid;
    place-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 8px;
}
.profile-bar__edit-btn:hover { background: #e5e7eb; }

/* ── Buttons ─────────────────────────────────── */
.profile-bar__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Base shared style for all buttons */
.profile-bar__btn,
.user-profile__btn.follow,
.user-profile__btn.active.unfollow,
.profile-bar__share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 9px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    min-width: 110px !important;
}

/* Follow = dark fill */
.user-profile__btn.follow {
    background: #111827 !important;
    color: #fff !important;
    border: 2px solid #111827 !important;
}
.user-profile__btn.follow:hover {
    background: #374151 !important;
    border-color: #374151 !important;
}

/* Unfollow = outline */
.user-profile__btn.active.unfollow {
    background: #fff !important;
    color: #111827 !important;
    border: 2px solid #111827 !important;
}
.user-profile__btn.active.unfollow:hover {
    background: #111827 !important;
    color: #fff !important;
}

/* Share = outline, same size */
.profile-bar__share-btn {
    background: #fff !important;
    color: #111827 !important;
    border: 2px solid #d1d5db !important;
}
.profile-bar__share-btn:hover {
    border-color: #111827 !important;
    background: #f9fafb !important;
}

/* Change cover */
label.profile-bar__cover-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: #fff !important;
    color: #111827 !important;
    border: 2px solid #d1d5db !important;
}

/* ── Stats — CENTERED ────────────────────────── */
.profile-bar__right {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-shrink: 0;
    padding-right: 10px;
}
.profile-bar__stat {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ← centered */
    text-align: center;
    gap: 2px;
}
.profile-bar__stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
}
.profile-bar__stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

/* ── Tab Menu — BOXED ────────────────────────── */
.tab-menu {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.tab-menu .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.tab-menu__content {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 !important;
    flex-wrap: wrap;
}
.tab-menu__link {
    display: inline-block !important;
    padding: 14px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    transition: color 0.2s !important;
}
.tab-menu__link:hover { color: #111827 !important; }
.tab-menu__link.active {
    color: #111827 !important;
    border-bottom: 2px solid #111827 !important;
}
.tab-menu__link::after,
.tab-menu__link.active::after { display: none !important; }

/* ── Gallery — BOXED ─────────────────────────── */
.user-gallery {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ── Pagination ──────────────────────────────── */
.search-page__pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 20px 0 !important;
    width: 100% !important;
}

/* ══════════════════════════════════════════════
   MOBILE — Facebook style
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .user-profile {
        min-height: 180px;
        margin: 0;
        border-radius: 0;
        max-width: 100%;
    }
    .user-profile::after { border-radius: 0; }
    .profile-bar { max-width: 100%; }

    .profile-bar__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 16px;
    }
    .profile-bar__left {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .profile-bar__avatar-wrap {
        margin-top: -70px;
        padding-left: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .user-profile__img {
        width: 130px !important;
        height: 130px !important;
    }
    .profile-bar__info {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .profile-bar__name { font-size: 20px !important; text-align: center; }
    .profile-bar__since { text-align: center; margin-bottom: 12px; }

    /* Buttons একই লাইনে */
    .profile-bar__btns {
        justify-content: center;
        flex-direction: row !important;   /* ← same row on mobile */
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 8px !important;
    }
    .profile-bar__btn,
    .user-profile__btn.follow,
    .user-profile__btn.active.unfollow,
    .profile-bar__share-btn {
        min-width: 0 !important;
        flex: 1 !important;
        max-width: 160px !important;
    }

    .profile-bar__right {
        justify-content: center;
        width: 100%;
        padding-right: 0;
        gap: 24px;
    }
    .profile-bar__stat-num { font-size: 22px; }

    .tab-menu { max-width: 100% !important; }
    .tab-menu__content { justify-content: center !important; }
    .tab-menu__link { padding: 12px 12px !important; font-size: 11px !important; }
    .user-gallery { max-width: 100% !important; }
}

@media (max-width: 480px) {
    .user-profile__img { width: 110px !important; height: 110px !important; }
    .profile-bar__avatar-wrap { margin-top: -55px; }
    .profile-bar__stat-num { font-size: 18px; }
    .profile-bar__right { gap: 16px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .profile-bar__right { gap: 35px; }
    .user-profile__img { width: 180px !important; height: 180px !important; }
    .profile-bar__avatar-wrap { margin-top: -90px; }
}

/* @ symbol before username */
.profile-bar__at { color: #9ca3af; }