
/* Современные стили для читаемости текста с фиолетовыми акцентами */
.news-card__text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    font-size: 16px;
    font-weight: 400;
}

/* Параграфы */
.news-card__text p {
    margin-bottom: 1.2em;
    line-height: 1.7;
}

.news-card__text p:empty {
    display: none;
}

/* Заголовки с фиолетовыми акцентами */
.news-card__text h1,
.news-card__text h2,
.news-card__text h3,
.news-card__text h4,
.news-card__text h5,
.news-card__text h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    position: relative;
}

.news-card__text h1 {
    font-size: 2.2em;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-card__text h2 {
    font-size: 1.8em;
    color: #4c1d95;
    border-left: 4px solid #8b5cf6;
    padding-left: 0.8em;
}

.news-card__text h3 {
    font-size: 1.5em;
    color: #5b21b6;
}

.news-card__text h4 {
    font-size: 1.3em;
    color: #6d28d9;
}

.news-card__text h5 {
    font-size: 1.1em;
    color: #7c3aed;
}

.news-card__text h6 {
    font-size: 1em;
    color: #8b5cf6;
}

/* Жирный текст с фиолетовым акцентом */
.news-card__text b,
.news-card__text strong {
    font-weight: 600;
    color: #6b46c1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Курсив */
.news-card__text i,
.news-card__text em {
    font-style: italic;
    color: #4a5568;
}

/* Подчеркивание с фиолетовым цветом */
.news-card__text u {
    text-decoration: none;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 1px;
}

/* Зачеркнутый текст */
.news-card__text strike,
.news-card__text del {
    text-decoration: line-through;
    color: #718096;
    opacity: 0.7;
}

/* Современные ссылки с фиолетовым цветом */
.news-card__text a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.news-card__text a:hover {
    color: #6d28d9;
    border-bottom-color: #6d28d9;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    padding: 1px 2px;
    border-radius: 2px;
}

/* Современные списки с фиолетовыми акцентами */
.news-card__text ul,
.news-card__text ol {
    margin: 1.5em 0;
    padding-left: 0;
}

.news-card__text ul {
    list-style: none;
}

.news-card__text ul li {
    margin-bottom: 0.8em;
    line-height: 1.7;
    padding-left: 1.8em;
    position: relative;
}

.news-card__text ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 1.1em;
}

.news-card__text ol {
    list-style: none;
    counter-reset: list-counter;
}

.news-card__text ol li {
    margin-bottom: 0.8em;
    line-height: 1.7;
    padding-left: 2.2em;
    position: relative;
    counter-increment: list-counter;
}

.news-card__text ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.6em;
    height: 1.6em;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
}

/* Изображения с современными стилями */
.news-card__text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transition: transform 0.2s ease;
}

.news-card__text img:hover {
    transform: scale(1.02);
}

/* Переносы строк */
.news-card__text br {
    line-height: 1.7;
}

/* Span элементы */
.news-card__text span {
    color: inherit;
}

/* Современные блочные цитаты */
.news-card__text blockquote {
    border-left: 4px solid #8b5cf6;
    padding: 1.5em 1.5em 1.5em 2em;
    margin: 2em 0;
    color: #4a5568;
    font-style: italic;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.news-card__text blockquote::before {
    content: '"';
    position: absolute;
    left: 1em;
    top: 0.5em;
    font-size: 3em;
    color: #8b5cf6;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Современные кодовые блоки */
.news-card__text pre {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 1.5em;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.2);
}

/* Современные таблицы */
.news-card__text table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.news-card__text th,
.news-card__text td {
    padding: 1em 1.2em;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.news-card__text th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card__text tr:last-child td {
    border-bottom: none;
}

.news-card__text tr:nth-child(even) {
    background: rgba(139, 92, 246, 0.02);
}

.news-card__text tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* Разделители */
.news-card__text hr {
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    margin: 3em 0;
    border-radius: 2px;
    opacity: 0.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-card__text {
        font-size: 15px;
        line-height: 1.6;
    }

    .news-card__text h1 {
        font-size: 1.9em;
    }

    .news-card__text h2 {
        font-size: 1.6em;
    }

    .news-card__text h3 {
        font-size: 1.4em;
    }

    .news-card__text th,
    .news-card__text td {
        padding: 0.8em;
        font-size: 14px;
    }

    .news-card__text blockquote {
        padding: 1.2em 1.2em 1.2em 1.5em;
    }

    .news-card__text pre {
        padding: 1em;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .news-card__text {
        font-size: 14px;
    }

    .news-card__text h1 {
        font-size: 1.7em;
    }

    .news-card__text h2 {
        font-size: 1.5em;
    }

    .news-card__text h3 {
        font-size: 1.3em;
    }

    .news-card__text th,
    .news-card__text td {
        padding: 0.6em;
        font-size: 13px;
    }

    .news-card__text ul li,
    .news-card__text ol li {
        margin-bottom: 0.6em;
    }
}
