/* RCAD PRO — bbPress Professional v2 */

/* Global forum wrapper */
#bbpress-forums{position:relative;padding-top:8px;font-family:system-ui,-apple-system,sans-serif}

/* Breadcrumb */
#bbpress-forums .bbp-breadcrumb p{color:#999;font-size:12px;margin:0 0 12px}
#bbpress-forums .bbp-breadcrumb a{color:#888;text-decoration:none;transition:color .15s}
#bbpress-forums .bbp-breadcrumb a:hover{color:var(--rcad-primary,#1a237e)}
#bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-sep{margin:0 6px;color:#ccc}

/* Search */
#bbpress-forums .bbp-search-form{padding:16px 0}
#bbpress-forums #bbp_search{width:100%;max-width:400px;height:40px;border:1px solid #ddd;border-radius:8px;padding:8px 14px;font-size:14px;transition:border-color .2s}
#bbpress-forums #bbp_search:focus{outline:none;border-color:var(--rcad-primary,#1a237e);box-shadow:0 0 0 3px rgba(26,35,126,.08)}
#bbpress-forums .bbp-search-form .button{background:var(--rcad-primary,#1a237e);color:#fff;border:none;padding:8px 20px;border-radius:8px;font-weight:600;cursor:pointer;transition:background .2s}

/* Forum/Topic lists */
#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-replies,#bbpress-forums ul.bbp-search-results{border:none;margin:0}

/* Header row */
#bbpress-forums li.bbp-header{background:var(--rcad-primary,#1a237e);color:#fff;padding:12px 20px;border-radius:8px 8px 0 0;font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase}
#bbpress-forums li.bbp-header a{color:rgba(255,255,255,.85)}
#bbpress-forums li.bbp-header a:hover{color:#fff}

/* Footer row */
#bbpress-forums li.bbp-footer{background:#f8f9fa;border-radius:0 0 8px 8px;padding:10px 20px;font-size:11px;color:#999}

/* Body rows */
#bbpress-forums li.bbp-body{margin-top:0}
#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{padding:16px 20px;border-bottom:1px solid #f0f0f0;transition:background .15s}
#bbpress-forums li.bbp-body ul.forum:hover,#bbpress-forums li.bbp-body ul.topic:hover{background:#fafbff}
#bbpress-forums div.odd,#bbpress-forums ul.odd{background:transparent}

/* Forum/Topic titles */
#bbpress-forums .bbp-forum-title,#bbpress-forums .bbp-topic-permalink{font-size:15px;font-weight:600;color:#222;text-decoration:none;transition:color .15s}
#bbpress-forums .bbp-forum-title:hover,#bbpress-forums .bbp-topic-permalink:hover{color:var(--rcad-primary,#1a237e)}
#bbpress-forums .bbp-forum-info .bbp-forum-content{font-size:13px;color:#777;margin-top:4px;line-height:1.5}

/* Column sizing */
#bbpress-forums .bbp-forum-freshness,#bbpress-forums .bbp-topic-freshness{width:30%;text-align:right;padding-right:16px}
#bbpress-forums .bbp-forum-topic-count,#bbpress-forums .bbp-forum-reply-count,#bbpress-forums .bbp-topic-voice-count,#bbpress-forums .bbp-topic-reply-count{text-align:center;font-size:13px;color:#666}
#bbpress-forums li.bbp-body .bbp-forum-freshness a,#bbpress-forums li.bbp-body .bbp-topic-freshness a{font-size:12px;color:#999;font-weight:400}

/* Avatars */
#bbpress-forums div.bbp-reply-author img.avatar,#bbpress-forums div.bbp-topic-author img.avatar{border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.1)}

/* Reply/Topic forms — HORIZONTAL BUTTONS FIX */
#bbpress-forums .quicktags-toolbar{display:flex!important;flex-wrap:wrap;gap:4px;padding:8px;background:#f8f9fa;border:1px solid #e0e0e0;border-bottom:none;border-radius:8px 8px 0 0}
#bbpress-forums .quicktags-toolbar input[type="button"],
#bbpress-forums .quicktags-toolbar .ed_button,
#bbpress-forums .bbp-quicktags-toolbar input{
    display:inline-flex!important;align-items:center;justify-content:center;
    padding:6px 12px!important;
    background:#fff!important;border:1px solid #ddd!important;border-radius:4px!important;
    font-size:12px!important;font-weight:600!important;color:#444!important;
    cursor:pointer;transition:all .15s;
    min-width:auto!important;width:auto!important;
    float:none!important;margin:0!important
}
#bbpress-forums .quicktags-toolbar input[type="button"]:hover,
#bbpress-forums .quicktags-toolbar .ed_button:hover{background:#eef!important;border-color:var(--rcad-primary,#1a237e)!important;color:var(--rcad-primary,#1a237e)!important}

