/*
 * Forum Plugin Compatibility Styles
 * Compatible with bbPress, wpForo, and other popular forum plugins
 */

/* General Forum Styles */
.forum-content {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* bbPress Compatibility */
#bbpress-forums {
    font-size: 14px;
    line-height: 1.5;
}

#bbpress-forums .bbp-forums,
#bbpress-forums .bbp-topics,
#bbpress-forums .bbp-replies {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 12px;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
    border-top: 1px solid #e9ecef;
    padding: 12px;
    transition: background-color 0.2s;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
    background-color: #f8f9fa;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title {
    font-weight: 600;
    color: #2c3e50;
}

#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-title a {
    text-decoration: none;
    color: inherit;
}

#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-title a:hover {
    color: #007cba;
}

/* Forum Meta Information */
.bbp-forum-info,
.bbp-topic-meta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Reply Forms */
#bbpress-forums fieldset {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#bbpress-forums fieldset legend {
    font-weight: 600;
    padding: 0 10px;
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="url"],
#bbpress-forums textarea,
#bbpress-forums select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums input[type="url"]:focus,
#bbpress-forums textarea:focus,
#bbpress-forums select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.25);
}

#bbpress-forums button,
#bbpress-forums input[type="submit"] {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover {
    background: #005a87;
}

/* Pagination */
.bbp-pagination {
    text-align: center;
    margin: 2rem 0;
}

.bbp-pagination-links {
    display: inline-flex;
    gap: 5px;
}

.bbp-pagination-links a,
.bbp-pagination-links span {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s;
}

.bbp-pagination-links a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.bbp-pagination-links .current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Breadcrumbs */
.bbp-breadcrumb {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.bbp-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.bbp-breadcrumb a:hover {
    text-decoration: underline;
}

/* User Profile */
.bbp-user-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #bbpress-forums {
        font-size: 13px;
    }
    
    .forum-content {
        padding: 1rem;
    }
    
    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer,
    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        padding: 8px;
    }
    
    .bbp-pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}