body {
    min-height: 100vh;
    overflow-y: auto;
}

.forum-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-left: 0;
}

.forum-container::-webkit-scrollbar {
    width: 8px;
}

.forum-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.forum-container::-webkit-scrollbar-thumb {
    background: #FF7000;
    border-radius: 4px;
}

.forum-container::-webkit-scrollbar-thumb:hover {
    background: #e66500;
}

.forum-layout {
    display: grid;
    grid-template-columns: 280px minmax(840px, 1fr);
    gap: 2rem;
    min-height: calc(100vh - 120px);
    margin-left: -1rem;
}

/* Стили для левой колонки */
.forum-sidebar {
    background: #0a1118;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid #562401;
    padding: 1rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: #FF7000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(86, 36, 1, 0.7);
}

.section-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-links li {
    margin-bottom: 0.5rem;
}

.section-links a {
    color: #bac6d2;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.section-links a:hover {
    background: rgba(255, 112, 0, 0.1);
    color: #fff;
}

.section-links a.active {
    background: rgba(255, 112, 0, 0.2);
    color: #FF7000;
}

/* Стили для правой колонки */
.forum-content {
    background: #18222b;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid #562401;
    padding: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(86, 36, 1, 0.7);
}

.content-title {
    color: #FF7000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.create-topic-btn {
    background: #FF7000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.create-topic-btn:hover {
    background: #e66500;
    transform: translateY(-2px);
}

/* Категории */
.forum-categories {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.category {
    background: #0a1118;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #562401;
}

.category-header {
    background: linear-gradient(to right, rgba(255, 112, 0, 0.2), rgba(10, 17, 24, 0.5));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    color: #FF7000;
    font-size: 1.5rem;
}

.category-header h2 {
    color: #bac6d2;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
}

/* Темы */
.topics {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FF7000 rgba(255, 255, 255, 0.1);
}

/* Стили для кастомного скроллбара (WebKit) */
.topics::-webkit-scrollbar {
    width: 8px;
}

.topics::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.topics::-webkit-scrollbar-thumb {
    background: #FF7000;
    border-radius: 4px;
}

.topics::-webkit-scrollbar-thumb:hover {
    background: #e66500;
}

.topic {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #562401;
    transition: background-color 0.3s ease;
}

.topic:last-child {
    border-bottom: none;
}

.topic:hover {
    background: rgba(255, 255, 255, 0.05);
}

.topic-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 112, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon i {
    color: #FF7000;
    font-size: 1.2rem;
}

.topic-info {
    flex: 1;
}

.topic-info h3 {
    margin: 0 0 0.5rem 0;
}

.topic-info h3 a {
    color: #bac6d2;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.topic-info h3 a:hover {
    color: #FF7000;
}

.topic-info p {
    color: #bac6d2;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.topic-meta {
    display: flex;
    gap: 1.5rem;
}

.topic-meta span {
    color: #bac6d2;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.topic-meta i {
    color: #FF7000;
}

/* Статистика форума */
.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: #0a1118;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #562401;
}

.stat-item i {
    font-size: 2rem;
    color: #FF7000;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    color: #bac6d2;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: #bac6d2;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1366px) {
    .forum-container {
        max-width: 1100px;
    }
    
    .forum-layout {
        grid-template-columns: 250px minmax(600px, 1fr);
    }
}

@media (max-width: 1024px) {
    .forum-container {
        max-width: 900px;
    }
    
    .forum-layout {
        grid-template-columns: 220px minmax(500px, 1fr);
        gap: 1.5rem;
    }

    .content-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .topic {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .forum-container {
        margin: 1rem;
        padding: 0;
    }

    .forum-layout {
        grid-template-columns: 1fr;
        margin: 0;
        gap: 1rem;
    }

    .forum-sidebar {
        margin-bottom: 1rem;
    }

    .section-links a {
        padding: 0.7rem;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .create-topic-btn {
        width: 100%;
        justify-content: center;
    }

    .topic {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .topic-icon {
        margin: 0 auto;
    }

    .topic-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .forum-container {
        margin: 0.5rem;
    }

    .forum-sidebar {
        padding: 0.8rem;
    }

    .forum-content {
        padding: 1rem;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .section-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .topic-info h3 a {
        font-size: 1rem;
    }

    .topic-info p {
        font-size: 0.9rem;
    }

    .topic-meta span {
        font-size: 0.75rem;
    }

    .footer {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .forum-container {
        margin: 0.3rem;
    }

    .forum-sidebar,
    .forum-content {
        padding: 0.8rem;
    }

    .content-title {
        font-size: 1.1rem;
    }

    .section-links a {
        font-size: 0.85rem;
    }

    .topic {
        padding: 0.8rem;
    }

    .topic-info h3 a {
        font-size: 0.95rem;
    }

    .topic-info p {
        font-size: 0.85rem;
    }

    .footer {
        padding: 0.7rem;
        font-size: 0.75rem;
    }
}

.footer {
    padding: 1rem;
    color: #bac6d2;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 3rem;
} 