/* forum_styles.css */


.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--accent-color);
}

.topics-list {
    display: flex;
    flex-direction: column;
}

.topic-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: block;
    transition: background 0.2s;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.topic-item.pinned {
    background: rgba(59, 130, 246, 0.05);
    /* Легкий синий фон для закрепленных */
}

.topic-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.75rem;
}

.topic-closed-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}




.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pinned {
    background: var(--accent-color);
    color: white;
}

.badge-closed {
    background: var(--danger-color);
    color: white;
}

.badge-anon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px dashed white;
}

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Topic View */
.post {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 1.5rem;
}

.post-author {
    width: 130px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--glass-border);
}

.post-rank {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.2rem;
}

.post-body {
    flex: 1;
    min-width: 0;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.post-content {
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 0;
    
    font-stretch: 90%;
    font-stretch: condensed;
    letter-spacing: -0.3px;
    
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 8 3 3;
    -webkit-hyphenate-limit-chars: 8 3 3;
    -ms-hyphenate-limit-chars: 8 3 3;
}

.reply-form {
    margin-top: 2rem;
    padding: 1.5rem;
}

/* Стили для цитат (как на Woman.ru) */
.forum-quote {
    background: rgba(255, 255, 255, 0.04);
    /* Легкое выделение на темном фоне */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Тонкая рамка */
    border-radius: 6px;
    margin: 12px 0;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.forum-quote .quote-header {
    margin-bottom: 6px;
}

.forum-quote .quote-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-quote .quote-link:hover {
    text-decoration: underline;
}

.forum-quote .quote-link .arrow {
    font-size: 1.1em;
    line-height: 1;
}

.forum-quote .quote-body {
    color: #94a3b8;
    /* Серый текст, как на скрине */
    font-style: italic;
    /* Текст курсивом */
    line-height: 1.5;
}

/* Вложенные цитаты (если есть) делаем еще тусклее */
.forum-quote .forum-quote {
    background: rgba(0, 0, 0, 0.2);
    margin: 8px 0;
    padding: 8px 12px;
    border-color: transparent;
}

/* Мобильная адаптация для постов (Аватар слева) */
@media (max-width: 768px) {
    .container-single, .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .post {
        padding: 1rem 0.25rem; /* Сильнее прижимаем аватар к краям */
        gap: 0.75rem; /* Отступ чуть шире, чтобы текст статуса не слипался с постом */
    }
    
    .post-author {
        width: max-content; /* Позволяем колонке растягиваться ровно по тексту (никнейм + иконки) */
        min-width: 75px;
        max-width: 130px; /* Чтобы супер длинные ники не вытесняли весь текст */
    }
    
    .post-avatar {
        width: 48px;
        height: 48px;
    }
}