/* =====================================================================
   4. BBPRESS – FORUM LAYOUT & COLOR
   ===================================================================== */

/* Forum wrapper – panel look, breaks up white */
#bbpress-forums {
    background-color: #f5f7f8;
    padding: 1.5rem 1.5rem 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Forum header row */
#bbpress-forums li.bbp-header {
    background: #88cc00;          /* bright green */
    color: #1b2508;               /* dark olive for strong contrast */
    font-weight: 700;
}

/* Ensure header text stays readable */
#bbpress-forums li.bbp-header .bbp-forum-info,
#bbpress-forums li.bbp-header .bbp-topic-title,
#bbpress-forums li.bbp-header div {
    color: #1b2508;
}

/* Forum & topic titles */
#bbpress-forums .bbp-forum-info .bbp-forum-title {
    font-size: 1.4em;
    color: #3F5A16; /* dark green */
}

#bbpress-forums .bbp-forum-info .bbp-forum-content {
    font-size: 1.2em;
}

/* Topic title links */
#bbpress-forums .bbp-topic-title .bbp-topic-permalink {
    font-size: 1.4em;
    color: #2e3b0f;
}

#bbpress-forums .bbp-topic-title .bbp-topic-permalink:hover,
#bbpress-forums .bbp-topic-title .bbp-topic-permalink:focus {
    color: #182208;
}

/* Breadcrumbs – slightly larger, clearer */
#bbp-breadcrumb,
.bbp-breadcrumb {
    font-size: 1.2em;
    margin-bottom: 0.75em;
}

/* Reply content text sizing */
#bbpress-forums .bbp-reply-content {
    font-size: 1.05em;
}

/* Hide forum list inside forum index (your preference) */
#bbpress-forums .bbp-forums-list .bbp-forum {
    display: none;
    height: 0;
}

/* Hide all revisions but last */
.bbp-topic-revision-log li {
    display: none;
}
.bbp-topic-revision-log li:last-child {
    display: block;
}

/* =====================================================================
   5. BBPRESS – REPLY CARDS & ROW STRIPING (merged, structure-safe)
   ===================================================================== */

/* Zebra striping on the actual list rows (reliable) */
#bbpress-forums ul.bbp-replies > li:nth-child(even),
#bbpress-forums ul.bbp-topics  > li:nth-child(even),
#bbpress-forums ul.bbp-forums  > li:nth-child(even) {
    background: #f7f9fb;
}

/* Card feel for content blocks */
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #dde3e8;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 0.5rem 0 1rem;
}

/* Optional: tint the card itself on alternating rows (still works reliably) */
#bbpress-forums ul.bbp-replies > li:nth-child(even) div.bbp-reply-content,
#bbpress-forums ul.bbp-topics  > li:nth-child(even) div.bbp-topic-content {
    background: #f0f4f7; /* your original light blue-gray */
}

/* Author box structure */
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author {
    padding: 0.85rem 0.75rem;
    background: #e7ebef;
    border-radius: 10px;
}

/* =====================================================================
   6. BBPRESS – CALLOUT / “HUD” STYLE HELP BOXES
   (for future shortcode-based panels)
   ===================================================================== */

.coi-callout {
        margin: 1.15rem 0 0.75rem;
        padding: 0.95rem 1rem;
        border-radius: 10px;
        border: 1px solid #dde3e8;
        background: #f6f8fa;
        color: #1a1a1a;
}

.coi-callout--info {
        border-color: rgba(0, 200, 255, 0.35);
        background: rgba(0, 200, 255, 0.08);
}

.coi-callout--pro {
        border-color: rgba(34, 255, 136, 0.35);
        background: rgba(34, 255, 136, 0.10);
}

.coi-callout--warn {
        border-color: rgba(255, 180, 0, 0.45);
        background: rgba(255, 180, 0, 0.12);
}

/* =====================================================================
   BBPress mobile layout (Citizens of Interest)
   Stack author + content, avoid cramped columns
   ===================================================================== */

