/* Дополнительные кастомные стили */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0.75rem;
    font-style: italic;
}

.article-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.article-content th {
    background: #f8f9fa;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Комментарии */
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
}

.comment-meta {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 1rem !important;
    }
}

/* ========================================
   ПРОФЕССИОНАЛЬНАЯ ТИПОГРАФИКА ДЛЯ СТАТЕЙ
   Стиль как у лучших новостных изданий
   ======================================== */

/* Основные настройки статьи */
.article-content,
.single .entry-content,
.page-content {    
    margin-left: auto;
    margin-right: auto;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    font-size: 19px;
    line-height: 1.7;
    color: #1a1a1a;
    letter-spacing: -0.003em;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .article-content,
    .single .entry-content,
    .page-content {
        font-size: 17px;
        line-height: 1.65;
        padding: 0 16px;
    }
}

/* Заголовок статьи */
.article-header h1,
.single .entry-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #000;
}

@media (max-width: 768px) {
    .article-header h1,
    .single .entry-title {
        font-size: 32px;
        line-height: 1.25;
    }
}

/* Подзаголовки H2 */
.article-content h2,
.single .entry-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 650;
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .article-content h2,
    .single .entry-content h2 {
        font-size: 24px;
        margin-top: 40px;
    }
}

/* Подзаголовки H3 */
.article-content h3,
.single .entry-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

/* Подзаголовки H4 */
.article-content h4,
.single .entry-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Абзацы */
.article-content p,
.single .entry-content p {
    margin-bottom: 28px;
    margin-top: 0;
}

/* Первый абзац после заголовка (лид) */
.article-content p:first-of-type,
.single .entry-content p:first-of-type {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    color: #333;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .article-content p:first-of-type,
    .single .entry-content p:first-of-type {
        font-size: 19px;
        line-height: 1.45;
    }
}

/* Списки */
.article-content ul,
.article-content ol,
.single .entry-content ul,
.single .entry-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-content li,
.single .entry-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content ul li::marker,
.single .entry-content ul li::marker {
    color: #667eea;
}

/* Цитаты */
.article-content blockquote,
.single .entry-content blockquote {
    margin: 40px 0;
    padding-left: 28px;
    border-left: 4px solid #667eea;
    font-style: italic;
    font-size: 22px;
    line-height: 1.45;
    color: #444;
    background: transparent;
}

@media (max-width: 768px) {
    .article-content blockquote,
    .single .entry-content blockquote {
        font-size: 19px;
        padding-left: 20px;
        margin: 32px 0;
    }
}

/* Таблицы */
.article-content table,
.single .entry-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
}

.article-content th,
.single .entry-content th {
    background: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.article-content td,
.single .entry-content td {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
}

/* Изображения в статье */
.article-content img,
.single .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 12px;
}

/* Подписи к изображениям */
.article-content figcaption,
.single .entry-content .wp-caption-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: -24px;
    margin-bottom: 32px;
    line-height: 1.4;
}

/* Выделение текста */
.article-content strong,
.single .entry-content strong {
    font-weight: 650;
    color: #000;
}

.article-content em,
.single .entry-content em {
    font-style: italic;
}

/* Ссылки внутри статьи */
.article-content a,
.single .entry-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.article-content a:hover,
.single .entry-content a:hover {
    color: #4c6ef5;
    text-decoration-thickness: 2px;
}

/* Блоки с советами, фактами, важной информацией */
.article-content .tip-box,
.article-content .fact-box,
.article-content .important-box,
.single .entry-content .tip-box,
.single .entry-content .fact-box,
.single .entry-content .important-box {
    margin: 40px 0;
    padding: 24px 28px;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-content .tip-box,
.single .entry-content .tip-box {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
}

.article-content .fact-box,
.single .entry-content .fact-box {
    background: #f5f5f5;
    border-left: 4px solid #667eea;
}

.article-content .important-box,
.single .entry-content .important-box {
    background: #fff5f0;
    border-left: 4px solid #f59e0b;
}

/* Заголовки внутри блоков */
.article-content .tip-box strong:first-child,
.article-content .fact-box strong:first-child,
.article-content .important-box strong:first-child,
.single .entry-content .tip-box strong:first-child,
.single .entry-content .fact-box strong:first-child,
.single .entry-content .important-box strong:first-child {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: inherit;
}

/* Для блоков с иконками (нужны emoji или иконки) */
.article-content .tip-box::before,
.single .entry-content .tip-box::before {
    content: " ";
    font-size: 20px;
}

.article-content .fact-box::before,
.single .entry-content .fact-box::before {
    content: " ";
    font-size: 20px;
}

.article-content .important-box::before,
.single .entry-content .important-box::before {
    content: "⚠️ ";
    font-size: 20px;
}

/* Разделители */
.article-content hr,
.single .entry-content hr {
    margin: 48px auto;
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    border: none;
}

/* Код и моноширинный текст */
.article-content code,
.article-content pre,
.single .entry-content code,
.single .entry-content pre {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 15px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 6px;
}

.article-content pre {
    padding: 16px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Кнопки внутри статей */
.article-content .btn,
.single .entry-content .btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Мета-информация (дата, автор, категории) */
.article-meta,
.entry-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Хлебные крошки */
.breadcrumb {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    margin-bottom: 24px;
}

/* Оглавление (если добавите) */
.table-of-contents {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.table-of-contents h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.table-of-contents ul {
    margin: 0;
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.table-of-contents a:hover {
    color: #667eea;
    text-decoration: underline;
}

.sidebar-widget {
    background: #fafafa;
}

.turtags {
    padding: 0 !important;
    color: #333;
    font-weight: 500;
}

.turtags .cat-item {
    float: left;
    list-style: none;
    background: #F0F0F0;
    margin: 0.3rem;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 5px;    
}

.turtags .cat-item a{
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.rubrics {
    list-style: none;
}

.rubrics li ul{
    list-style: none;
    padding-left: 1.5rem;
}

.rubrics li a{
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.rubrics li ul li a{
    font-size: 1.2rem;
    color: #333;
    font-weight: 400;
    text-decoration: none;
}