/*
 * ForTraders.org - Design V2 Category Styling
 * Стили для страниц категорий
 * Version: 2025.1
 */

/* =============================================================================
   ОСНОВНЫЕ СТИЛИ КАТЕГОРИЙ DESIGN V2
   ============================================================================= */

/* Контейнер категории */
.designv2-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'SSP_Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
}

/* Хлебные крошки */
.designv2-breadcrumbs {
    margin-bottom: 1.5rem;
}

.designv2-breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.designv2-breadcrumbs li {
    display: flex;
    align-items: center;
}

.designv2-breadcrumbs li:not(:last-child)::after {
    content: '•';
    margin-left: 0.5rem;
    color: #adb5bd;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.designv2-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.designv2-breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Заголовок категории */
.designv2-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0 1rem 0;
    color: #1a1a1a;
    font-family: 'SSP_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Автор и социальные кнопки */
.designv2-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.designv2-author-meta .author-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
}

/* Views count in social button */
.designv2-social-btn .views-count {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

/* Adaptive width for views button */
.designv2-social-btn[title="Просмотры"],
.designv2-social-btn[title="Views"] {
    width: auto;
    min-width: 32px;
    padding: 0 0.5rem;
    white-space: nowrap;
}

/* Социальные кнопки */
.designv2-social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.designv2-social-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.designv2-social-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Translation link button */
.designv2-translation-link {
    text-decoration: none;
    width: auto;
    min-width: 32px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Current language (non-clickable) */
.designv2-translation-current {
    cursor: default;
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    opacity: 0.8;
}

/* =============================================================================
   АДАПТИВНОСТЬ
   ============================================================================= */

@media (max-width: 768px) {
    .designv2-article-container {
        padding: 0 15px;
    }
    
    .designv2-article-title {
        font-size: 2rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .designv2-author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .designv2-social-buttons {
        margin-left: 0;
    }
    
    .designv2-breadcrumbs ul {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .designv2-article-title {
        font-size: 1.75rem;
    }
}

/* =============================================================================
   ИНТЕГРАЦИЯ С СУЩЕСТВУЮЩИМИ СТИЛЯМИ
   ============================================================================= */

/* Применяем стили к существующей структуре */
.left_part .designv2-article-container {
    max-width: none;
    padding: 0;
}

/* Переопределяем стили для категорий */
.category .designv2-article-container {
    margin: 0;
}

