.forum-container {
    padding: 120px 0 0 80px;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.create-topic-btn {
    padding: 12px 25px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.create-topic-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.forum-categories {
    margin-bottom: 40px;
}

.category {
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--light);
}

.topics-list {
    list-style: none;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s;
}

.topic-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.topic-info {
    display: flex;
    align-items: center;
}

.topic-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent);
}

.topic-title {
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.topic-title:hover {
    color: var(--accent);
}

.topic-stats {
    display: flex;
    color: #999;
    font-size: 14px;
}

.topic-stat {
    margin-left: 20px;
}

.topic-container {
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.topic-header {
    margin-bottom: 30px;
}

.topic-title-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--light);
    margin-bottom: 10px;
}

.topic-meta {
    display: flex;
    color: #999;
    font-size: 14px;
}

.topic-meta-item {
    margin-right: 20px;
}

.posts-list {
    margin-bottom: 30px;
}

.post {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.post-author {
    width: 200px;
    flex-shrink: 0;
    margin-right: 30px;
}

.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.post-author-name {
    font-weight: 700;
    color: var(--light);
    margin-bottom: 5px;
}

.post-author-role {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 10px;
}

.post-author-stats {
    color: #999;
    font-size: 12px;
}

.post-content {
    flex-grow: 1;
}

.post-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date {
    color: #999;
    font-size: 14px;
}

.post-actions {
    display: flex;
}

.post-action {
    margin-left: 15px;
    color: #999;
    cursor: pointer;
    font-size: 14px;
}

.post-action:hover {
    color: var(--accent);
}

.reply-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.reply-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--light);
    font-size: 16px;
    margin-bottom: 15px;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.reply-submit {
    padding: 12px 25px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.reply-submit:hover {
    background-color: var(--accent);
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.topic-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.topic-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.topic-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--accent);
    font-size: 20px;
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--light);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.topic-title:hover {
    color: var(--accent);
}

.topic-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

.topic-meta span {
    display: inline-block;
}

.topic-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #999;
    font-size: 14px;
}

.topic-stat {
    display: block;
}

.has-images {
    color: var(--accent) !important;
}

.no-topics {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .topic-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .topic-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .topic-stats {
        align-items: center;
    }
}

.create-topic-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--light);
    font-size: 16px;
}

.form-group input[type="file"] {
    padding: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.file-hint {
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-secondary {
    background-color: #666;
    border-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
    border-color: #555;
}

.flash-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.flash-success {
    background-color: #2ecc40;
    color: white;
}

.flash-error {
    background-color: #ff4136;
    color: white;
}