
@font-face {
    font-family: 'Proxima Nova Bold';
    src: url(../fonts/proxima/ProximaNova-Bold.eot);
    src: url(../fonts/proxima/ProximaNova-Bold.eot?#iefix) format("embedded-opentype"), url(../fonts/proxima/ProximaNova-Bold.woff) format("woff"), url(../fonts/proxima/ProximaNova-Bold.ttf) format("truetype");
    font-weight: 400;
    font-style: normal
}
:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #222222;
    --sidebar-bg: #1a1a1a;
    --accent-blue: #6295ff;
    --accent-green: #25b66e;
    --accent-hover: #1e9f5f;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #333333;
    --def-trn: all 0.55s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #080808;
    color: var(--text-color);
    height: 100vh;
    padding: 1rem 0;
}

a {
    color: var(--text-color);
    text-decoration: none;
}


.dropdownPostType {
    position: relative;
    display: inline-block;
    width: 200px;
    font-size: 13px;
}

.dropdown-togglePostType {
    background-color: #00000014;
    color: var(--text-color);
    border: 1px solid #3333333d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.dropdown-arrowPostType {
    transition: transform 0.3s ease;
}

.dropdownPostType.open .dropdown-arrowPostType {
    transform: rotate(180deg);
}

.dropdown-menuPostType {
    background-color: #000000;
    color: var(--text-color);
    border: 1px solid #3333333d;
    border-radius: 4px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: none;
    z-index: 1000;
    margin: 0;
    list-style: none;
}

.dropdownPostType.open .dropdown-menuPostType {
    display: block;
}

.dropdown-itemPostType {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.40s;
}

.dropdown-itemPostType:hover {
    background: #0b0d1e;
    transition: all 0.40s;
}

