/* ===== ARTICLE.CSS - Стили для статей блога ===== */

/* Заголовок статьи */
.article-header {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    padding: 40px 30px;
    position: relative;
}

.article-header::before {
    font-size: 60px;
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.3;
}

/* Мета информация статьи */
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 10px;
}

/* Контент статьи */
.article-content {
    padding: 40px;
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-content h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 25px 0 10px;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Выделенный блок */
.highlight-box {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
}

/* Таблицы */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.feature-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.feature-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.feature-table tr:last-child td {
    border-bottom: none;
}

.feature-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 30%;
}

/* Блоки кода */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 30px 0;
}

/* Дерево проекта */
.tree-view {
    background: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
    margin: 30px 0;
    border: 2px solid var(--border-color);
}

.tree-view .folder {
    color: var(--primary-color);
    font-weight: bold;
}

.tree-view .file {
    color: var(--text-color);
}

.tree-view .comment {
    color: #999;
    font-style: italic;
}

/* Блоки заметок */
.note-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin: 30px 0;
}

/* Блоки цитат */
.quote-box {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin: 40px 0;
    font-style: italic;
    font-size: 18px;
    text-align: center;
}

/* Бейджи */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--border-radius-md);
}

/* CTA кнопки */
.cta-box {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius-md);
    text-align: center;
    margin: 40px 0;
    border: 2px solid var(--primary-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    transition: var(--transition-base);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Сетка для обратной связи */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Типографика для списков */
.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin: 10px 0;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .article-header {
        padding: 30px 20px;
    }
    
    .article-header::before {
        font-size: 40px;
        top: 10px;
        right: 20px;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content h4 {
        font-size: 18px;
    }
    
    .feature-table td:first-child {
        width: 40%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}