/* bbPress Forum Modernization */

/* Base Forum Styles */
#bbpress-forums {
    color: #e5e7eb;
}

/* Forum List Containers */
#bbpress-forums .bbp-forums-list,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Forum Headers */
#bbpress-forums li.bbp-header {
    background: linear-gradient(to right, #1f2937, #111827);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding: 1rem;
}

#bbpress-forums li.bbp-header li {
    color: #d8b4fe;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Forum Items */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums li.bbp-body ul.reply {
    transition: all 0.2s;
    padding: 1rem;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover,
#bbpress-forums li.bbp-body ul.reply:hover {
    background: rgba(31, 41, 55, 0.5);
}

/* Forum Links */
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title {
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
    font-size: 1.125rem;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-title:hover {
    color: #e9d5ff;
}

/* Forum Meta */
#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums .bbp-topic-content {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Forum Stats */
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
    color: #d1d5db;
    font-weight: 500;
    text-align: center;
}

/* Freshness */
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
    font-size: 0.875rem;
}

#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

#bbpress-forums .bbp-forum-freshness a:hover,
#bbpress-forums .bbp-topic-freshness a:hover {
    color: #93c5fd;
}

/* Pagination */
#bbpress-forums .bbp-pagination-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

#bbpress-forums .bbp-pagination-links a {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.5), rgba(37, 99, 235, 0.5));
    color: white;
    text-decoration: none;
}

#bbpress-forums .bbp-pagination-links a:hover {
    background: linear-gradient(to right, #9333ea, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

#bbpress-forums .bbp-pagination-links span.current {
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
}

/* Reply Form */
#bbpress-forums fieldset.bbp-form {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin: 1.5rem 0;
}

#bbpress-forums fieldset.bbp-form legend {
    color: #d8b4fe;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

#bbpress-forums fieldset.bbp-form label {
    color: #d1d5db;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="email"],
#bbpress-forums textarea,
#bbpress-forums select {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.2s;
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="password"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums textarea:focus,
#bbpress-forums select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

#bbpress-forums textarea {
    min-height: 150px;
}

/* Buttons */
#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums .button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums .button:hover {
    background: linear-gradient(to right, #7c3aed, #1d4ed8);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

/* Topic Tags */
#bbpress-forums .bbp-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#bbpress-forums .bbp-topic-tags a {
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

#bbpress-forums .bbp-topic-tags a:hover {
    background: rgba(147, 51, 234, 0.4);
}

/* Breadcrumb */
.bbp-breadcrumb {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.bbp-breadcrumb a {
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s;
}

.bbp-breadcrumb a:hover {
    color: #e9d5ff;
}

/* User Profile */
#bbpress-forums .bbp-user-section {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

#bbpress-forums .bbp-user-section h2 {
    color: #d8b4fe;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding-bottom: 0.75rem;
}

/* Notices */
#bbpress-forums div.bbp-template-notice {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

#bbpress-forums div.bbp-template-notice.info {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
}

/* Reply Content */
#bbpress-forums .bbp-reply-content {
    color: #d1d5db;
    line-height: 1.625;
    padding: 1rem;
}

/* Author Info */
#bbpress-forums .bbp-author-name {
    color: #c084fc;
    font-weight: 600;
}

#bbpress-forums .bbp-author-role {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Search Form */
#bbpress-forums .bbp-search-form {
    margin-bottom: 1.5rem;
}

#bbpress-forums .bbp-search-form input[type="text"] {
    background: #1f2937;
    border-color: #374151;
    color: white;
}