/* Layout */
.forum-container {
    height: 100vh;
    display: flex;
    margin: 0 auto;
    margin-bottom: 1rem;
    max-width: 1685px;
    width: 95%;
    flex-direction: row;
    padding-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    width: 310px;
    background: linear-gradient(337deg, rgb(34 120 255 / 50%) 0%, rgb(74 53 130 / 27%) 100%);
    border-right: 1px solid var(--border-color);
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
    border-radius: 8px;
}
.sidebar::-webkit-scrollbar {
    width: 2px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #555595;
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
.sidebar-nav, .user_auth, .users_forum {
    margin-top: 10px;
    padding: 1.1rem;
    border-radius: 8px;
    background: #08111ab8;
}
.user_auth_info img {
    border-radius: 8px;
}

.user_auth_role {
    display: flex;
    flex-direction: column;
}

.user_auth_info {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

nav.user_auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
span.my_stats {
    display: flex;
    gap: 15px;
}
.user_auth_stats {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.topic_info {
    display: flex;
    flex-direction: column;
}

.topic_header {
    display: flex;
    gap: 15px;
}

.topic_rule {
    display: flex;
    gap: 10px;
    align-items: center;
}

.topic_i {
    background: #151515;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

img.post_img_author {
    border-radius: 8px;
    cursor: pointer;
}

.create-topic-btn {
    background-color: #040404;
    border: solid 2px #040404;
    color: white;
    /* border: none; */
    padding: 12px 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.2px;
    transition: var(--def-trn);
}

.create-topic-btn:hover {
    background-color: #161a2e;
    border: solid 2px #af00ff73;
    transition: var(--def-trn);
}



.user_forum_item {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: var(--def-trn);
    /* background: #ffffff03; */
    border-radius: 8px;
    padding: 10px;
}

.user_forum_item img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.users_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user_forum_item span {
    text-wrap-mode: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1.8px;
}

.user_forum_item:hover {
    transition: var(--def-trn);
    background: #1a2547;
}

span.nav_header {
    display: block;
    padding-bottom: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 1rem;
}

.toolbar {
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b0c13;
    border-radius: 8px;
    height: 65px;
}

.toolbar-left {
    display: flex;
    align-items: center;
}



.toolbar-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    margin-left: 10px;
    cursor: pointer;
}

.toolbar-btn:hover {
    color: var(--text-color);
}

.search-container {
    position: relative;
}

.search-input {
    background-color: #00000014;
    color: var(--text-color);
    border: 1px solid #3333333d;
    padding: 8px 10px 8px 30px;
    border-radius: 4px;
    font-size: 13px;
    width: 200px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Topics List */
.topics-container {
    flex: 1;
    overflow-y: auto;
}
div#topicsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.announcement {
    color: var(--accent-blue);
    background-color: #5e92ff14;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.announcement-icon {
    margin-right: 10px;
}

.announcement-text {
    color: var(--accent-blue);
    flex: 1;
}

.topic-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    transition: background-color 0.2s;
}

.topic-item:hover {
    background-color: var(--secondary-bg);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.topic-title {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.topic-title a {
    color: #3498db;
}

.topic-title a:hover {
    text-decoration: underline;
}

.topic-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.topic-stats {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.stats-item {
    margin-left: 15px;
}

.stats-item i {
    margin-right: 5px;
}

/* Modal */
.modal {
    visibility: hidden;
    opacity: 0;
    z-index: 23;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    background-color: rgb(0 0 0 / 90%);
    transition: opacity 0.3s, visibility 0.3s;
}
.modal.showed {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(3px);
    transition: opacity 0.6s, visibility 0.3s, backdrop-filter 0.3s;
}

.modal-content {
    color: black;
    border-radius: 12px;
    max-width: 520px;
    background-color: #090909;
    margin: 10% auto;
    width: 90%;
    background-position: center;
    padding: 1rem;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: flex-end;
    transition: opacity 0.3s, visibility 0.3s;
    height: fit-content;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    color: white;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    resize: inherit;
}

.form-textarea {
    min-height: 150px;
}
#createPostForm {
    align-items: normal;
  }
.form-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.btn-submit {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.35s;
}

.btn-submit:hover {
    background-color: #426abf;
    transition: all 0.35s;
}

/* User images */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}


.color50 {
    color: #606060;
    transition: all 0.35s;
}

.color50:hover {
    color: #919090;
    transition: all 0.35s;
}

.topic_name {
    cursor: pointer;
}

.separator {
    display: inline-block;
    border-radius: 100%;
    width: 4px;
    height: 4px;
    min-width: 4px;
    min-height: 4px;
    background: #949494;
}
.topic_author {
    display: flex;
    gap: 10px;
    align-items: center;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.dropdown-menu {
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 15px;
    background-color: #0b0c13;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-header:hover {
    background-color: #060709;
}

.dropdown-header i {
    margin-right: 10px;
}

.dropdown-arrow {
/*    height: 8px;
    width: 8px;
    background: url(https://disearch.space/static/img/arrow_down.svg) no-repeat center;
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;*/
}


.dropdown-arrowPostType {
    height: 8px;
    width: 8px;
    background: url(https://disearch.space/static/img/arrow_down.svg) no-repeat center;
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.dropdown-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

        .dropdown-content {
            max-height: 0 !important;
            opacity: 0 !important;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
            padding: 0 0 0 15px !important;
        }
        
        /* Явно управляем только открытыми элементами через ID */
        .dropdown-menu-active > .dropdown-content {
            max-height: 1000px !important;
            opacity: 1 !important;
            padding: 5px 0 0px 15px !important;
        }
        
        /* Стрелки по умолчанию смотрят вниз */
        .dropdown-arrow {
            transform: rotate(0deg);
            transition: transform 0.4s;
        }
        
        /* Явно управляем только стрелками открытых элементов */
        .dropdown-menu-active > .dropdown-header > .dropdown-arrow {
            transform: rotate(180deg);
        }

.dropdown-menu.open .dropdown-content {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 0 0px 15px;
}

.dropdown-header.topic_lider:hover i:not(.dropdown-arrow),
.dropdown-header.topic_lider:hover span {
    color: var(--accent-blue);
    transition: var(--def_trn);
}

.dropdown-header.topic_lider i:not(.dropdown-arrow),
.dropdown-header.topic_lider span {
    transition: var(--def-trn);
    cursor: pointer;
}

.sidebar-item span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
}


.sidebar-nav {
    margin-top: 10px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 5px;
    color: var(--text-secondary);
    transition: all 0.35s;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

.sidebar-item:hover {
    color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--def-trn);
}
.opened_topic {
    transition: var(--def-trn);
    background: rgb(96 151 255 / 10%);
    border-left: 3px dashed var(--accent-blue);
    color: var(--accent-blue);
}


.sidebar-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}
.sidebar-item span {
    cursor: pointer;
}

.category-header {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: 15px 15px 5px;
    letter-spacing: 0.5px;
}


/* thread */

.thread_i {
    display: flex;
    align-content: flex-end;
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
    transition: background .15s;
    padding: 1rem;
    align-items: center;
}

.thread_header {
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.thread_title {
    font-family: 'Proxima Nova Bold';
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--def-trn);
}
.thread_title:hover {
    color: var(--accent-blue);
}

.thread_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thread_about {
    display: flex;
    gap: 15px;
    align-content: center;
    align-items: center;
}

.thread_about_text {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.thread_i:hover {
    background: #222222;
}

@media screen and (max-width: 820px){
    main {
        padding: 1rem;
        width: 100% !important;
        background: #090909;
        border-radius: 8px;
    }

    .forum-container{
        width: 95%;
        flex-direction: column;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .sidebar {
        width: 100%;
        background: #0000006e;
        border-radius: 8px;
        transition: var(--def-trn);
        padding: 1rem;
    }
    
}



