﻿/* Общий стиль для хедера */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(90deg, #ffffff, #e6e6e6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #99a2ad;
    font-family: 'Arial', sans-serif;
    position: relative;
    z-index: 10;
    height: 50px;
}

/* Логотип с 3D-эффектом */
.header-logo h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #4689b7;
    text-transform: uppercase;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: logo-glow 3s infinite alternate;
}

.header-logo h1 span {
    color: #ffcccb;
    position: relative;
    transform: skew(-10deg);
    text-shadow: 4px 4px 10px rgba(255, 102, 102, 0.7);
}

/* Анимация для логотипа */
@keyframes logo-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

/* Стиль навигации */
.header-nav .nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    text-transform: uppercase;
    transition: color 0.4s, transform 0.3s;
    position: relative;
    font-weight: bold;
}

/* Эффект при наведении на ссылки */
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffcccb;
    transition: width 0.4s;
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover {
    color: #ffcccb;
    transform: scale(1.1);
}

/* Блок рекламы */
.ads-banner {
    display: flex;
    gap: 15px;
}

.ad-link {
    background-color: rgba(255, 204, 204, 0.2);
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    border: 2px solid #ff6666;
    border-radius: 30px;
    transition: background-color 0.4s, color 0.4s, transform 0.3s;
    font-weight: bold;
    font-size: 16px;
}

.ad-link:hover {
    background-color: #ff6666;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 102, 102, 0.5);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .ads-banner {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Основные настройки */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Контейнеры */
.navigation-menu, .section-wrapper, .forum-section, .feed-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Ссылки в меню */
.menu-link {
    font-size: 18px;
    color: #e60000;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-link:hover {
    background-color: rgba(230, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px;
}

/* Таймстамп */
.time-stamp, .thought-count, .forum-count, .feed-count {
    font-size: 14px;
    color: #999;
}

/* Блок новостей */
.news-list .news-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-body p {
    font-size: 16px;
    color: #555;
}

.comments-link {
    text-decoration: none;
    color: #e60000;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.comments-link:hover {
    color: #b30000;
}

.comment-count {
    background-color: #e60000;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
}

/* Раздел Думки */
.section-wrapper .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-wrapper .new-thoughts-badge {
    background-color: #e60000;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 15px;
}

/* Форум */
.forum-section .forum-topic {
    display: grid;
    grid-template-columns: 1fr 50px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.topic-left {
    display: flex;
    flex-direction: column;
}

.topic-info {
    display: flex;
    align-items: center;
}

.topic-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
}

.topic-details {
    font-size: 16px;
}

.topic-content {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.likes, .replies {
    color: #e60000;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.likes, .replies span {
    margin-right: 5px;
}

/* Лента */
.feed-section .menu-item {
    display: flex;
    justify-content: space-between;
}

.feed-section .new-posts-badge {
    background-color: #ff4d4d;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
}

/* Навигация табов */
.tab-navigation {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    border-bottom: 2px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab:hover, .tab.active {
    background-color: #e60000;
    color: white;
    border-radius: 8px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Контент блоков */
.content-block {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-file, .icon-eye {
    margin-right: 10px;
}

.views-count {
    font-size: 14px;
    color: #999;
}