/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Стили для шапки */
header.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px; /* Отступы внутри шапки */
}

.desktop-header,
.mobile-header {
    display: none; /* По умолчанию скрываем обе версии шапки */
    align-items: center; /* Выравниваем элементы по центру по вертикали */
    justify-content: space-between; /* Распределяем элементы равномерно */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.search-bar input {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.actions img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
}

.menu-btn,
.feed-toggle-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 5px;
}

/* Мобильное нижнее меню */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-nav a {
    text-decoration: none;
    color: #007bff;
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    padding: 10px 20px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

/* Стили для ленты */
.layout {
    width: 100%;
    margin-top: 50px; /* Уменьшили отступ */
}

.desktop-layout,
.mobile-layout {
    display: none;
}

.desktop-layout {
    display: flex;
}

.left-section {
    width: 25%;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-info p {
    margin: 5px 0;
    font-size: 14px;
}

.navigation-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.center-section {
    width: 65%;
    padding: 20px;
}

.right-section {
    width: 25%;
    padding: 20px;
}

.box {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.create-post textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.create-post button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.post-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.repost-text {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

.post-content {
    margin-bottom: 10px;
}

.post-actions {
    display: flex;
    align-items: center;
}

.post-actions a {
    display: flex;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
    color: #000;
}

.post-actions .icon {
    font-size: 20px;
    margin-right: 5px;
}

.divider {
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.recommendations h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Стили для мобильной версии */
.mobile-layout .posts {
    display: flex;
    flex-direction: column;
}

.mobile-layout .post-card {
    margin-bottom: 20px;
}

/* Стиль иконки уведомлений */
.notifications-icon {
    position: relative;
    margin-left: 10px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: bold;
}

/* Стиль всплывающего окна уведомлений */
.notifications-popup {
    position: absolute;
    top: 60px; /* Расположение под иконкой */
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Скрыто по умолчанию */
}

.notifications-popup.hidden {
    display: none;
}

.notifications-popup h3 {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    margin: 0;
    text-align: center;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.notifications-list li {
    list-style: none;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.notifications-list li:last-child {
    border-bottom: none;
}
.post-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.post-list {
    display: none;
}

.post-list.active {
    display: block;
}

.post-image {
    max-width: 75%;
    height: auto;
    margin-top: 5px;
    border-radius: 8px;
}


/* Адаптивность */
@media (min-width: 769px) {
    .create-post2 {
        display: none;
    }

    .phone{
        display: none;
    }

    .desktop-header {
        display: flex; /* Показываем десктопную шапку */
    }

    .mobile-header {
        display: none; /* Скрываем мобильную шапку */
    }

    .desktop-layout {
        display: flex; /* Показываем десктопную версию ленты */
    }

    .mobile-layout {
        display: none; /* Скрываем мобильную версию ленты */
    }
}

@media (max-width: 768px) {
        .phone{
        display: flex;
    }

    .create-post2 {
        display: flex;
    }

    .desktop-header {
        display: none; /* Скрываем десктопную шапку */
    }

    .mobile-header {
        display: flex; /* Показываем мобильную шапку */
    }

    .search-bar {
        display: none; /* Скрываем строку поиска на телефонах */
    }

    .desktop-layout {
        display: none; /* Скрываем десктопную версию ленты */
    }

    .mobile-layout {
        display: block; /* Показываем мобильную версию ленты */
    }

    .center-section {
        width: 100%;
        padding: 10px;
    }

    .left-section,
    .right-section {
        display: none;
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px 0;
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav a {
        text-decoration: none;
        color: #007bff;
    }
}