/*--------------------------------------------------------------
bbPress custom styles
@version 1.2 (custom child theme version)
*/

/* Forum Guidelines notice */
.forum-guidelines-notice {
    position: relative;
    margin-top: 70px; 
    margin-bottom: 0px; /* Add spacing below the notice */
    background-color: var(--global-color-21);
    padding: 10px;
    border: 1px solid var(--contrast-2);
    font-size: 18px;
    line-height: 1.5em;
    color: var(--global-color-19);
    text-decoration: none;
}

/* Notice on topic (This topic has x replies...) */
div.bbp-template-notice.info {
    border: 1px solid var(--global-color-19);
    background-color: var(--global-color-19);
}

/* Notice in topic creation incl. reply */
div.bbp-template-notice, div.indicator-hint {
    border-width: 1px;
    padding: 0 .6em;
    margin: 5px 0 15px;
    border-radius: 3px;
    border: 1px solid var(--global-color-19);
    background-color: var(--global-color-19);
    color: #000;
    clear: both;
}

/* Paginations */
.bbp-pagination {
    float: left;
    width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
}



/* Input field descriptions */
#bbpress-forums fieldset.bbp-form label {
    margin: 0;
    display: inline-block;
    font-size: 14px; /* Example: Adjust label text size */
    color: var(--global-color-9);
}

/* Topic creation frame */
#bbpress-forums fieldset.bbp-form {
    clear: left;
    border: 1px solid var(--contrast-2);
    padding: 10px 20px;
    margin-bottom: 10px;
}

/* Topic fields options */
#bbpress-forums fieldset.bbp-form input[type=password], 
#bbpress-forums fieldset.bbp-form input[type=text], 
#bbpress-forums fieldset.bbp-form select {
    border: 1px solid var(--contrast-2);
    margin-top: 10px;
    min-height: 35px;
    height: 35px;
    background-color: var(--contrast);
    margin-top: 10px;
    padding: 5px;
    font-size: 16px;
}

/* CONTAINTERS */

#bbpress-forums ul.bbp-forums, 
#bbpress-forums ul.bbp-lead-topic, 
#bbpress-forums ul.bbp-replies, 
#bbpress-forums ul.bbp-search-results, 
#bbpress-forums ul.bbp-topics {
    font-size: 16px;
    overflow: hidden;
    border: 1px solid var(--contrast-2);
    margin-bottom: 20px;
    clear: both;
    background: var(--contrast); /* Optional: Set a background for the frame */
}

/* Header and Footer Fields */
#bbpress-forums li.bbp-footer, 
#bbpress-forums li.bbp-header {
    background: var(--contrast-2);
    border-top: 1px solid var(--contrast-2);
    font-weight: 700;
    padding: 8px;
    text-align: center;
}

#bbpress-forums li.bbp-header {
    min-height: 45px;
    height: 45px;
}

/* Reply header Fields */
#bbpress-forums div.bbp-forum-header, 
#bbpress-forums div.bbp-reply-header, 
#bbpress-forums div.bbp-topic-header {
    background-color: var(--base);
    font-size: 14px;
    color: var(--contrast-2);
}


/* Base container backgrounds */
#bbpress-forums li.bbp-body {
    background-color: var(--contrast);
}

/* Forum/Topic lists */
#bbpress-forums div.odd, 
#bbpress-forums ul.odd {
    background-color: var(--contrast);
}

#bbpress-forums div.even, 
#bbpress-forums ul.even {
    background-color: var(--contrast-1);
}

/* Topic body specific */
#bbpress-forums div.bbp-forum-body,
#bbpress-forums div.bbp-topic-body,
#bbpress-forums div.bbp-reply-body {
    background-color: var(--contrast);
}

/* Topic reply writing area */
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
    width: 100%;
    margin: 0;
    font-size: 18px;
}

/* Base row styling for both forums and topics */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-topic-content {
    border-top: none;
    overflow: hidden;
    padding: 8px;
    background-color: var(--contrast) !important;
}

/* Alternating rows for both forums and topics */
#bbpress-forums li.bbp-body ul.forum:nth-child(even),
#bbpress-forums li.bbp-body ul.topic:nth-child(even),
#bbpress-forums div.bbp-forum-content:nth-child(even),
#bbpress-forums div.bbp-topic-content:nth-child(even) {
    background-color: var(--contrast-1) !important;
}

/* Make background transparent for content areas */
#bbpress-forums li.bbp-body div.bbp-forum-content,
#bbpress-forums li.bbp-body div.bbp-topic-content,
#bbpress-forums li.bbp-body div.bbp-reply-content {
    background-color: transparent !important;
}

/* Ensure links in topics container maintain theme color on alternating rows */
#bbpress-forums li.bbp-body ul.topic:nth-child(even) a {
    color: var(--global-color-18) !important; /* The theme's green color variable */
}

/* GRAVATARS */

/* Gravatars, mini in lists */
#bbpress-forums .widget_display_replies img.avatar, 
#bbpress-forums .widget_display_topics img.avatar, 
#bbpress-forums div.bbp-template-notice img.avatar, 
#bbpress-forums p.bbp-topic-meta img.avatar, 
#bbpress-forums ul.bbp-reply-revision-log img.avatar, 
#bbpress-forums ul.bbp-topic-revision-log img.avatar {
    float: none;
    vertical-align: middle;
    border: 1px var(--contrast-1);
    max-height: 20px;
    max-width: 20px;
}

/* Gravatars, large in rows */
#bbpress-forums div.bbp-forum-author img.avatar, 
#bbpress-forums div.bbp-reply-author img.avatar, 
#bbpress-forums div.bbp-topic-author img.avatar {
    border: none;
    max-width: 40px;
    padding: 0;
    margin: 12px auto 0;
    float: none;
}