@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');
/* ==============================
   Reddit Style — Branch Forum
   ============================== */
   
   

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #dae0e6 !important;
    line-height: 1.45;
}

.bf-topic-card,
.bf-post {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bf-topic-card h2,
.bf-topic-card h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.bf-grid {
    gap: 24px !important;
}

.bf-sidebar {
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #d6d6d6;
    padding: 12px;
}

.bf-topic-link {
    font-size: 15px;
    padding: 10px 8px !important;
    border-radius: 4px;
    margin-bottom: 4px;
    display: block;
    color: #333 !important;
}

.bf-topic-active {
    background: #cee3f8 !important;
    font-weight: 600 !important;
}

.bf-small {
    color: #0079d3 !important;
    font-size: 14px !important;
}



.bf-post strong {
    font-weight: 600;
}

.bf-meta {
    color: #777;
    font-size: 13px;
    margin-left: 6px;
}

/* ===========================================
   MAIN "Ask Or Share" BUTTON (Green + Black)
=========================================== */

.bf-button {
    background: linear-gradient(135deg, #16a34a, #065f46) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    font-size: 15px;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    transition: all 0.2s ease-in-out;
}

.bf-button:hover {
    background: linear-gradient(135deg, #22c55e, #047857) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.32);
}

.bf-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}


textarea {
    border-radius: 4px !important;
    border: 1px solid #bbb !important;
    padding: 8px !important;
    font-size: 15px;
}

.bf-post {
    border-left: 3px solid #e2e8f0;
}

/* nested replies */
.bf-post .bf-post {
    border-left: 2px solid #c2d1e0;
    background: #f9fafb;
}

/* sticky box redesign */
.bf-sticky-box {
    background: #fff8d9 !important;
    border-left: 4px solid #f9c22e !important;
    padding: 16px !important;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* hover cards */
.bf-post:hover {
    background: #f8f9fa;
}

/* votes look more reddit-like */
.vote-number {
    font-size: 16px;
    font-weight: 700;
    margin-right: 6px;
}

/* ============================
   Reddit Medium Spacing (20px)
   ============================ */

/* Add comfortable left–right margin on all cards */
.bf-topic-card,
.bf-post,
.bf-sticky-box {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* Add inner padding inside cards */
.bf-topic-card,
.bf-post,
.bf-sticky-box {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Better spacing between sidebar and content */
.bf-grid {
    gap: 32px !important;  /* was 20, now more Reddit-like */
}

/* Improve reply indentation spacing */
.bf-post .bf-post {
    margin-left: 20px !important;
    padding-left: 16px !important;
    border-left: 2px solid #d8e1e8 !important;
    background: #fafbfc !important;
}

/* ================================
   ✅ MOBILE RESPONSIVE FIXES
================================ */

/* ✅ Grid mobile stacking */
@media (max-width: 768px) {
  .bf-grid {
    grid-template-columns: 1fr !important;
  }

  .bf-sidebar {
    order: 2;
  }

  .bf-main {
    order: 1;
  }
}

/* ✅ Font & readability */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  .bf-topic-link {
    font-size: 15px;
  }
}

/* ✅ Buttons & links touch friendly */
@media (max-width: 768px) {
  .bf-small,
  .bf-button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* ✅ Search + filters stacking */
@media (max-width: 768px) {
  .bf-top-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bf-top-filter input,
  .bf-top-filter select {
    width: 100% !important;
  }
}

/* ✅ Reply box mobile */
@media (max-width: 768px) {
  textarea {
    font-size: 15px;
    padding: 10px;
  }

  .bf-post {
    padding: 10px 8px;
  }
}

/* ✅ Ticker mobile width + speed */
@media (max-width: 768px) {
  .bf-ticker-wrapper {
    max-width: 92%;
  }

  .bf-ticker-text {
    animation-duration: 14s;
    font-size: 13px;
  }
}

/* ✅ Prevent sideways scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ================================
✅ SAFE BRANCH LOGIN PAGE DESIGN
(No :has selector, 100% compatible)
================================ */

.bf-login-card {
    max-width: 420px;
    margin: 50px auto;
    padding: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #020617);
    border: 1px solid #22c55e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center;
}

/* Heading */
.bf-login-card p:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 16px;
}

/* ✅ Google Login Button */
.bf-login-card a[href*="google"] {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    margin: 14px 0;
    transition: all 0.25s ease;
}

/* Hover Glow */
.bf-login-card a[href*="google"]:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 22px rgba(34,197,94,0.6);
}

/* 🔒 Secure Login Text */
.bf-login-card::after {
    content: "🔒 Secure Google Login";
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #86efac;
}

/* Register Line */
.bf-login-card p:last-child {
    margin-top: 14px;
    font-size: 14px;
    color: #cbd5f5;
}

.bf-login-card p:last-child a {
    color: #4ade80;
    font-weight: 700;
    text-decoration: underline;
}

/* ✅ Mobile */
@media (max-width: 600px) {
    .bf-login-card {
        margin: 25px 14px;
        padding: 22px;
    }
}

/* =========================================================
   ASK OR SHARE BUTTON — GREEN + BLACK VERSION
   ========================================================= */

.bf-ask-btn {
    background: linear-gradient(135deg, #16a34a, #065f46); /* green → dark green */
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.bf-ask-btn:hover {
    background: linear-gradient(135deg, #22c55e, #047857); /* brighter green */
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transform: translateY(-1.5px);
}

.bf-ask-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ========================================
   FINAL RESPONSIVE FIX FOR TICKER + HEADER
========================================= */

@media (max-width: 768px) {

    /* Fix ticker wrapper width */
    .bf-ticker-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 12px !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;    /* important */
    }

    /* Fix ticker inside width */
    .bf-ticker-text {
        white-space: nowrap !important;
        display: inline-block !important;
        min-width: 100% !important;     
        padding-left: 100% !important;
        animation: bf-ticker-scroll 25s linear infinite !important;
        font-size: 13px !important;
    }

    /* FIX: Make header responsive once ticker shrinks */
    .bf-header-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .bf-header-flex > div {
        width: 100% !important;
        text-align: center !important;
    }

    /* Fix bell popup */
    #bf-notifs {
        right: 50% !important;
        transform: translateX(50%) !important;
        width: 90% !important;
        max-width: 300px !important;
        top: 70px !important;
    }
}

/* HD Score — green, inline, mobile-friendly */
.bf-hd-score {
    color: #22c55e;      /* bright green that matches your ticker */
    font-weight: 600;
}

.bf-hd-inline {
    font-size: 12px;
}

/* On mobile: HDScore moves to new line automatically */
@media (max-width: 600px) {
    .bf-hd-inline {
        display: block;
        margin-top: 2px;
    }
}
/* Inline HD score green style */
.bf-hd-score {
    color: #22c55e;
    font-weight: 600;
    font-size: 12px;
}

/* mobile-friendly inline wrapper */
.bf-hd-inline {
    font-size: 12px;
}

/* mobile view: HDScore moves to new line + remove '|' */
@media (max-width: 600px) {

    .bf-hd-inline {
        display: block;
        margin-top: 2px;
    }

    .bf-hd-sep {
        display: none;  /* remove "|" on mobile */
    }
}

/* =========================================================
   🔒 LOGIN CARD — HARD OVERRIDE AGAINST bf-topic-card
   ========================================================= */

/* When login card is also a topic card, neutralize topic styles */
.bf-topic-card.bf-login-card {
    background: linear-gradient(135deg, #020617, #020617 60%, #020617) !important;
    border: none !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45) !important;

    /* 🔥 THIS IS THE KEY FIX */
    margin-left: auto !important;
    margin-right: auto !important;

    padding: 40px 30px !important;
    border-radius: 18px !important;
}

/* Prevent Reddit spacing rules from shrinking login */
.bf-topic-card.bf-login-card {
    max-width: 900px !important;
}

/* Ensure inner text stays centered */
.bf-topic-card.bf-login-card * {
    box-sizing: border-box;
}

/* === Eye comfort layout fix === */

/* MAIN CONTENT WIDTH */
#content,
.site-content,
.bf-container,
.bf-posts,
.bf-post-list {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* TEXT BREATHING */
body,
p,
.bf-post,
.bf-post-content {
    line-height: 1.6 !important;
}

/* POST SPACING */
.bf-post {
    margin-bottom: 20px !important;
    padding: 16px 18px !important;
    border-radius: 8px;
}

/* =====================================================
   🔧 FINAL FIX — Compact Reply / Upvote / Follow
   (matches real forum markup)
===================================================== */

/* Make action links smaller & softer */
.bf-post .bf-small {
    font-size: 12px !important;
    line-height: 1.4;
    opacity: 0.85;
}

/* Reduce spacing between actions */
.bf-post .bf-small + .bf-small,
.bf-post .bf-small + a {
    margin-left: 6px;
}

/* Hover clarity */
.bf-post .bf-small:hover {
    opacity: 1;
    text-decoration: underline;
}


/* Reduce spacing between links */
.bf-post-actions a,
.bf-reply-actions a,
.bf-comment-actions a {
    margin-right: 6px;
    padding: 2px 4px;
}

/* Pipe separator spacing */
.bf-post-actions span,
.bf-reply-actions span,
.bf-comment-actions span {
    margin: 0 4px;
}

/* Hover = clear but not loud */
.bf-post-actions a:hover,
.bf-reply-actions a:hover,
.bf-comment-actions a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =====================================================
   FINAL POLISH — Post Action Links
   No underline + clean even spacing
===================================================== */

.bf-post .bf-small {
    text-decoration: none !important;   /* remove underline */
    font-size: 12px !important;
    line-height: 1.4;
    opacity: 0.85;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
}

/* Even gap between all actions */
.bf-post .bf-small + .bf-small {
    margin-left: 0px;   /* adjust: 10px tighter, 18px wider */
}

/* Hover feedback (no underline) */
.bf-post .bf-small:hover {
    opacity: 1;
    text-decoration: none !important;
}
/* =====================================================
   CLEAN ACTION BAR — LIGHT SEPARATORS + PROPER SPACING
===================================================== */

/* Base action link style */
.bf-post .bf-small {
    font-size: 12px !important;
    text-decoration: none !important;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
}

/* Add light separator before every item except first */
.bf-post .bf-small + .bf-small::before {
    content: "|";
    color: #cbd5e1;      /* light, matching UI borders */
    margin: 0 4px;       /* 👈 balanced left & right gap */
    font-weight: 400;
}

/* Hover feedback */
.bf-post .bf-small:hover {
    opacity: 1;
    text-decoration: none !important;
}

/* Headings */
h1 { font-size: 1.4rem !important; }
h2 { font-size: 1.25rem !important; }
h3 { font-size: 1.1rem !important; }

/* Topic card titles */
.bf-topic-card h2,
.bf-topic-card h3 {
    font-size: 1.15rem !important;
}

/* Main post text */
.bf-post,
.bf-post-content,
p {
    font-size: 0.95rem !important;
}

/* Sidebar topics */
.bf-topic-link {
    font-size: 0.9rem !important;
}

/* Meta / timestamps / HDScore */
.bf-meta,
.bf-hd-inline,
.bf-hd-score {
    font-size: 0.75rem !important;
}

/* Action bar: Reply | Upvote | Follow */
.bf-post .bf-small {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}

/* =========================================================
   🔒 ISOLATE TOPIC SHORTCODES (HD CAT SAFE ZONE)
   ========================================================= */

.bf-topic-content form {
    all: revert;
}

.bf-topic-content input,
.bf-topic-content button,
.bf-topic-content select,
.bf-topic-content textarea,
.bf-topic-content label {
    all: revert;
}

.bf-topic-content button {
    cursor: pointer;
}
/* 🔧 Inline Reply Button — link style */
.bf-inline-reply-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 8px 0 0;
    color: #0073aa;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.bf-inline-reply-btn:hover {
    color: #005177;
    text-decoration: underline;
}

.bf-inline-reply-btn:focus {
    outline: none;
}
.bf-accept-help-btn.locked {
  background: #16a34a;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

.bf-reply-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(1);
}
.bf-reply-hint {
    background: #f9fafb;
    border-left: 3px solid #22c55e;
    padding: 4px 8px;
    border-radius: 4px;
}

/* =========================================================
   🔥 FINAL BLOCK — FORCE 80% VISUAL SCALE AT 100% ZOOM
   (MATCHES YOUR SCREENSHOT)
   ========================================================= */

/* Keep your font */


body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", "Noto Sans", Arial, sans-serif !important;
    font-size: 12.5px !important;  /* ≈ 80% of default 15–16px */
    line-height: 1.55 !important;
}

/* Headings scaled to ~80% */
h1 { font-size: 1.15rem !important; font-weight: 500; }
h2 { font-size: 1.05rem !important; font-weight: 500; }
h3 { font-size: 0.95rem !important; font-weight: 500; }

/* Topic titles — matches your 80% view */
.bf-topic-card h2,
.bf-topic-card h3 {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

/* Main post text — THIS is the key fix */
.bf-post,
.bf-post-content,
p {
    font-size: 0.80rem !important; /* ≈ 80% scale */
    line-height: 1.55 !important;
}

/* Sidebar links — scaled down */
.bf-topic-link {
    font-size: 0.78rem !important;
    font-weight: 500;
}

/* Meta / timestamps / HD score — proportional */
.bf-meta,
.bf-hd-inline,
.bf-hd-score {
    font-size: 0.60rem !important;
    letter-spacing: 0.01em;
    color: #7c7c7c !important;
}

/* Action bar: Reply | Upvote | Follow — proportional */
.bf-post .bf-small {
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

/* Buttons keep your design, just font */
.bf-button,
.bf-ask-btn {
    font-family: "IBM Plex Sans", sans-serif !important;
}

/* Textarea slightly smaller like 80% zoom */
textarea {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 13px !important;
}

/* =========================================================
   FIX: Same spacing between My Earnings and Logout as HDScore
   ========================================================= */

/* Add consistent spacing before Logout, same as separator gap */
.bf-logout-link,
a[href*="logout"],
#bf-logout,
.logout-link {   /* covers most common markup */
    margin-left: 6px !important;   /* matches your existing separator spacing */
}

/* If your theme uses inline items (more robust fix) */
.bf-header-flex a {
    margin-right: 6px;
}

.bf-header-flex a:last-child {
    margin-right: 0;
}

