/* scientific-materials.css */
/* Академический стиль для архива материалов - ЧИСТЫЙ ВИД */

.scientific-materials-archive {
    color: #000000;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.scientific-materials-archive h2 {
    color: #000000;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2c3e50;
}

.tree-container {
    background: #ffffff;
    padding: 0;
    margin: 2rem 0;
}

.tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tree-branch {
    margin-bottom: 3rem;
    padding: 0;
}

.branch-header {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.branch-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
    padding: 0;
    background: transparent;
    display: block;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.sub-branches {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.sub-branch {
    margin: 2rem 0;
    padding: 0;
    background: transparent;
}

.sub-branch-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #000000;
    padding: 0;
    background: transparent;
    display: block;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

.section-materials {
    margin-top: 1.5rem;
    padding-left: 0;
}

.articles-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.article-item {
    padding: 1.5rem;
    margin: 1rem 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-item:hover {
    background: #fafafa;
    border-color: #b0b0b0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0.8rem;
}

.article-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #000000;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 1rem;
    color: #444444;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-style: italic;
}

.article-meta {
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
    color: #666666;
    flex-wrap: wrap;
}

.article-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.article-btn {
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

/* Синяя кнопка "Читать" */
.article-btn.read {
    background: #3498db !important;
}

.article-btn.read:hover {
    background: #2980b9 !important;
    transform: translateY(-1px);
}

/* Красная кнопка "PDF" */
.article-btn.pdf {
    background: #e74c3c !important;
}

.article-btn.pdf:hover {
    background: #c0392b !important;
    transform: translateY(-1px);
}

/* Разделительная линия между разделами */
.tree-branch:not(:last-child) {
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 2.5rem;
}

/* Стили для состояния "пусто" */
.articles-list:empty::before {
    content: "Материалы пока не добавлены";
    color: #888;
    font-style: italic;
    display: block;
    padding: 1rem;
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .scientific-materials-archive {
        padding: 15px;
    }
    
    .scientific-materials-archive h2 {
        font-size: 1.8rem;
        padding: 0 0 1rem 0;
    }
    
    .tree-container {
        padding: 0;
        margin: 1.5rem 0;
    }
    
    .branch-title {
        font-size: 1.4rem;
    }
    
    .sub-branch-title {
        font-size: 1.2rem;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }
    
    .article-info {
        width: 100%;
        margin-bottom: 1.2rem;
    }
    
    .article-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-btn {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .scientific-materials-archive h2 {
        font-size: 1.6rem;
    }
    
    .branch-title {
        font-size: 1.3rem;
    }
    
    .sub-branch-title {
        font-size: 1.1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
    }
}

/* УДАЛЕНО: Стили для переключателя языков (теперь они в functions.php) */