@media screen and (max-width: 782px) {

    /* Overall forum wrapper – keep padding modest on small screens */
    #bbpress-forums {
        padding: 1rem 0.75rem 1.5rem;
        box-shadow: none; /* rely on card shadows instead */
        background-color: #f3f5f7;
    }

    /* Forum/topic header row – reduce height + padding */
    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
        padding: 0.5em 0.75em;
        font-size: 0.9rem;
    }

    /* Hide non-essential columns to avoid horizontal squeeze */
    #bbpress-forums li.bbp-header .bbp-forum-topic-count,
    #bbpress-forums li.bbp-header .bbp-forum-reply-count,
    #bbpress-forums li.bbp-body   .bbp-forum-topic-count,
    #bbpress-forums li.bbp-body   .bbp-forum-reply-count,
    #bbpress-forums li.bbp-header .bbp-topic-voice-count,
    #bbpress-forums li.bbp-header .bbp-topic-reply-count,
    #bbpress-forums li.bbp-body   .bbp-topic-voice-count,
    #bbpress-forums li.bbp-body   .bbp-topic-reply-count {
        display: none;
    }

    /* Stack forum/topic entries vertically with better spacing */
    #bbpress-forums .bbp-body ul.forum,
    #bbpress-forums .bbp-body ul.topic {
        padding: 0.75rem 0;
    }

    /* Reply & topic rows: make them full-width blocks */
    #bbpress-forums .bbp-body .bbp-topic,
    #bbpress-forums .bbp-body .bbp-reply {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #dde3e8;
    }

    /* Stack author box above content instead of side-by-side */
    #bbpress-forums .bbp-body .bbp-reply-author,
    #bbpress-forums .bbp-body .bbp-topic-author {
        float: none;
        width: 100%;
        text-align: left;
        margin: 0 0 0.5rem 0;
        padding: 0.5rem 0.75rem;
        background-color: #e7ebef;
        border-radius: 6px;
        box-sizing: border-box;
    }

    #bbpress-forums .bbp-body .bbp-reply-author .bbp-author-avatar,
    #bbpress-forums .bbp-body .bbp-topic-author .bbp-author-avatar {
        margin-right: 0.5rem;
    }

    #bbpress-forums .bbp-body .bbp-reply-author img.avatar,
    #bbpress-forums .bbp-body .bbp-topic-author img.avatar {
        float: left;
    }

    #bbpress-forums .bbp-body .bbp-reply-author .bbp-author-name,
    #bbpress-forums .bbp-body .bbp-topic-author .bbp-author-name {
        display: inline-block;
        font-weight: 600;
        margin-top: 0.2rem;
    }

    /* Reply/topic content: full width under author */
    #bbpress-forums .bbp-body .bbp-reply .bbp-reply-content,
    #bbpress-forums .bbp-body .bbp-topic .bbp-topic-content {
        margin: 0;
        width: 100%;
        padding: 0.75rem 0.85rem;
        border-radius: 6px;
        background-color: #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        box-sizing: border-box;
    }

    /* Alternate rows: subtle tint to break up long threads (row-safe) */
    #bbpress-forums ul.bbp-replies > li:nth-child(odd) div.bbp-reply-content {
        background-color: #f0f4f7;
    }
    #bbpress-forums ul.bbp-topics > li:nth-child(odd) div.bbp-topic-content {
        background-color: #f0f4f7;
    }

    /* Meta line – smaller text, stacked */
    #bbpress-forums .bbp-body .bbp-reply-header,
    #bbpress-forums .bbp-body .bbp-topic-header {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    #bbpress-forums .bbp-body .bbp-reply-header .bbp-meta,
    #bbpress-forums .bbp-body .bbp-topic-header .bbp-meta {
        display: block;
        float: none;
    }

    /* Long code/URLs wrap instead of forcing horizontal scroll */
    #bbpress-forums .bbp-body .bbp-reply-content,
    #bbpress-forums .bbp-body .bbp-topic-content {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Breadcrumb more compact on mobile */
    .bbp-breadcrumb,
    #bbp-breadcrumb {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }
}

/* =====================================================================
   BBPress breadcrumbs – base styling
   ===================================================================== */

.bbp-breadcrumb {
    font-size: 14px;
    margin-bottom: 1rem;
}

.bbp-breadcrumb a {
    text-decoration: none;
}

.bbp-breadcrumb a:hover,
.bbp-breadcrumb a:focus {
    text-decoration: underline;
}
