.community-section {
    background-color: #f5f7fa;
    padding: 80px 0;
}

/* Discord Integration Styles */
.discord-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
}

.discord-widget {
    width: 100%;
}

.widget-header {
    background-color: #5865F2;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.join-discord-btn {
    background-color: #fff;
    color: #5865F2;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.join-discord-btn:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

/* Forum Styles */
.forum-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.forum-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.forum-breadcrumbs {
    font-size: 0.9rem;
    color: #666;
}

.forum-breadcrumbs a {
    color: #2196F3;
    text-decoration: none;
}

.forum-breadcrumbs a:hover {
    text-decoration: underline;
}

.forum-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.forum-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.forum-search input {
    border: none;
    padding: 8px 12px;
    width: 200px;
}

.forum-search button {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.forum-search button:hover {
    background-color: #e0e0e0;
}

/* Forum Categories */
.forum-categories {
    padding: 20px;
}

.forum-category {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.forum-category:hover {
    background-color: #f9f9f9;
}

.forum-category:last-child {
    border-bottom: none;
}

.category-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.latest-post {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.post-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-time {
    font-size: 0.8rem;
    color: #666;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    font-size: 0.85rem;
}

/* Locked Categories */
.forum-category.locked {
    grid-template-columns: 1fr;
    opacity: 0.8;
}

.category-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.category-upgrade p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Forum Topics */
.forum-topics {
    padding: 20px;
}

.forum-topic {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.forum-topic:hover {
    background-color: #f9f9f9;
}

.forum-topic:last-child {
    border-bottom: none;
}

.topic-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.topic-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.topic-time {
    white-space: nowrap;
}

.latest-reply {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reply-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.reply-time {
    font-size: 0.8rem;
    color: #666;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-author span {
    font-size: 0.85rem;
}

/* Forum Pagination */
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.forum-pagination a, .forum-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.forum-pagination a:hover {
    background-color: #f5f5f5;
}

.forum-pagination a.active {
    background-color: #2196F3;
    color: #fff;
}

.forum-pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* Thread Styles */
.thread-container {
    padding: 20px;
}

.thread-topic, .thread-reply {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.reply-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    margin-bottom: 10px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    width: 100%;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.author-stats .stat {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.reply-content {
    display: flex;
    flex-direction: column;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.reply-number, .topic-title {
    font-weight: 600;
}

.reply-time {
    font-size: 0.85rem;
    color: #666;
}

.reply-body {
    margin-bottom: 20px;
    line-height: 1.6;
}

.reply-body p {
    margin-bottom: 15px;
}

.reply-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

.reply-body ul, .reply-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.reply-body li {
    margin-bottom: 5px;
}

.reply-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reply-actions {
    display: flex;
    gap: 15px;
}

.reply-action {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.reply-action:hover {
    color: #2196F3;
}

.reply-action i {
    margin-right: 5px;
}

/* Quick Reply */
.quick-reply {
    padding: 20px;
    border-top: 1px solid #eee;
}

.quick-reply h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.reply-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-editor textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formatting-buttons {
    display: flex;
    gap: 10px;
}

.formatting-buttons button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formatting-buttons button:hover {
    background-color: #f5f5f5;
}

/* New Topic Form */
.new-topic-form {
    padding: 20px;
}

.new-topic-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Upgrade Prompt */
.upgrade-prompt {
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.upgrade-prompt h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.upgrade-prompt p {
    margin-bottom: 30px;
    color: #666;
}

.discord-features, .forum-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: #2196F3;
    margin-bottom: 15px;
}

.feature span {
    font-weight: 500;
}

.upgrade-prompt .btn {
    margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .thread-topic, .thread-reply {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 768px) {
    .forum-category {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .forum-topic {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-stats {
        justify-content: flex-start;
    }
    
    .thread-topic, .thread-reply {
        grid-template-columns: 1fr;
    }
    
    .reply-author-info {
        flex-direction: row;
        text-align: left;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .author-avatar {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .author-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forum-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-search {
        width: 100%;
    }
    
    .forum-search input {
        width: 100%;
    }
    
    .editor-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .formatting-buttons {
        justify-content: center;
    }
}
