/* Стили для markdown контента в статьях */

.markdown-content {
    line-height: 1.7;
    color: #374151;
    font-family: 'Montserrat', sans-serif;
}

/* Заголовки */
.markdown-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a5a4a0;
}

.markdown-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.8rem 0 1.2rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #d1d5db;
}

.markdown-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem 0;
}

.markdown-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.2rem 0 0.8rem 0;
}

.markdown-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1rem 0 0.6rem 0;
}

.markdown-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0.8rem 0 0.5rem 0;
}

/* Параграфы */
.markdown-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

/* Ссылки */
.markdown-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.markdown-content a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.markdown-content a:visited {
    color: #7c3aed;
}

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

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.markdown-content ul li {
    list-style-type: disc;
}

.markdown-content ol li {
    list-style-type: decimal;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
    margin: 0.5rem 0;
}

/* Цитаты */
.markdown-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #a5a4a0;
    background-color: #f9fafb;
    font-style: italic;
    color: #4b5563;
}

.markdown-content blockquote p {
    margin: 0;
}

/* Код */
.markdown-content code {
    background-color: #f3f4f6;
    color: #e11d48;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.markdown-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Горизонтальная линия */
.markdown-content hr {
    border: none;
    height: 2px;
    background-color: #a5a4a0;
    margin: 2rem 0;
}

/* Таблицы */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.markdown-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.markdown-content tr:hover {
    background-color: #f9fafb;
}

/* Изображения */
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Выделение текста */
.markdown-content strong {
    font-weight: 700;
    color: #1f2937;
}

.markdown-content em {
    font-style: italic;
    color: #4b5563;
}

/* Адаптивность */
@media (max-width: 768px) {
    .markdown-content h1 {
        font-size: 2rem;
    }
    
    .markdown-content h2 {
        font-size: 1.5rem;
    }
    
    .markdown-content h3 {
        font-size: 1.25rem;
    }
    
    .markdown-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .markdown-content table {
        font-size: 0.9rem;
    }
    
    .markdown-content th,
    .markdown-content td {
        padding: 0.5rem 0.75rem;
    }
}