/* Textarea */
#bbpress-forums textarea,#bbpress-forums .bbp-the-content textarea,#bbpress-forums .wp-editor-area{
    width:100%!important;min-height:200px;border:1px solid #ddd;border-radius:0 0 8px 8px;padding:14px;font-size:14px;line-height:1.6;resize:vertical;font-family:inherit}
#bbpress-forums textarea:focus{outline:none;border-color:var(--rcad-primary,#1a237e);box-shadow:0 0 0 3px rgba(26,35,126,.08)}

/* Form fields */
#bbpress-forums .bbp-form label{font-size:14px;font-weight:600;color:#333;display:block;margin-bottom:6px}
#bbpress-forums .bbp-form input[type="text"],
#bbpress-forums .bbp-form select{
    width:100%;padding:10px 14px;border:1px solid #ddd;border-radius:8px;font-size:14px;margin-bottom:16px;transition:border-color .2s}
#bbpress-forums .bbp-form input[type="text"]:focus,
#bbpress-forums .bbp-form select:focus{outline:none;border-color:var(--rcad-primary,#1a237e);box-shadow:0 0 0 3px rgba(26,35,126,.08)}

/* Topic Tags, Type, Status */
#bbpress-forums .bbp-form select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:36px}

/* Submit button */
#bbpress-forums .bbp-submit-wrapper{margin-top:16px;text-align:right}
#bbpress-forums .bbp-submit-wrapper .button,
#bbpress-forums .bbp-submit-wrapper button[type="submit"]{
    background:var(--rcad-primary,#1a237e)!important;color:#fff!important;
    border:none!important;padding:12px 32px!important;border-radius:8px!important;
    font-size:14px!important;font-weight:700!important;cursor:pointer;
    transition:background .2s,transform .1s;text-transform:uppercase;letter-spacing:.03em}
#bbpress-forums .bbp-submit-wrapper .button:hover{background:var(--rcad-accent,#ff7c00)!important;transform:translateY(-1px)}

/* Notice/alert */
#bbpress-forums div.bbp-template-notice{background:#fffde7;border:1px solid #fff9c4;border-radius:8px;padding:12px 16px;margin:12px 0;font-size:13px;color:#5d4037}
#bbpress-forums div.bbp-template-notice p{margin:0}

/* Pagination */
#bbpress-forums .bbp-pagination{margin:24px 0;padding:16px 0;border-top:1px solid #eee}
#bbpress-forums .bbp-pagination-links a,#bbpress-forums .bbp-pagination-links span.current{padding:8px 14px;font-size:13px;border-radius:6px;text-decoration:none;transition:all .15s}
#bbpress-forums .bbp-pagination-links a{color:#666;border:1px solid #eee}
#bbpress-forums .bbp-pagination-links a:hover{border-color:var(--rcad-primary,#1a237e);color:var(--rcad-primary,#1a237e)}
#bbpress-forums .bbp-pagination-links span.current{background:var(--rcad-primary,#1a237e);color:#fff;border:1px solid var(--rcad-primary,#1a237e)}

/* Replies */
#bbpress-forums div.bbp-reply-header{background:#f8f9fa;padding:10px 16px;border-bottom:1px solid #eee;border-radius:6px 6px 0 0;font-size:12px;color:#888}
#bbpress-forums div.bbp-reply-content{padding:16px;line-height:1.7;font-size:14px}

/* Admin links */
#bbpress-forums .bbp-admin-links{font-size:11px}
#bbpress-forums .bbp-admin-links a{color:#bbb;text-decoration:none}
#bbpress-forums .bbp-admin-links a:hover{color:var(--rcad-primary,#1a237e)}

/* Notify checkbox */
#bbpress-forums .bbp-form .bbp-checkbox label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:400;color:#666}

@media(max-width:768px){
#bbpress-forums li.bbp-header{font-size:11px;padding:8px 12px;border-radius:6px 6px 0 0}
#bbpress-forums .bbp-forum-freshness,#bbpress-forums .bbp-topic-freshness{padding-right:0;width:35%}
#bbpress-forums .quicktags-toolbar{gap:3px;padding:6px}
#bbpress-forums .quicktags-toolbar input[type="button"]{padding:4px 8px!important;font-size:11px!important}
}
