/* 1. THE VERTICAL SWEET SPOT (Liveable Gap) */
.sharedaddy, 
.sd-sharing-enabled,
.wp-block-social-links {
    margin-top: 5px !important; 
    padding-top: 0 !important;
    --wp--style--block-gap: 0px !important; 
}

/* 2. CATEGORIES & TAGS (Stay Solid) */
.wp-block-post-terms.taxonomy-category:before {
    content: "Posted in: " !important;
    font-weight: 600;
}

.wp-block-post-terms.taxonomy-post_tag:before {
    content: "Tags: 🏷️ " !important;
    font-weight: 600;
    display: inline-block;
    filter: grayscale(100%) brightness(80%) !important; 
    opacity: 0.7 !important;
}

/* 3. THE GRAY COMMENT EMOJI (The "Force-In") */
a[href*="#comments"]:before {
    content: "💬 " !important;
    filter: grayscale(100%) brightness(70%) !important;
    display: inline-block !important;
}

a[href*="#comments"] {
    filter: grayscale(100%) brightness(70%) !important;
    font-weight: 600 !important;
}

/* 4. THE "RESPONSES" EXORCISM (Single Post) */
/* This stops the 'paint' by making the container's text invisible and microscopic */
.comments-title, 
.responses-title, 
#comments-title,
#comments > h2,
#comments > h3 {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    overflow: visible !important; /* Allows our 'Comments' to show even if container is height 0 */
    margin-top: 30px !important;
    display: block !important;
}

/* This injects the new word. Even if JS changes the text inside the tag, 
   the ':before' content remains untouched by the script. */
.comments-title:before, 
.responses-title:before, 
#comments-title:before,
#comments > h2:before,
#comments > h3:before {
    content: "💬 Comments" !important;
    color: #333 !important;
    font-size: 22px !important; 
    font-weight: 700 !important;
    line-height: normal !important;
    visibility: visible !important;
    display: block !important;
    filter: grayscale(100%) brightness(70%) !important;
}

/* 5. THE PRINT PILL */
.wp-social-link-chain {
    background-color: #f0f0f0 !important; 
    border-radius: 20px !important;
    padding: 0 12px !important; 
    height: 32px !important; 
    display: inline-flex !important;
    align-items: center;
}

.wp-social-link-chain svg, .wp-social-link-chain .wp-block-social-link-label { 
    display: none !important; 
}

.wp-social-link-chain a { font-size: 0 !important; }
.wp-social-link-chain a:before {
    content: "🖨️ Print" !important;
    font-size: 14px !important; 
    font-weight: 600 !important;
    color: #444 !important;
}

/* 6. GENERAL CLEANUP */
.wp-block-social-links {
    display: flex !important;
    gap: 10px !important;
    width: fit-content !important;
}


/* Hide the duplicate MemberPress login link on protected pages */
.mepr-unauthorized-login-link, 
.mepr-login-link {
    display: none !important;
}

/* Ensure your manual links inside the sentence STILL work */
.mepr-unauthorized-message a {
    display: inline !important;
}

/* 1. Standard Hidden State */
#pum-246476, .pum-overlay {
    display: none;
}

/* 2. The Global Force (Activates when our script runs) */
body.is-redirected #pum-246476,
body.is-redirected .pum-overlay {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
    position: fixed !important;
}

/* 3. The 'Shield': Specifically prevents the popup on login/membership pages even if redirected */
body.mepr-login-page #pum-246476,
body.page-id-246419 #pum-246476,
body.mepr-account-page #pum-246476 {
    display: none !important;
}

/* 4. Formatting to ensure it looks like a popup */
body.is-redirected #pum-246476 {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 90%;
}

/* Hide Logout for Guests */
body:not(.logged-in) .wp-block-navigation .mepr-hide-logged-out, 
body:not(.logged-in) .wp-block-navigation-item.mepr-hide-logged-out {
    display: none !important;
}

/* Hide Login/Join for Members */
body.logged-in .wp-block-navigation .mepr-hide-logged-in, 
body.logged-in .wp-block-navigation-item.mepr-hide-logged-in {
    display: none !important;
}

/* The Double Lock: Suppress popup on Login AND Join pages */
.mepr-login-page #pum-246476,
.mepr-login-page .pum-overlay,
.mepr-signup-page #pum-246476,
.mepr-signup-page .pum-overlay,
.mepr-signup-page .pum-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Kill MemberPress popups on the new account-login page */
.page-slug-account-login .mepr-modal, 
.page-slug-account-login #mepr-login-form-popup,
.page-slug-account-login .mepr-unauthorized-login {
    display: none !important;
}

/* Force the actual password content to be visible */
.page-slug-account-login .entry-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Container for the meta line */
.wp-block-group.meta-row-styled {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin: 15px 0;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}

/* Make labels like "Created by" smaller and lighter */
.meta-label {
    text-transform: uppercase;
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
}

/* Make your name and date pop */
.meta-data-text {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
