/**
 * GENERAL & GLOBAL MODIFICATIONS
 * Styles that apply across all screen sizes.
 */

/* --- ACTIVITY PAGE --- */
/* Hide specific block and page headers on Activity */
.activity-sidebar-left #secondary.sidebar-left #block-8,
.bp_activity .entry-header {
    display: none;
}

/* Hide title field in the post modal */
.activity-update-form .activity-form.focus-in .whats-new-title, .bp-nouveau-activity-form-placeholder- .activity-form.focus-in .whats-new-title {
    display: none !important; 
}

/* --- SEARCH BAR --- */
/* Restrict search visibility for logged-out users */
body:not(.logged-in) .header-search-link,
body:not(.logged-in) ul#primary-menu li:nth-child(6),
body:not(.logged-in) .header-search-primary {
    display: none !important;
    visibility: hidden !important;
}

/* --- HEADERS & NAVIGATION --- */
/* Enable smooth header hide/show on scroll */
#masthead {
    transition: transform 0.3s ease-in-out;
}
#masthead.hidden {
    transform: translateY(-100%);
}

#masthead i.bb-icon-inbox.bb-icon-inbox:before {
    content: '\ee2f';
}

/* Show the primary header menu only on large screens */
@media screen and (max-width: 1000px) {
    #primary-navbar #primary-menu {
        display: none;
    }
    #header-aside .user-wrap {
        display: none;
    }
}
/* Hide the footer menu on large screens */
@media screen and (min-width: 1000px) {
    #footer-menu {
        display: none;
    }
}

/* Apply a different color to each element of the primary header menu */
/* The first <i> tag */
.bb-template-v2 .primary-menu > li:nth-of-type(1) > a > i,
.bb-template-v2 .primary-menu > li:nth-of-type(1):hover > a > i {
    color: #fcca4c;
}
/* The second <i> tag */
.bb-template-v2 .primary-menu > li:nth-of-type(2) > a > i,
.bb-template-v2 .primary-menu > li:nth-of-type(2):hover > a > i {
    color: #ed2672;
}
/* The third <i> tag */
.bb-template-v2 .primary-menu > li:nth-of-type(3) > a > i,
.bb-template-v2 .primary-menu > li:nth-of-type(3):hover > a > i {
    color: #53c9f4;
} 

/* User Avatar Styling */
.user-link img {
    border-radius: 50%;
    image-rendering: optimize-contrast;
}

/* Sign-in button styling to match theme buttons */
.bb-header-buttons .button.link.signin-button {
    padding: 0 20px;
    border-radius: var(--bb-button-radius);
    background-color: var(--bb-primary-button-background-regular) !important;
    color: var(--bb-primary-button-text-regular) !important;
    border: 1px solid var(--bb-primary-button-border-regular) !important;
}

/* --- GROUPS & MEMBERS --- */
/* Reset search bar margins and hide entry headers */
.groups .subnav-search.groups-search,
.members .subnav-search.members-search {
    float: inherit !important;
    margin: 0 !important;
}

.groups .entry-header,
.members .entry-header {
    display: none;
}

/* --- PHOTO/VIDEO POST MODAL --- */
.bb-choose-media-type {
    margin-top: 30px;
}




/* --- PROFILE SWITCH PAGE --- */
.profileswitch-template article {
    max-width: 1000px;

}
.profileswitch-profiles-container {
    max-width: 800px;
}



/* 

.activity-feed-anywhere-for-buddyboss #whats-new-form-footer #whats-new-toolbar {
    display: flex;
}


.activity-feed-anywhere-for-buddyboss #bp-nouveau-activity-form {
     display: none;
}
 */

/* Spinner Overlay - Hidden by default on source, but we will show it via jQuery */
#loader-wrapper-povigo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    /* Flex alignment is handled by the PHP display property */
    justify-content: center;
    align-items: center;
}

.spinner-povigo {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* --- ADMIN BAR --- */
#wpadminbar #wp-admin-bar-dev-debug-mode a img {
  height: 20px !important;
  width: 20px !important;
}

/* --- MEMBER PROFILE NAV --- */
/* Hide the component navigation tabs on all member profile pages.
   The footer menu handles navigation — no nav bar needed here. */
.bp-user #object-nav {
    display: none !important;
}
