/*
 * ForTraders.org - Design V2 Article 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-publication-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

/* Хлебные крошки */
.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="Просмотры"] {
    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;
}

/* Главное изображение */
.designv2-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.designv2-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.designv2-featured-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    text-align: left;
    padding: 0 1rem;
}

/* Лид-абзац */
.designv2-lead-paragraph {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
}

/* Основной контент */
.designv2-article-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333333;
    margin: 2rem 0;
}

.designv2-article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.designv2-article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: #1a1a1a;
    font-family: 'SSP_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.designv2-article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
    font-family: 'SSP_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.designv2-article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #1a1a1a;
    font-family: 'SSP_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Изображения в тексте */
.designv2-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
}

/* Цитаты */
.designv2-article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #495057;
}

/* Ссылки */
.designv2-article-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.designv2-article-content a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Списки */
.designv2-article-content ul,
.designv2-article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.designv2-article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Таблицы */
.designv2-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.designv2-article-content th,
.designv2-article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.designv2-article-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Авторская информация */
.designv2-author-info {
    margin: 2rem 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.designv2-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e2e2e2;
    color: #e2e2e2;
    position: relative;
    overflow: hidden;
}

.designv2-author-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: transparent;
    object-fit: cover;
    text-indent: -9999px;
    transition: opacity 0.3s;
}

.designv2-author-details h4 {
    margin: 3px 0 2px;
    color: #2d2d2d;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    transition: color 0.2s;
}

.designv2-author-details p {
    margin: 0;
    color: #767676;
    font-size: 13px;
    line-height: 16px;
}

/* Рекомендуемые статьи */
.designv2-recommended-articles {
    margin: 2rem 0;
}

/* Кликабельные карточки */
.designv2-recommended-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.designv2-recommended-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.designv2-recommended-articles h3 {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.designv2-recommended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.designv2-recommended-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.designv2-recommended-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


.designv2-recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.designv2-recommended-label {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.designv2-bookmark-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.designv2-bookmark-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.designv2-recommended-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
}

.designv2-recommended-text {
    flex: 1;
}

.designv2-recommended-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.designv2-recommended-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.designv2-recommended-text h5 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.designv2-recommended-text h5 a:hover {
    color: #007bff;
}

.designv2-recommended-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.designv2-recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.designv2-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.7rem;
}

/* Теги */
.designv2-article-tags {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.designv2-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.designv2-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e3f2fd;
    color: #1976d2;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #bbdefb;
}

.designv2-tag:hover {
    background: #1976d2;
    color: #ffffff;
    border-color: #1976d2;
    transform: translateY(-1px);
}

/* Социальная подписка */
.designv2-social-subscription {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    color: #ffffff;
}

.designv2-subscription-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.designv2-subscription-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff !important;
}

.designv2-subscription-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.designv2-subscribe-btn {
    background: #ffd700;
    color: #2c3e50;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.designv2-subscribe-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    color: #2c3e50;
}

.designv2-twitter-icon {
    flex-shrink: 0;
}


/* Кнопки действий */
.designv2-article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.designv2-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.designv2-action-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #333333;
    transform: translateY(-1px);
}

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

@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;
    }
    
    .designv2-lead-paragraph {
        font-size: 1.125rem;
        padding: 1rem;
    }
    
    .designv2-article-content {
        font-size: 1rem;
    }
    
    .designv2-author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .designv2-recommended-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .designv2-recommended-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .designv2-recommended-image {
        width: 100%;
        height: 120px;
    }
    
    .designv2-subscription-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .designv2-subscription-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .designv2-article-title {
        font-size: 1.75rem;
    }
    
    .designv2-article-content h2 {
        font-size: 1.5rem;
    }
    
    .designv2-article-content h3 {
        font-size: 1.25rem;
    }
    
    .designv2-tags-list {
        justify-content: center;
    }
}

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

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

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

/* Стили для основного контента */
.main-post-content.designv2-article-content {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Стили для заголовков в статьях */
.title2.designv2-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 2rem 0 1.5rem 0;
    color: #1a1a1a;
}

/* =============================================================================
   СТИЛИ ДЛЯ КНОПОК CONTEST_ACTIONS
   ============================================================================= */

/* Контейнер для кнопок действий */
.contest_actions {
    display: flex;
    gap: 11px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 17px;
}

/* Базовые стили для кнопок */
.contest_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-family: "Inter", "Roboto", "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

/* Кнопка регистрации (основная) */
.btn-register {
    background: #F7A600;
    color: #111827;
}

.btn-register:hover {
    background: #FFB733 !important;
    color: #111827 !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 166, 0, 0.4);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contest_actions {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .contest_btn {
        width: 100%;
        max-width: 196px;
        padding: 10px 17px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .contest_btn {
        padding: 8px 14px;
        font-size: 10px;
        min-width: 112px;
    }
}
