.forum-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.category-list,
.topic-list,
.reply-list {
    display: grid;
    gap: 14px;
}

.category-item,
.topic-item,
.reply-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(5, 8, 12, 0.65);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.category-item:hover,
.topic-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.08);
}

.category-item.active {
    border-color: var(--cyan);
    background: rgba(0, 243, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

.category-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
}

.category-item h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
}

.category-item p {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.topic-item h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.2s ease;
}

.topic-item:hover h3 {
    color: var(--cyan);
}

.reply-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.topic-body,
.reply-body {
    white-space: pre-wrap;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.98rem;
}

.forum-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.forum-empty {
    padding: 32px 20px;
    border: 1px dashed rgba(0, 243, 255, 0.2);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
}
