/* Forums Layout */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #0b0f19cc;
    border: 1px solid #00f7ff;
    border-radius: 5px;
    color: #e0e0e0;
}

/* Header */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e2a3a;
}

.forum-header h1 {
    color: #00f7ff;
    margin: 0;
    font-size: 2em;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #00f7ff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #8e9eab;
}

/* Forum List */
.forum-list {
    margin-bottom: 30px;
}

.forum-item {
    display: flex;
    padding: 15px;
    margin-bottom: 10px;
    background: #0f1620;
    border: 1px solid #1e2a3a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.forum-item:hover {
    background: #141e2d;
    border-color: #00f7ff;
}

.forum-icon {
    flex: 0 0 50px;
    font-size: 24px;
    color: #00f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-details {
    flex: 1;
    padding: 0 15px;
}

.forum-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.forum-details h3 a {
    color: #e0e0e0;
    text-decoration: none;
}

.forum-details h3 a:hover {
    color: #00f7ff;
    text-decoration: underline;
}

.forum-stats {
    flex: 0 0 120px;
    text-align: center;
    font-size: 0.9em;
    color: #8e9eab;
}

.forum-latest {
    flex: 0 0 250px;
    font-size: 0.9em;
}

/* Thread List */
.thread-list .thread-item {
    display: flex;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #0f1620;
    border: 1px solid #1e2a3a;
    border-radius: 4px;
}

.thread-item .thread-icon {
    flex: 0 0 40px;
    color: #00f7ff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-item .thread-main {
    flex: 1;
    padding: 0 15px;
}

.thread-item .thread-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.thread-item .thread-started {
    font-size: 0.85em;
    color: #8e9eab;
}

.thread-item .thread-stats {
    flex: 0 0 100px;
    text-align: center;
    font-size: 0.9em;
    color: #8e9eab;
}

.thread-item .thread-latest {
    flex: 0 0 200px;
    font-size: 0.9em;
}

/* Posts */
.posts-list {
    margin-bottom: 30px;
}

.post {
    display: flex;
    margin-bottom: 20px;
    background: #0f1620;
    border: 1px solid #1e2a3a;
    border-radius: 4px;
    overflow: hidden;
}

.post-sidebar {
    flex: 0 0 200px;
    padding: 15px;
    background: #0a0f17;
    border-right: 1px solid #1e2a3a;
}

.post-author {
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #0f1620;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    max-width: 100%;
    height: auto;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00f7ff;
    color: #0a0f17;
    font-weight: bold;
    font-size: 1.5em;
}

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

.username a {
    color: #e0e0e0;
    text-decoration: none;
}

.username a:hover {
    color: #00f7ff;
    text-decoration: underline;
}

.user-stats {
    font-size: 0.85em;
    color: #8e9eab;
    margin-top: 10px;
}

.post-content {
    flex: 1;
    padding: 15px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e2a3a;
}

.post-date {
    color: #8e9eab;
    font-size: 0.9em;
}

.post-date .edited {
    color: #f39c12;
    font-style: italic;
}

.post-actions {
    display: flex;
    gap: 5px;
}

.post-body {
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-signature {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #1e2a3a;
    font-size: 0.9em;
    color: #8e9eab;
    font-style: italic;
}

/* Pagination */
.pagination {
    margin: 20px 0;
}

.page-link {
    background: #0f1620;
    border: 1px solid #1e2a3a;
    color: #e0e0e0;
}

.page-link:hover {
    background: #141e2d;
    border-color: #00f7ff;
    color: #00f7ff;
}

.page-item.active .page-link {
    background: #00f7ff;
    border-color: #00f7ff;
    color: #0a0f17;
}

/* Forms */
.reply-box {
    background: #0f1620;
    border: 1px solid #1e2a3a;
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
}

.reply-box h3 {
    margin-top: 0;
    color: #00f7ff;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e2a3a;
    margin-bottom: 20px;
}

.form-control {
    background: #0a0f17;
    border: 1px solid #1e2a3a;
    color: #e0e0e0;
}

.form-control:focus {
    background: #0f1620;
    border-color: #00f7ff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(0, 247, 255, 0.25);
}

.form-check-input:checked {
    background-color: #00f7ff;
    border-color: #00f7ff;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-item,
    .thread-item,
    .post {
        flex-direction: column;
    }
    
    .forum-stats,
    .forum-latest,
    .thread-stats,
    .thread-latest,
    .post-sidebar {
        flex: 1 1 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #1e2a3a;
        border-left: none;
    }
    
    .post-sidebar {
        border-right: none;
        border-bottom: 1px solid #1e2a3a;
    }
}
