/**
 * bbPress First Post Requirement Styles
 * Version: 2.0.2
 */

/* Notice styling */
.bbp-posting-blocked-notice {
    background-color: #fff3cd!important;
    border: 1px solid #ffc107!important;
    color: #856404!important;
    padding: 15px!important;
    margin: 15px 0!important;
    border-radius: 3px!important;
    clear: both!important;
}

.bbp-posting-blocked-notice p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.bbp-posting-blocked-notice p:last-child {
    margin-bottom: 0;
}

.bbp-posting-blocked-notice a {
    display: inline-block;
    background-color: #ffc107;
    color: #212529;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
}

.bbp-posting-blocked-notice a:hover {
    background-color: #e0a800;
    color: #212529;
}

/* Required forum highlighting */
.bbp-forums .type-forum.bbp-required-forum,
#bbpress-forums #bbp-forum-wrapper.bbp-required-forum {
    border-left: 3px solid #28a745;
    padding-left: 10px;
    background-color: #f8f9fa;
}

/* Hide forms when not allowed */
body.bbp-posting-blocked #new-topic-0,
body.bbp-posting-blocked #new-reply-0,
body.bbp-posting-blocked .bbp-topic-form,
body.bbp-posting-blocked .bbp-reply-form {
    display: none !important;
}

/* Show forms in required forum */
body.bbp-posting-blocked.in-required-forum #new-topic-0,
body.bbp-posting-blocked.in-required-forum .bbp-topic-form {
    display: block !important;
}

/* Placeholder for disabled forms */
.bbp-no-topic-form,
.bbp-no-reply-form {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    margin: 15px 0;
    border-radius: 3px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .bbp-posting-blocked-notice {
        padding: 12px;
        font-size: 14px;
    }
    
    .bbp-posting-blocked-notice a {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}